IO-Link Master with AS-Interface Interface StandardLine 2 Ports IP 65 / IP 66 / IP 67
28
>
9.5.1
Example: Reading parameter
51984
Task:
The parameter of the IO-Link device at IO-Link port X02 is to be read (AS-i master: 1, AS-i slave
address: 2, Index: 15000, sub-index: 0; parameter length: 172 bytes)
Solution:
Send read command with "Write Parameter String (S-7.4) to AC6002; read the parameter value that
has been read with 2x "Read Parameter String (S-7.4).
Course:
0
0
1
1
Write Parameter
String S-7.4
Read Parameter
String S-7.4
CMD Req Valid
CMD Resp
1 Request parameter value
►
Send AS-i command "Write Parameter String (S-7.4)" to basic AS-i slave.
►
Save the request of the IO-Link command "Read Parameter" in the data range:
Parameter
Value
Note
Block ID
0x00
single command
Command ID
0x0B
"Read Parameter" command
Target ID
0x02
IO-Link port X02
Data Length
0x03
Index (2 bytes) + sub-index (1 byte)
Index (MSB)
0x3A
Index (LSB)
0x98
Sub-index
0x00
>
Basic AS-i slave passes "Read Parameter" command request to IO-Link master.
>
IO-Link master executes command.
>
IO-Link master saves 1. Segment of the parameter value in "Read Parameter" command response.
2 Verify the availability of the IO-Link command response
►
Read the status information of the basic AS-i slave.
►
If [CMD Resp] == 0: IO-Link command response not available; Repeat step 2.
►
If [CMD Resp] == 1: IO-Link command response available; continue with step 3
3 Read parameter value (first segment)
►
Send AS-i command "Read Parameter String (S-7.4)" to basic AS-i slave.
►
Data range of the command request:
→
step 1 (bytes 0...6)