Hi Gents/Ladies
I have declared an interrupt to brake the robot and then resume the program in which the interrupt is declared.
DEF Program_Reset()
INTERRUPT OFF 5
BRAKE
RESUME
END
The interrupt is declared in cell.src file and it is activated every time the controller runs the cell.src loop:
INTERRUPT DECL 5 WHEN PROG_RES DO Program_reset
.
.
.
LOOP
INTERRUPT ON 5
P00(#EXT_PGNO,…
SWITCH PGNO
.
.
.
ENDSWITCH
ENDLOOP
If the main pointer is in cell.src waiting for the program number, and the interrupt is triggered, the controller will execute the last program number that were called by the PLC even if no program number is sent to the controller
I think it is a bug and it should not happen. Any thoughts?