omron — CYCLE.END program instruction

CYCLE.END program instruction Regardless of the stop_flag parameter, this instruction will wait until the program actually is terminated. If the program being terminated loops internally so that the current execution cycle never ends, the CYCLE.END instruction will wait forever. To proceed from a CYCLE.END that is waiting for a program to terminate, abort the program that is waiting for a CYCLE.END by typing an ABORT command for the program task that executed the CYCLE.END instruction.

Example The following program segment shows how a program task can be initiated from another program task (the ABORT and CYCLE.END program instructions are used to make sure the specified program task is not already active): ABORT 3 ;Abort any program already active CYCLE.END 3 ;Wait for execution to abort EXECUTE 3 new.program ;Start up the new program Related Keywords ABORT monitor command ABORT program instruction CYCLE.END monitor command EXECUTE monitor command EXECUTE program instruction KILL monitor command KILL program instruction STATUS monitor command STATUS real-valued function STOP program instruction eV+Language Reference Guide, v2.x, 18319-000 Rev A Page 143