Hello Guest it is November 14, 2019, 11:05:29 AM

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

0 Members and 1 Guest are viewing this topic.

Offline Bill_O

*
  •  250 250
    • 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.