Hi Everyone
I am trying to create a "mater script" for buttons. Basically I would have a project library script that depending on the calling component, write different commands to Modbus.
Here I am having issue with the multistate button. It is a button that turn the plant to OFF/MANUAL/AUTO/ON state. So far I find out that you can configure values for different state in it's properties, and the controlValue will change to that corresponding value upon clicking. However I am wondering if there are any other values I can rely on, because the function that is called will be relying on magic numbers to work out what has been clicked.
Any help is appreciated!