omron — SET.EVENT program instruction

SET.EVENT program instruction SET.EVENT program instruction Syntax SET.EVENT task, flag Function Set an event associated with the specified task. Parameters task Optional real value, variable, or expression (interpreted as an integer) that specifies the task for which the event is to be set. The valid range is 0 to 27, inclusive. If this parameter is omitted, the number of the current task is used. NOTE: All 28 tasks are available only in systems equipped with the optional eV+ Extension. flag Not used, defaults to 1. Details This instruction sets the event associated with the specified task.

For example, if a task had been suspended by a WAIT.EVENT 1 instruction, executing the SET.EVENT instruction for that task causes it to resume execution (during the next available time slice for which it is eligible). Related Keywords CLEAR.EVENT program instruction GET.EVENT real-valued function WAIT.EVENT program instruction eV+Language Reference Guide, v2.x, 18319-000 Rev A Page 463