omron — KILL program instruction

KILL program instruction KILL program instruction Syntax KILL task_number Function Clear a program execution stack and detach any I/O devices that are attached. Usage Considerations KILL cannot be used while the specified program task is executing. KILL has no effect if the specified task execution stack is empty. Parameter task_number Optional real value, variable, or expression (interpreted as an integer) that specifies which program task is to be cleared. (See below for the default.

See the eV+ Language User's Guide for information on tasks.) Details This operation clears the selected program execution stack, closes any open files, and detaches any I/O devices that may have been left attached by abnormal program termination. This situation can occur if a program executes a PAUSE instruction or is terminated by an ABORT command or instruction, or an error condition, while an I/O device is attached or a file is open. If a limited-access I/O device (such as the serial I/O device) is left attached, no other program task can use that device until it is detached. The KILL instruction always accesses task #0 if the task number is omitted.

Related Keywords ABORT monitor command ABORT program instruction EXECUTE monitor command EXECUTE program instruction STATUS monitor command eV+Language Reference Guide, v2.x, 18319-000 Rev A Page 316