How do you reset main program when some error occurs?
I've used flag in subtask which monitored alarms and condition in main program:
CONDITION
IF flag = true THEN
CANCEL CURRENT
EXIT CYCLE
ENDIF
But with new software there is problem when viewing ide, exit cycle can not be called.
How do you interrupt main program by error event, cancel all movements and reset program pointer to begin?