HMI design
Hello, I'm designing HMI on PLCnext, I need a button, when I hold it down, it's on, when I release it, it's off, for example, there is a button for the light, when I long press, the light will be on until I release my hand, the light will turn off, please tell me how to set it up
Thanks
This discussion has been closed.
Comments
Hello,
there is a parameter in the sub-editor of a button called "Latching". When this is unchecked, the button behaves like you want it.
Here is another solution, from the eHMI support team:
==========================================================================
On an HMI page, I place a button and an ellipse(which will act as the LED).
Step 1 is to create an HMI tag for a Bool variable.
Step 2
For the Button, I link the variable created in the Behavior section, I do not check Latching.
Step 3. The Ellipse, I give it a Background Fill Color, then go to the Dynamics Tab and add a new Dynamic.
I linked the variable created earlier and set a color for the True Condition.
The Ellipse will change from the background Red color to the Green color as long as the button is held.