Control/status byte – BECKHOFF KL3064 User Manual
Page 14

Register description
14
KL3064
are set in the status byte.
R36: Limit 2 in Y_2
If the process data exceeds or falls below this limit, the corresponding bits
are set in the status byte.
Control/Status byte
CONTROL byte
in process data transfer
Gain and offset adjustment
The control byte is transferred from the controller to the terminal. It can be
used in the register mode (REG = 1) or in process data transfer (REG = 0).
The gain and offset of the terminal can be adjusted with the control byte
(process data transfer). The code word must be entered in R31 to enable
adjustment of the terminal. The terminal’s gain and offset can then be ad-
justed.
The parameters are not permanently stored until the code word is reset!
Control byte:
Bit7 = 0
Bit6 = 1 Terminal adjustment function is activated
Bit4 = 1 gain adjustment
Bit2 = 0 slow clock = 1000ms
1 fast clock = 50ms
Bit1 = 1 up
Bit0 = 1 down
Bit3 = 1 offset adjustment
Bit2 = 0 slow clock = 1000ms
1 fast clock = 50ms
Bit1 = 1 up
Bit0 = 1 down
Status byte
in process data transfer
The status byte is transferred from the terminal to the controller. The status
byte contains various status bits of the analog input terminal KL3064:
Status byte:
Bit 7 = 0
Bit6= 1: ERROR – General error bit
Bit5 | Bit4
0 | 0 Limit 2 not activated
0 | 1 Process data less than Limit 2
1 | 0 Process data more than Limit 2
1 | 1 Process data equal to Limit 2
Bit3 | Bit2
0 | 0 Limit 1 not activated
0 | 1 Process data less than Limit 1
1 | 0 Process data more than Limit 1
1 | 1 Process data equal to Limit 1
Bit1= 1: Over range
Bit0= 1: Under range