Access From The User Program; Process Image - Beckhoff KL6224 Documentation

Io-link terminal
Table of Contents

Advertisement

Access from the user program

5
Access from the user program
5.1

Process image

The process image of the KL6224 consists of a 6-byte parameter data block and a 6-, 8-, 18-, 30- or 42-byte
process data block.
The result is a 12-, 14-, 24-, 36- or 48-byte process image.
The size of the process image can be set via the KS2000 configuration software, or fieldbus-specific via the
Bus Coupler. It is stored in register R27 of the KL6224.
After changing the process image the Bus Coupler must be restarted for the modified process image to take
effect.
Please refer to chapter Firmeware version of the Bus Couplers [} 52] to find out which process images your
Bus Coupler supports.
Description of the process images
Selection of the process image
The process image should not be larger than necessary for operating your IO-Link devices!
This saves bandwidth for the higher-level fieldbus and the K-bus. Since only 12 bytes can
Note
be transferred to the KL6224 in a K-bus cycle, the update rate of the other terminals is also
optimally fast with minimal selection.
12-byte process image
The 12-byte process image consists of a 6-byte parameter data block and a 6-byte process data block.
Output data (PLC -> KL6224)
Parameter data block (6 bytes)
Byte 0
Byte 1 Byte 2
CB0
CB1
ParaOut0 ParaOut1 ParaOut2 ParaOut3 DataOut0 DataOut1 DataOut2 DataOut3 DataOut4 DataOut5
Input data (KL6224 -> PLC)
Parameter data block (6 bytes)
Byte 0
Byte 1 Byte 2
SB0
SB1
ParaIn0
Key
CB n: Control byte n of the KL6224
SB n: Status byte n of the KL6224
Para Out n: Output parameter, byte n
Para In n: Input parameter, byte n
StatusCH n: Status information of IO-Link device n
DataOut n: Output data byte n
DataIn n: Input data byte n
12-byte process image, compressed mode
In compressed mode the data are compacted in order to save space (e.g. for CANopen Bus Coupler). It can
be activated via the parameter Master Control (register R41 on register page 4) [} 46].
If compressed mode is active, it applies to all IO-Link ports.
The compressed mode is also available for the larger process images (14, 24, 36 and 48 bytes).
For the larger process images the structure of the mixed data block is exactly as shown here, and the
process data block then includes the further data bytes from DataOut2/DataIn2.
34
Byte 3
Byte 4
Byte 5
Byte 3
Byte 4
Byte 5
ParaIn1
ParaIn2
ParaIn3
Version: 2.0.0
Process data block (6 bytes)
Byte 6
Byte 7
Byte 8
Process data block (6 bytes)
Byte 6
Byte 7
Byte 8
StatusCh1 StatusCh2 StatusCh3 StatusCh4 DataIn0
Byte 9
Byte 10
Byte 11
Byte 9
Byte 10
Byte 11
DataIn1
KL6224

Advertisement

Table of Contents
loading

Table of Contents