KL8524 - Process image
The KL8524 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) | Control byte (CB) |
1 | Byte | Data byte 1: position of the auto/man switch | Data byte 1: overwrites the position of the three-step switch in automatic mode |
2 | Byte | Data byte 2: position of the three-step switch | Data byte 2: reserved for register communication |
3 | Byte | Data byte 3: state of the physical outputs | Data byte 3: sets the output LEDs to green |
4 | Byte | Data byte 4: reserved | Data byte 4: sets the output LEDs to yellow |
5 | Byte | Data byte 5: reserved | Data byte 5: reserved |
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 | enAutoC1 | 0bin | auto/man switch of channel 1 is set to man: the three-step switch controls this channel. |
1bin | auto/man switch of channel 1 is set to auto: the PLC controls this channel. | ||
1 | enAutoC2 | 0bin | auto/man switch of channel 2 is set to man: the three-step switch controls this channel. |
1bin | auto/man switch of channel 2 is set to auto: the PLC controls this channel. | ||
2 | enAutoC3 | 0bin | auto/man switch of channel 3 is set to man: the three-step switch controls this channel. |
1bin | auto/man switch of channel 3 is set to auto: the PLC controls this channel. | ||
3 | enAutoC4 | 0bin | auto/man switch of channel 4 is set to man: the three-step switch controls this channel. |
1bin | auto/man switch of channel 4 is set to auto: the PLC controls this channel. | ||
4 | - | reserved | |
... | ... | ... | |
7 | - | reserved |
Data byte 2
Data byte 2 indicates the positions of the three-step switch.
Bit | Channel | Description | |
---|---|---|---|
1 and 0 | Channel 1 | Bits | Three-step switch |
00bin | Position 0 | ||
01bin | Position 1 | ||
10bin | Position 2 | ||
11bin | - (not possible) | ||
3 and 2 | Channel 2 | See channel 1 | |
5 and 4 | Channel 3 | See channel 1 | |
7 and 6 | Channel 4 | See channel 1 |
Data byte 3
Data byte 3 indicates the states of the physical outputs of the KL8524.
Bit | Name | Description | |
---|---|---|---|
0 | stateC1.1 | 0bin | Output C1.1 is not set |
1bin | Output C1.1 is set | ||
1 | stateC1.2 | 0bin | Output C1.2 is not set |
1bin | Output C1.2 is set | ||
... | ... | ... | |
6 | stateC4.2 | 0bin | Output C4.1 is not set |
1bin | Output C4.1 is set | ||
7 | stateC4.2 | 0bin | Output C4.2 is not set |
1bin | Output C4.2 is set |
Output data
Data byte 1
Data byte 1 overwrites the position of the three-step switch in automatic mode.
Bit | Channel | Description | |
---|---|---|---|
1 and 0 | Channel 1 | Bits | Three-step switch |
00bin | Position 0 | ||
01bin | Position 1 | ||
10bin | Position 2 | ||
11bin | Position 0* | ||
3 and 2 | Channel 2 | See channel 1 | |
5 and 4 | Channel 3 | See channel 1 | |
7 and 6 | Channel 4 | See channel 1 |
*) since switch position 3 does not exist, the channel behaves as if no bit had been set when setting both bits, corresponding to switch position 0.
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 C1.1 green | 1bin | LED K1.1 lights up green |
1 | LED C1.2 green | 1bin | LED K1.2 lights up green |
... | ... | ... | |
6 | LED C4.1 green | 1bin | LED K4.1 lights up green |
7 | LED C4.2 green | 1bin | LED K4.2 lights up green |
Data byte 4
Data byte 4 sets the LEDs of the channels to yellow.
Bit | Name | Description | |
---|---|---|---|
0 | LED C1.1 yellow | 1bin | LED K1.1 lights up yellow |
1 | LED C1.2 yellow | 1bin | LED K1.2 lights up yellow |
... | ... | ... | |
6 | LED C4.1 yellow | 1bin | LED K4.1 lights up yellow |
7 | LED C4.2 yellow | 1bin | LED K4.2 lights up yellow |