Hello guys,
I have the following situation which I would like to correct.
I have an interrupt running when the operator presses a STOP button if system is in STOP state and the operator also presses the RESET button then the robot will execute a safe return home strategy which consists of two movements. I wanted to create that if the operator presses STOP at any moment the robot would STOP and resume after they press START again.
I achieved that by using a STOP 2 from the PLC cutting the MOVE_ENABLE SIGNAL and then doing the handshake again to resume the movement. But when I do this the robot if the movement was not completed the robot goes to the next movement point when the handshake is completed again.
Could you suggest an alternative solution using interrupts or from the PLC that maybe I'm missing?
This is the interrupt code.
After executing the RESUME goes to the cell main program.
DEF STOP_INT ( )
BRAKE
WHILE STOP_PROCESS
IF ( (ABORT_PROCESS == TRUE) AND ($IN_HOME1 == FALSE)) THEN
$TOOL =TOOL_DATA[1]
$BASE=$NULLFRAME
;SPEED OVERRIDE 20%
$OV_PRO=30
;FOLD PTP P01 Vel=25 % PDAT01 Tool[1]:Tool1 Base[0] ;%{PE}
;ENDFOLD
;RETURN HOME
PTP XHOME
;SPEED OVERRIDE 50%
$OV_PRO=50
WAIT SEC 0
RESUME
ENDIF
ENDWHILE
END
Display More
Thank you!