Hello Guest it is April 16, 2024, 03:56:54 PM

Author Topic: button and plc behavior  (Read 627 times)

0 Members and 1 Guest are viewing this topic.

Offline Bill_O

*
  •  563 563
    • View Profile
button and plc behavior
« on: May 03, 2019, 11:58:13 AM »
I have a new profile I am making and am having what I think is strange behavior.
I have attached the code for the buttons and the plc.

I have 4 buttons, 2 dros, 1 led and some script in the main PLC.
The buttons raise or lower the values in the dros and the plc turns the led on or off depending on the value.

If I click the Jog Minus button the dro value changes and the led turns on.
If I click the Jog Plus button until the dro value is 100 the led turns off.

Same thing for the Cut Minus then Plus buttons.
The problem is with the Cut Plus then Minus buttons.

If I click the Cut Plus button the dro value changes and the led turns on.
If I click the Cut Minus button until the dro value is 100 the led will does not turn off.