Event processing with an independent axis. Schneider Electric Software PLC Application-Specific Functions, Axis control, Junior/Pro, 4.5, PL7 Junior/Pro - Premium PLC Application-specific functions - Axis control
Реклама
Реклама
Programming
Event processing with an independent axis
Introduction The TSX CAY module channels are able to activate an event task.To do this, the function must have been enabled on the configuration screen by associating an event processing number with the channel.
Activating an event task
Variables that can be used by the event task
The following instructions trigger an event transmission, which activates the event task: l Movement until the event, codes 10 and 11:the event processing application is activated, on event detection.
l Await event, code 05:the event processing application is activated, on instruction completion.
l Storage of current position on event occurrence, code 07 :the event processing application is activated on completion of storage of the position PREF1 or l
PREF2.
Modulo crossing for an unlimited axis: the event processing application is activated on every modulo crossing during a movement.Event processing activation must be enabled by setting the VALIDEVTMOD parameter
(%MWxy.i.62:X0) to 1.
The event processing application is activated if bit 12 of parameter M of the SMOVE function associated with the instruction is set at 1.
l l l l l
If several event sources are chosen, the following bits are used to determine the source to trigger event processing application:
EVT_G1 (%Ixy.i.50): G10 or G11 end on event,
EVT_G05 (%Ixy.i.48): G05 end on event, l l
TO_G05 (%Ixy.i.49): G05 time-out elapsed,
EVT_G07 (%Ixy.i.47):Storage of position, l EVT_MOD (%Ixy.i.51):Modulo crossing.
The OVR_EVT bit (%Ixy.i.46) is used to detect a delay in event transmission or an event loss.
Value of the stored positions PREF1 (%IDxy.i.9) and PREF2 (%IDxy.i.11).
Note: The words and bits described below are the only values, which are refreshed during execution of an event task. They are only updated in the PLC on activation of the task.
TLX DS 57 PL7 xxE
163
Programming
Event masking PL7 language offers 2 ways to mask events: l Instruction for global event masking:MASKEVT (UNMASKEVT is used for unmasking): l Bit %S38 = 0 (global event inhibition).%S38 bit is normally set to 1.
Summary diagram:
TSX CAY
Event task
EVTi
Processor
164
TLX DS 57 PL7 xxE
Изтегляне
Реклама