Controller Processing Procedure
Step
1
Write com-
mand
2
Read re-
sponse
3
Check status
and se-
quence num-
ber
NXR-series IO-Link Master Unit for EtherCAT User's Manual (W640)
Controller processing
Send a command to the object for ac-
cessing an IO-Link device. Specify the
following values.
•
Control
When writing, the value is 0x02 (Write).
When reading, the value is 0x03
(Read).
•
Status
---
•
Index
Index number of the IO-Link device
•
Subindex
Subindex number of the IO-Link device
•
Length
When writing, size of the data to be
written
•
Data
When writing, data to be written
•
Error Code
---
•
Timeout
Response monitoring time
•
Sequence No
When writing, any value in the range of
00 to FF hex
When writing was performed in step 1,
send a read command to the same ad-
dress as that in step 1.
Check the status and sequence number
of the read data.
Send a read command until the status be-
comes one of the following.
•
0x02: Successful
•
0x04: Error (IO-Link Master)
•
0x05: Error (IO-Link Device)
When reading, check that the read se-
quence number matches the sequence
number specified in the sent command. If
it matches, send a response for the sent
command.
Appendices
Com-
muni-
cati-
IO-Link Master Unit process-
ons
ing
direc-
*1
tion
®
Receive a command, detect
that the control value changes
from 0x00 (No processing),
and set the status value to
0x01 (Busy). Then, send a
message to the IO-Link de-
vice.
After receiving a response
from the IO-Link device, up-
date the following values.
•
Length (when reading)
•
Data (when writing)
•
Error Code
•
Sequence No
After updating, change the sta-
tus value to one of the follow-
ing.
•
0x02: Successful
•
0x04: Error (IO-Link Master)
•
0x05: Error (IO-Link Device)
¬
Send a response to the con-
troller.
¬
Send a response to the con-
troller.
A
A-57