The channels of the TSX CFY modules can activate an event task. To do that you must have enabled the functionality in the configuration screen, by associating an
event processing number to the channel.
The following instructions trigger the sending of an event that activates the event task:
-
Movement until an event, codes 10 and 11: the event processing application is activated, when the event is detected.
-
Await event, code 05: the event processing application is activated, at the end of the instruction.
-
Storing the current position when the event appears, code 07: the event processing application is activated at the end of storing the PREF position.
The event processing application is activated, if bit 12 in the M parameter of the SMOVE function associated to the instruction is set to 1 (M equals 16#1000).
Variables which can be used by the event task
-
If several event sources are selected, the following bits allow you to determine what caused the event processing application to be triggered:
-
EVT_G1X (%Ir.m.c.40): end of G10 or G11 on event,
-
EVT_G05 (%Ir.m.c.38): end of G05 on event,
-
TO_G05 (%Ir.m.c.39): G05 timing elapsed,
-
EVT_G07 (%Ir.m.c.37): storage of position,
-
The OVR_EVT bit (%Ir.m.c.36) allows you to detect a delay in the sending of the event or a loss of event.
-
Value of the stored position PREF (%IWr.m.c.7).
NOTE: The bits and the words described above are the only values refreshed in the event task, and are only updated into the PLC when the task is activated.
The programming language offers 2 methods of masking events:
Summary diagram: