Programming an Await Event
(Original Document)
Instruction
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.
Awaited Event
The awaited event can be:
Nibble 1 for parameter M is used to set the axis (or axes) for the awaited event:
Event Task
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)