Accessing Io-Link Parameters - Beckhoff KL6224 Documentation

Io-link terminal
Table of Contents

Advertisement

Process of an acyclic query
The process of an acyclic query to an IO-Link device is as follows:
1. Reading of register page 8 R33 (status) to ascertain whether status is Idle
2. If status = Idle, write TACYCLICKBUSCMD_CMD_START to register page 8 R32 (Cmd)
3. Write acyclic data into the buffer from register page 8, R36, as required
4. Start the service by writing the corresponding services in register page 8 R32 (Cmd)
5. Read register page 8 R33 (status) until no longer busy
6. Read acyclic data from the buffer from register page 8, R36, as required
7. Conclude the service by writing TACYCLICKBUSCMD_CMD_ACK to register page 8 R32 (Cmd)
5.7

Accessing IO-Link parameters

The parameters of the KL6224 IO-Link master terminal can be accessed via the parameter data block. Write
and read access are documented below, including examples.
Writing a parameter
The following sequence should be used for writing a parameter:
First check whether the previous access was fully completed. To do this, assess status byte 1: Bits 4 to 7
should be 0
. If this is not the case, control bytes 0 and 1 should be set to 0, until bits 4 to 7 in status byte 1
bin
are set to 0
.
bin
Write access (PLC->KL6224): parameter data block
Byte
Byte 0
Name
Control byte 0
Value
01
A
A
 A
bin
5
4
3
A
to A
: bits of the parameter address
0
9
P
to P
: bits of the parameter value
0
31
Response to write access (KL6224->PLC): parameter data block
Byte
Byte 0
Name
Status byte 0
Value
xxxx xxxx
bin
x: Bits can take on any value
F: error bit.
F=0
: Write access was successful.
bin
F=1
: Write access was not successful. Bytes 2 to 5 contain an error code providing information about the
bin
cause of the error.
The write sequence is completed by setting the control bytes to zero:
Conclusion of write access (PLC->KL6224): parameter data block
Byte
Byte 0
Name
Control byte 0
Value
0000 0000
bin
x: The parameter values are not evaluated if the control bytes are 0x00.
KL6224
Byte 1
Control byte 1
A
A
A
0100
 A
A
A
A
2
1
0
bin
9
8
7
Byte 1
Status byte 1
01F1 xxx1
bin
Byte 1
Control byte 1
0000 0000
bin
Version: 2.0.0
Byte 2
Byte 3
ParaOut0
ParaOut1
P
...P
P
...P
6
0
7
8
15
Byte 2
Byte 3
ParaIn0
ParaIn1
Error code
Error code
Byte 2
Byte 3
ParaOut0
ParaOut1
x
x
Access from the user program
Byte 4
Byte 5
ParaOut2
ParaOut3
P
...P
P
...P
16
23
24
31
Byte 4
Byte 5
ParaIn2
ParaIn3
Error code
Error code
Byte 4
Byte 5
ParaOut2
ParaOut3
x
x
49

Advertisement

Table of Contents
loading

Table of Contents