IO-Link Master with AS-Interface Interface StandardLine 4 Ports IP 65 / IP 66 / IP 67
31
>
9.5.2
Example: Writing parameter
51985
Task:
Parameter of the IO-Link devices on IO-Link port X02 is to be written (AS-i master: 1, AS-i slave
address: 2, Index: 15000, sub-index: 0; parameter length: 192 bytes)
Solution:
Send parameter value with 2x "Write Parameter String (S-7.4)" to AC6000; verify the success of each
write operation with "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 Send first segment of the 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 "Write Parameter" in the data range:
Parameter
Value
Note
Block ID
0x01
first segment; follow further segments
Command ID
0x0A
"Write Parameter" command
Target ID
0x02
IO-Link port X02
Data Length
0x9A
150 bytes of parameter data + 4 bytes (index, sub-index, parameter data length)
Index (MSB)
0x3A
Index (LSB)
0x98
Sub-index
0x00
Parameter length
0xC0
192 bytes (length of the parameter)
Parameter Data[0...149]
per byte:
0x00...0xFF
Parameter value (bytes 0...149)
>
IO-Link master executes command.
>
IO-Link master saves the command status in IO-Link 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 command status
►
Send AS-i command "Read Parameter String (S-7.4)" to basic AS-i slave.