omron — GET.EVENT real-valued function

GET.EVENT real-valued function GET.EVENT real-valued function Syntax GET.EVENT ( task ) Function Return events that are set for the specified task. Usage Considerations Do not confuse GET.EVENT with the GETEVENT program instruction, which returns information from a graphics window or the terminal. Parameter task Optional real value, variable, or expression (interpreted as an integer) that specifies the task for which events are to be returned. The valid range is -1 to 6, or -1 to 27, inclusive. If the parameter is omitted, or has the value -1, the current task is referenced. NOTE: The basic system allows 7 tasks (0–6). The eV+ Extensions option allows 28 tasks (0–27).

Details The events are returned in a value that should be interpreted as a sequence of bit flags, as detailed below. Bit 1 (LSB) I/O Completion (mask value = 1) This bit being set indicates that a system input/output operation has completed. See the descriptions of SET.EVENT and WAIT.EVENT for more details. Related Keywords CLEAR.EVENT program instruction SET.EVENT program instruction WAIT.EVENT program instruction eV+Language Reference Guide, v2.x, 18319-000 Rev A Page 268