How would I utilize a variable to turn off an output when I've moved 10mm along Z without pausing motion?
I was thinking something like:
PTP A_POS1 ; Above position 1
PTP POS1 ; Drop off location where output is triggered
$OUT[90] = TRUE
Current_POS = $POS_ACT
PTP A_POS1
PTP A_POS2
PTP POS2
$OUT[90] = TRUE
Current_POS = $POS_ACT
etc...
Then in the SPS:
INT Out_Off = 10
IF $OUT[90] == TRUE THEN
IF Current_POS.Z >= Current_POS.Z + Out_Off THEN
$OUT[90] = FALSE
ENDIF
ENDIF
I had it move to POS1, trigger output and then move to A_POS1 and then turn off the output but for efficiency purposes I wanted to work something like this. I could put something in the cell.src in each drop off position to move Z 10mm and then turn off the output but I want it to function smoothly without pausing on the way to A_POS.