X20 system modules • Other functions • X20DS438A
2272
X20 system User's Manual 3.10
4.26.5.9.10.3 EventCode
Name:
EventCode
The event code of the event being transferred is indicated in this register. The event codes may be vendor-specific
event codes or event codes defined in the IO-Link specification.
Data type
Value
UINT
0 to 65,535
4.26.5.9.10.4 EventsLeft
Name:
EventsLeft
This register indicates the number of as yet unprocessed events in the FIFO buffer.
Data type
Value
USINT
0 to 16
4.26.5.9.10.5 EventQuit
Name:
EventQuit
This register can be used to acknowledge errors. This is done by copying the sequence number of the event to
be acknowledged to this register.
Data type
Value
USINT
0 to 15
4.26.5.9.10.6 EventQuitReadBack
Name:
EventQuitReadBack
This register contains the sequence number of the most recently acknowledged event.
Data type
Value
USINT
0 to 15
4.26.5.9.11 Command interface
The command interface offers the option of accessing the object dictionary of the IO-Link device using the index
and subindex. Access is also possible using the AsIOLink library or FlatStream.
Information:
With this interface, up to the first 4 bytes of an object can be read or written.
Procedure for write operation:
•
Set the object to be written using ParameterIndexOut and ParameterSubIndexOut.
•
Write the data to be written to ParameterDataOut.
•
Set read/write, IF and the sequence number increased by 1 in the ParameterCtrlOut register.
•
Wait until the sequence acknowledgment in ParameterCtrlIn is the same as the sequence number.
Procedure for read operation:
•
Set the object to be read using ParameterIndexOut and ParameterSubIndexOut.
•
Delete bit 7 in the ParameterCtrlOut parameter, set the channel number and increase the sequence num-
ber.
•
Wait until the sequence acknowledgment in ParameterCtrlIn is the same as the sequence number.
•
Read the error status from ParameterCtrlIn. An error is indicated by a set error bit.
•