KL8528 - Process image

The KL8528 is represented in the process image with 6 bytes each of input and output data. These are organized as follows:

Byte offset

Format

Input data

Output data

0

Byte

Status byte (SB), for register communication only

Control byte (CB), for register communication only

1

Byte

Data byte 1 (auto/manual for output 1 to 8)

Data byte 1 (sets output 1 to 8)*

2

Byte

Data byte 2 (switch position for output 1 to 8)

Data byte 2 (reserved)

3

Byte

reserved

Data byte 3 (sets LED 1 to 8 green)

4

Byte

reserved

Data byte 4 (sets LED 1 to 8 yellow)

5

Byte

reserved

reserved

*) If the respective switch is set to auto.

Control and status byte

See chapter Control and status byte

Process data

Input data

Data byte 1

Data byte 1 indicates the positions of the switches (auto/man).

Bit

Name

Description

0

enAutoCh1

1bin

Switch of channel 1 is set to auto: the PLC controls this channel.

1

enAutoCh2

1bin

Switch of channel 2 is set to auto: the PLC controls this channel.

...

...

...

7

enAutoCh8

1bin

Switch of channel 8 is set to auto: the PLC controls this channel.

Data byte 2

Data byte 2 indicates the positions of the switches (off/on).

Bit

Name

Description

0

Switch1

0bin

Switch of channel 1 is set to off

1bin

Switch of channel 1 is set to on

1

Switch1

0bin

Switch of channel 2 is set to off

1bin

Switch of channel 2 is set to on

...

...

...

7

Switch1

0bin

Switch of channel 8 is set to off

1bin

Switch of channel 8 is set to on

Output data

Data byte 1

Data byte 1 sets the outputs in automatic mode.

Bit

Name

Description

0

setCh1

1bin

Output 1 is set.

1

setCh2

1bin

Output 2 is set.

...

...

...

7

setCh8

1bin

Output 8 is set.

Data byte 2

Has no function (reserved) in process data mode, but is used for register communication.

Data byte 3

Data byte 3 sets the LEDs of the channels to green.

Bit

Name

Description

0

LED 1 green

1bin

LED 1 lights up green

1

LED 2 green

1bin

LED 2 lights up green

...

...

...

7

LED 8 green

1bin

LED 8 lights up green

Data byte 4

Data byte 4 sets the LEDs of the channels to yellow.

Bit

Name

Description

0

LED 1 green

1bin

LED 1 lights up yellow

1

LED 2 green

1bin

LED 2 lights up yellow

...

...

...

7

LED 8 green

1bin

LED 8 lights up yellow