beautypg.com

Control and status byte – BECKHOFF KL3041 User Manual

Page 17

background image

Register Description

KL304x and KL305x

15


Control and Status byte

Control byte for process
data exchange Gain and
offset compensation

The control byte is transmitted from the controller to the terminal. It can be
used
- in register mode (REG = 1

bin

) or

- during process data exchange (REG = 0

bin

).

The control byte can be used to carry out gain and offset compensation for
the terminal (process data exchange). This requires the code word to be
entered in R31. The gain and offset of the terminal can then be
compensated.
The parameter will only be saved permanently once the code word is reset!

Control byte:
Bit 7 = 0

bin

Bit 6 = 1

bin

: Terminal compensation function is activated

Bit 4 = 1

bin

: Gain compensation

Bit 3 = 1

bin

: Offset compensation

Bit 2 = 0

bin

: Slower cycle = 1000 ms,

1

bin

:

Fast cycle = 50 ms

Bit 1 = 1

bin

: up

Bit 0 = 1

bin

: down

Status byte for process
data exchange

The status byte is transmitted from the terminal to the controller. The status
byte contains various status bits for the analog input channel:

Status byte:
Bit 7 = 0

bin

Bit 6 = 1

bin

: ERROR - general error bit

Bit5 | Bit4

0

bin

| 0

bin

: Limit value 2 not activated

0

bin

| 1

bin

: Process data less than limit value 2

1

bin

| 0

bin

: Process data greater than limit value 2

1

bin

| 1

bin

: Process data equal limit value 2

Bit3 | Bit2

0

bin

| 0

bin

: Limit value 1 not activated

0

bin

| 1

bin

: Process data less than limit value 1

1

bin

| 0

bin

: Process data greater than limit value 1

1

bin

| 1

bin

: Process data equal limit value 1


Bit 1 = 1

bin

: Over range

Bit 0 = 1

bin

: Under range

This manual is related to the following products: