Process image

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

Byte offset (without word alignment)

Format

Input data

Output data

0

Byte

Status byte (SB1)

Control byte (CB1)

1

Byte

CNODE

CNODE

2

Byte

ORG

ORG

3

Byte

DB0

DB0

4

Byte

DB1

DB1

5

Byte

DB2

DB2

6

Byte

DB3

DB3

7

Byte

ID0

ID0

8

Byte

ID1

ID1

9

Byte

ID2

ID2

10

Byte

ID3

ID3

11

Byte

STATUS

STATUS

CNODE

Bit

CNODE.7

CNODE.6

CNODE.5

CNODE.4

CNODE.3

CNODE.2

CNODE.1

CNODE.0

Name

Message Type

reserved

reserved

reserved

Module addr. 3

Module addr. 2

Module addr. 1

Module addr. 0

Message Type:

Module address 1-8, node number of the KL6583

Error Codes

If the error bit CB.6 is set in the status byte, the CNODE contains the corresponding error code.

Error Code

Name

Cause

Remedy

16#10

KL6581_WatchdogError:=

The KL6851 does not answer anymore.

Check the mapping and communication.

16#11

KL6581_NoComWithKL6581:=

The KL6851 does not answer.

16#12

KL6581_idx_number_not_OK:=

nIdx is not correct.

nIdx may have a value from 0 to 64.

16#13

KL6581_Switch_to_Stopp:=

bInit it FALSE

Set bInit back to TRUE.

16#14

KL6581_not_ready:=

The terminal is not in data exchange.

Check the mapping and communication.

16#15

KL6581_No_KL6853_Found:=

There is no KL6583 connected.

Check the wiring to the KL6583.

16#16

KL6581_TransmissionError:=

The KL6851 does not answer anymore.

Check the mapping and communication.