Process image

The terminal can be operated with variously sized process images:

The compact process image is activated in the delivery condition of the KL5151-0050. The size of the process image can be specified through bit R32.6 of the feature register.

Control byte, status byte and mapping

Compact process image

For operation with compact process image, you must configure your Bus Coupler to compact mapping and bit R32.6 of the feature register of the KL5151-0050 must be 1bin.

The KL5151-0050 is represented in the compact process image with 8 bytes of input data and 8 bytes of output data. These are organized as follows:

Input data

Output data

Format

Contents

Format

Contents

Double word

DataIN1

Byte

CB1PD

Byte

reserved

Byte

CB2PD

Byte

reserved

Double word

DataIN2

Double word

DataOUT

Key

CB1PD: Control byte for process data operation of channel 1
CB2PD: Control byte for process data operation of channel 2

DataIN1: The current value of the 32-bit counter 1, or the one stored in the latch (the selection is made with bit CB1.1 of the control byte 1)
DataIN2: The current value of the 32-bit counter 2, or the one stored in the latch (the selection is made with bit CB2.1 of the control byte 2)
DataOUT: 32 bit specification of the value for counter 1 and counter 2

Process image 1:

No register communication possible

In this configuration the control bytes are suitable only for process data operation. Register communication is not possible!

Complete process image

For operation with complete process image, you must configure your Bus Coupler to complete mapping and bit R32.6 of the feature register of the KL5151-0050 must be 0bin.

The KL5151-0050 is represented in the complete process image with 10 bytes of input data and 10 bytes of output data. These are organized as follows:

Input data

Output data

Format

Contents

Format

Contents

Byte

SB1

Byte

CB1

Double word

DataIN1

Double word

DataOUT1

Byte

SB2

Byte

CB2

Double word

DataIN2

Double word

DataOUT2

Key

SB1: Status byte for channel 1
SB2: Status byte for channel 2
CB1: Control byte for channel 1
CB2: Control byte for channel 2

DataIN1: The current value of the 32-bit counter 1, or the one stored in the latch (the selection is made with bit CB1.1 of the control byte 1)
DataIN2: The current value of the 32-bit counter 2, or the one stored in the latch (the selection is made with bit CB2.1 of the control byte 2)
DataOUT1: 32 bit specification of the value for counter 1
DataOUT2: 32 bit specification of the value for counter 2

Process image 2:

Register communication possible

In this configuration you can use the control and status bytes alternatively for register communication or process data operation.

Compact process image on Bus Coupler that is set to complete process image

If the KL5151-0050 is operated on a Bus Coupler that is set by default to complete process image (e.g. Lightbus), but bit R32.6 of the feature register is 1bin, the following process image results:

Input data

Output data

Format

Contents

Format

Contents

Byte

SB1RC

Byte

CB1RC

Double word

DataIN1

Byte

CB1PD

Byte

reserved

Byte

CB2PD

Byte

reserved

Byte

SB2RC

Byte

CB2RC

Double word

DataIN2

Double word

DataOUT

Key

SB1RC: Status byte for register communication with channel 1
SB2RC: Status byte for register communication with channel 2
CB1RC: Control byte for register communication with channel 1
CB2RC: Control byte for register communication with channel 2

CB1PD: Control byte for process data operation of channel 1
CB2PD: Control byte for process data operation of channel 2

DataIN1: The current value of the 32-bit counter 1, or the one stored in the latch (the selection is made with bit CB1.1 of the control byte 1)
DataIN2: The current value of the 32-bit counter 2, or the one stored in the latch (the selection is made with bit CB2.1 of the control byte 2)
DataOUT: 32 bit specification of the value for counter 1 and counter 2

Process image 3:

Register communication possible

In this configuration you have different control and status bytes for register communication and process data operation. These are only suitable for the respectively specified purpose!
You can switch from process data operation to register communication with bit 7 of the control byte for register communication.
Bit 7 of the control byte for process data operation is not evaluated.