I remembered it incorrectly, thought you could pass the legend number.

Looking again, and yes it takes a bit pin to each legend to activate.

Need to create a bit pin for each condition and activate it when required.

Easiest would probably be to write a function that holds all the pins in an array and you just pass the error number
you want to activate and tell it how long to display and then it reverts to a blank label when done, or something like that.




On 03/09/18 11:24, Aurelien wrote:
I don't understand how to link s32 to multilabel

toolchanger.comp :
pin out s32 toolchangeralert = 0     "Alert number for display text";

main.hal:
net changeralert toolchanger.toolchangeralert


pyvcp.hal :
#net changeralert => pyvcp.multilabel.0.legends
#net changeralert => pyvcp.multilabel.0.legend





i have succesfully do the job with pin bit but it's not really clean 

pin out bit toolchangeralert00 = 1     "Alert number for display text from mdi or halui ngc need to work for this";
pin out bit toolchangeralert01 = 0     "Alert number for display text from mdi or halui ngc need to work for this";
pin out bit toolchangeralert02 = 0     "Alert number for display text from mdi or halui ngc need to work for this";
pin out bit toolchangeralert03 = 0     "Alert number for display text from mdi or halui ngc need to work for this";
pin out bit toolchangeralert04 = 0     "Alert number for display text from mdi or halui ngc need to work for this";
pin out bit toolchangeralert05 = 0     "Alert number for display text from mdi or halui ngc need to work for this";
pin out bit toolchangeralert10 = 1     "Alert number for display text from mdi or halui ngc need to work for this";
pin out bit toolchangeralert11 = 0     "Alert number for display text from mdi or halui ngc need to work for this";
pin out bit toolchangeralert12 = 0     "Alert number for display text from mdi or halui ngc need to work for this";

Br thanks a lot
--
website: http://www.machinekit.io blog: http://blog.machinekit.io github: https://github.com/machinekit
---
You received this message because you are subscribed to the Google Groups "Machinekit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
Visit this group at https://groups.google.com/group/machinekit.
For more options, visit https://groups.google.com/d/optout.

--
website: http://www.machinekit.io blog: http://blog.machinekit.io github: https://github.com/machinekit
---
You received this message because you are subscribed to the Google Groups "Machinekit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
Visit this group at https://groups.google.com/group/machinekit.
For more options, visit https://groups.google.com/d/optout.

Reply via email to