omron — STATUS real-valued function

STATUS real-valued function STATUS real-valued function Syntax STATUS (program_name) Function Return status information for an application program. Usage Considerations The use of STATUS with a null program name to determine the task number is obsolete. The TASK real-valued function is more efficient and should be used instead. Parameter program_name String constant, variable, or expression that specifies the name of the application program of interest. Letters in the name can be uppercase or lowercase. The string can be empty ( ) in order not to specify a program name (see below), but the parameter cannot be omitted.

Details This function returns information about the execution status of the specified program. If no program name is specified (that is, the parameter string is empty [ ]), the task number of the program containing the function call is returned. This allows a program to determine which system task it is executing as. (Tasks and task numbers are described in the section Scheduling of Program Execution Tasks in the eV+ Language User's Guide .) If a program name is specified as the function parameter, the status of that program is returned as follows: eV+Language Reference Guide, v2.x, 18319-000 Rev A Page 507 Value returned Program status -1 Not executing. -2 Not defined.

-3 Interlocked because of write.