Hello,
In my Zenon application, this is what I am trying to do (if it is possible):-
I would like to have an 'up' and 'down' push button. When the up button is pressed, zenon will increment the value of the the Beckhoff Twincat PLC value, when the down button is pressed, this same variable will be decremented.
Ie PLC value 'position' is displayed as 50%, 3 presses of the 'up' button and 53% will be sent to the PLC, then if 1 press of the 'down' button, then 52% will be sent to the PLC.
I can't find a way of doing this but I will need a formula for the logic:-
IF UP THEN
position := position + 1
END_IF
IF DOWN THEN
position := position - 1
END_IF
Is this possible?
Thanks
Matt