The PTO channels can send events to the application.
To do so in Control Expert configuration screen, enable the event functionality and specify the number of the event task that will be triggered.
PTO channels support 2 sources of events:
-
Position reached
-
Referencing done
All the events sent by the unit, regardless of the source, call the same single event task in the PLC.
There is only one type of event signaled per call.
The source producing the call is determined in the event task via the Event Sources variable (%IWr.m.c.12).
This variable is updated at the beginning of the event task processing.
NOTE: It is not recommended to send new PTO commands in Event Task, as they may be rejected.
A source will produce its events if the corresponding enable bit is set to 1.
This event source enabling is done through the implicit command object %QWr.m.c.0.
Any event occurring while its source is disabled will be lost. When the source is enabled again, only new event occurrences will be produced.
Object
|
Type
|
Symbol
|
Value
|
%QWr.m.c.0
|
INT
|
Enable Evt Source
|
One bit per source
1: Enable / 0: Disable
|
x0
|
bit
|
|
Position reached
|
x1
|
bit
|
|
Referencing done
|
Each PTO channel can produce a maximum of one event per 2 ms, but this flow may be slowed by the simultaneous transmission of events by several units on the rack bus.
NOTE: It is not recommended to send new PTO commands in Event Task, as they may be rejected.
The event has a unique input interface; this is only updated at the beginning of event task processing. This interface includes: