Hi All,
we are using our own cell.src program (not P00). This program is calling a function in a library and this function is calling a motion program.
I want to be able to kill the cell.src in mode Ext and its child’s. I will receive a signal for the plc/HMI to kill the sequence.
I want to do the equivalent of a Fanuc FNCT abort all (in auto mode) or a PP2Main in ABB in auto mode.
I did this in the SPS
It work for the manual Key but not the signal from the PLC ($IN[3])
Can anyone help me with this?
IF ($MODE_OP==#EX) and (bCELL_CALLED==false) and ($IN[3]==false)THEN
CWRITE($CMD,STAT,MODE,"RUN /R1/CELL()")
bCELL_CALLED=TRUE
ENDIF
IF ((($MODE_OP==#T1) and (bCELL_CALLED)) Or (($MODE_OP==#EX) and ($IN[3]==TRUE)and (bCELL_CALLED)))THEN
CWRITE($CMD,STAT,MODE,"CANCEL")
bCELL_CALLED=FALSE
IF ($MODE_OP==#EX)THEN
DO102StartMainReq = TRUE
Wait For ($IN[3]==FALSE)
DO102StartMainReq = FALSE
wait sec 0
CWRITE($CMD,STAT,MODE,"RUN /R1/CELL()")
bCELL_CALLED=TRUE
ENDIF
ENDIF