The await event instruction is as follows:
Instruction
|
Instruction code
|
Icon
|
Await event
|
05
|
|
This instruction is used to wait for an event with a Time Out (in ms), defined in the F parameter. If an event does not appear within the Time Out period, the await command is then deactivated. If F parameter is defined at 0, the wait is without a time limit.
The awaited event can be:
-
a change in the status of a reflex input for one of the interpolated axes,
-
a command from the application.
Nibble 1 for parameter M is used to set the axis (or axes) for the awaited event:
The G05 instruction can activate an event task on detection of an event, if nibble 3 of parameter M is set to 1.
TO_G05 (Ir.m.c.49) bit is set to 1 when the Time Out period has expired without an event being detected, providing task event activation has been requested. For example, wait with a Time Out period of 1.5 s and with task event activation:
XMOVE (AXIS_CH3,1,90,05,0,0,0,0,1500,16#1000)