Access from the user program
KL6224
51
Version: 2.0.0
Conclusion of read access (PLC->KL6224): parameter data block
Byte
Byte 0
Byte 1
Byte 2
Byte 3
Byte 4
Byte 5
Name
Control byte 0
Control byte 1
ParaOut0
ParaOut1
ParaOut2
ParaOut3
Value
0000 0000
bin
0000 0000
bin
x
x
x
x
x: The parameter values are not evaluated if the control bytes are 0x00.
Example
The list of detected slaves (LDS) is to be determined. This requires the parameter 0xB0 (1011 0000
bin
) to be
read.
Read access (PLC->KL6224): parameter data block
Byte
Byte 0
Byte 1
Byte 2
Byte 3
Byte 4
Byte 5
Name
Control byte 0
Control byte 1
ParaOut0
ParaOut1
ParaOut2
ParaOut3
Value
0011 0000
bin
(0x30)
0100 0010
bin
(0x42) 0x00
0x00
0x00
0x00
Therefore the byte sequence 0x30 42 00 00 00 00 has to be written in the parameter data block for the
KL6224. The terminal responds with the following data:
Response to write access (KL6224->PLC): parameter data block
Byte
Byte 0
Byte 1
Byte 2
Byte 3
Byte 4
Byte 5
Name
Status byte 0
Status byte 1
ParaIn0
ParaIn1
ParaIn2
ParaIn3
Value
xxxx xxxx
bin
0101 xxx0
bin
0x4C
0x02
0x80
0x83
In this example the IO-Link master should have detected the slaves with node numbers 2, 3, 6, 9, 23, 24, 25
and 31. It therefore responds with the parameter data 0x8380024C
(1000 0011 1000 0000 0000 0010 0100 1100
bin
)
The read sequence is completed with the byte sequence 0x00 00 00 00 00 00.