AdvancedHMI Software
General Category => Support Questions => Topic started by: astroman on December 16, 2014, 01:45:42 PM
-
Hello,
I'm just about done with my first HMI, and I'm wondering if there's a method to make components invisible when the bit in the PLCAddressVisible property is true. I have several buttons, BasicLabels and GraphicIndicators for which this would be useful. Thank you very much.
-
If you precede the address in the property with "NOT", it will invert it's function. For example:
NOT B3/0
NOT MyTag
NOT 100001
-
Thank you Archie! This works very well.
-
I'm curious, is there a similar method for the 'And' operator? i.e if one bit is true but another is not, make graphic indicator visible.
-
I'm curious, is there a similar method for the 'And' operator? i.e if one bit is true but another is not, make graphic indicator visible.
Unfortunately there are no combining operations. You would have to use a DataSubscriber and keep the values in local variables, then perform the operation and put into the Value property of the control.
-
I see. Thank you very much for clarifying that.
-
Hi astroman. there may be a way to use the bit level addressing of the controls and not have to use a datsubscriber to avoid writting code. Try to use a basiclabel and remove the text. Set Autosize to False and position over top of your graphic indicator. Adjust your color to your desires. You will need to set this to "Bring to front". Set the PLCvisible to your NOT PLC address. This will keep the graphic indicator hidden while the NOT bit is high. Hope that helps