KL6581 - Control and Status Byte

Process data mode

Control byte in process data mode

The control byte (CB) is located in the output image, and is transmitted from the controller to the terminal. In process data mode it has no function.

Bit

CB.7

CB.6

CB.5

CB.4

CB.3

CB.2

CB.1

CB.0

Name

RegAccess

Error

-

Addr Conflict

-

Buffer Full

RxC

TxC

Key

Bit

Name

Description

CB.7

RegAccess

0bin

Register communication off (process data mode)

CB.6

Error

0bin

Acknowledges the error code displayed in the CNODE.

CB.5

-

1bin

reserved

CB.4

Addr Conflict

1bin

Address of a KL6583 doubly assigned

CB.3

-

1bin

reserved

CB.2

Buffer Full

1bin

The internal data buffer has overflowed

CB.1

RxC

1bin

Toggle for the reception of data; if RxS <> RxC, then new data is present; toggling the bit signals to the terminal that the data have been fetched.

CB.0

TxC

1bin

Toggle for sending data; if TxC <> TxS, then data are transmitted from the KL6851 to the KL6853.

Status byte in process data mode

The status byte (SB) is located in the input image, and is transmitted from the terminal to the controller.

Bit

SB.7

SB.6

SB.5

SB.4

SB.3

SB.2

SB.1

SB.0

Name

RegAccess

Error

Config Missmatch

Addr Conflict

Communication Error

Buffer Full

RxS

TxS

Key

Bit

Name

Description

SB.7

RegAccess

0bin

Acknowledgment for process data mode

SB.6

Error

0bin

No error

1bin

An error has occurred. The error code is in the CNODE.

SB.5

Config Missmatch

1bin

Configuration error: Check the number of configured and connected KL6583 devices and their addresses. (see info below this table)

SB.4

AddrConflict

1bin

Address of a KL6583 doubly assigned

SB.3

Communication Error

0bin

Communication OK

1bin

The KL6581 has not found a KL6583 that is ready for operation. Check the cabling and the addresses.

SB.2

Buffer Full

1bin

The internal data buffer has overflowed,

SB.1

RxS

1bin

Toggle for the reception of data; if RxS <> RxC, then new data is present; toggling the bit signals to the terminal that the data have been fetched.

SB.0

TxS

1bin

Toggle for sending data; if TxC <> TxS, then data are transmitted from the KL6851 to the KL6853.

KL6581 - Control and Status Byte 1:

Enable display of ConfigMissmatch

The status bit SB.5 shows configuration errors once you have enabled the display by resetting bit R34.15 in the feature register.

Register communication

Control byte for register communication

The control byte (CB) is located in the output image, and is transmitted from the controller to the terminal.

Bit

CB.7

CB.6

CB.5

CB.4

CB.3

CB.2

CB.1

CB.0

Name

RegAccess

R/W

Reg. no.

Key

Bit

Name

Description

CB.7

RegAccess

1bin

Register communication switched on

CB.6

R/W

0bin

Read access

1bin

Write access

CB.5 to CB.0

Reg. no.

Register number:
Enter the number of the register that you
- want to read with input data word DataIN1 or
- want to write with output data word DataOUT1.

Status byte for register communication

The status byte (SB) is located in the input image, and is transmitted from the terminal to the controller.

Bit

SB.7

SB.6

SB.5

SB.4

SB.3

SB.2

SB.1

SB.0

Name

RegAccess

R/W

Reg. no.

Key

Bit

Name

Description

SB.7

RegAccess

1bin

Acknowledgment for register access

SB.6

R

0bin

Read access

SB.5 to SB.0

Reg. no.

Number of the register that was read or written.