Machsupport Forum

Mach Discussion => Mach4 General Discussion => Topic started by: Bill_O on May 03, 2019, 11:58:13 AM

Title: button and plc behavior
Post by: Bill_O 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.