omron — Details

CYCLE.END monitor command CYCLE.END monitor command Syntax CYCLE.END task, stop_flag Function Terminate the specified executable program the next time it executes a STOP program instruction or its equivalent. Suspend processing of a command program until a program completes execution. Usage Considerations The CYCLE.END command has no effect if the specified program task is not active. The CYCLE.END command blocks all keyboard input until the specified task completes execution. Pressing CTRL+C releases the keyboard. In that case the CYCLE.END command will still terminate the program (if the "stop_flag" is TRUE).

Parameters task Optional real value, variable, or expression (interpreted as an integer) that specifies which program task is to be monitored or terminated. If the task number is not specified, the CYCLE.END command accesses task number 0. stop_flag Optional real value, variable, or expression interpreted as a logical (TRUE or FALSE) value. If the parameter is omitted or has the value 0, the specified task is not stopped, but the CYCLE.END has all its other effects (see Details). If the parameter has a nonzero value, the selected task will stop at the end of its current cycle.

Details If the "stop_flag" parameter has a TRUE value, the specified program task will terminate the next time it executes a STOP program instruction (or its equivalent), regardless of how many program cycles are left to be executed. NOTE : CYCLE.END does not terminate a program with continuous internal loops. Such a program must be terminated with the ABORT command or instruction. eV+Operating System Reference Guide, 2.x,18321-000 Rev A Page 53