I have a toggle clamp (manually closed and air actuated (cylinder) to open) with a prox switch on it that activates when clamp goes to open position. How do I use the input from the prox switch to prevent the program from continuing unless the clamp is open? I am using M8 with a 1 sec. delay and M9 to energize the solenoid that opens the clamp. The program (simpilfied) is something like this:
G0G90 G54 X1Y1
X1.5Y1.5F10
M8M9
X2Y2
M30