Faceplate on 800xA - Expression for indicators
I have created an user library named test_lib, in wich I have cretaed a control module named dcd_motor (to drive a motor, on/off).
I'm trying to create a faceplate. How is possible to add a push button on faceplate in order to set to off or to on an input variable of dcd_motor.
e.g. dcd_motor.set_auto = True or dcd_motor.set_auto = False from this pushbutton ?
How to write the right expression in the faceplate indicators tab -> Expression field ?
of course you can add a normal PushButton in a Faceplate Element, but the normal way is to use the Button tab, and add a button, where you set the Property like dcd_motor.set_auto, Property type to Boolean and Property Value to True.
If you want the button to be enabled or dimmed for a specific condition you use the Enabled field to create the condition.
Hint: Look at other lib's Faceplate to see examples of the syntax for eg Enabled.
Its very simple to make a button, or anything on Faceplate.
Edit your "FACEPLATE ELEMENT", which you have attached/called on Main Faceplate.
After opening in Graphics Buider, just Simply put any type of Button as per requirement.
Put it onto your desired location, on Graphic page.
And then clicking on Button, explore its properties. And fill the "Target" property , with your particular signal (boolean: True or False). This signal you will be getting by exploring in the Control Structure.
Feel free to ask, if not clear.