Access from the user program
KL304x, KL305x
39
Version: 4.0
5.5
Control and status byte
The control and status byte is transmitted from the controller to the terminal. It can be used
• in
(REG = 1
bin
) or
• in
(REG = 0
bin
).
5.5.1
Process data exchange
Control byte in process data exchange (REG=0)
A gain and offset calibration of the terminal can be carried out with the control byte. The
so that the terminal calibration can be carried out. The gain and offset of the terminal
can then be calibrated. The parameter will only be saved permanently once the code word is reset!
Bit
Description
Bit 7
0
bin
Bit 6
1
bin
: Terminal compensation function is enabled
Bit 5
reserved
Bit 4
1
bin
: Gain calibration
Bit 3
1
bin
: Offset calibration
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 in process data exchange (REG=0)
The status byte is transferred from the terminal to the controller. The status byte contains various status bits
for the analog input channel:
Bit
Description
Bit 7
0
bin
Bit 6
1
bin
: Error (general error bit)
Bit 5
Bit 4
0
bin
0
bin
Limit value 2 not enabled
0
bin
1
bin
Process data < limit value 2
1
bin
0
bin
Process data > limit value 2
1
bin
1
bin
Process data = limit value 2
Bit 3
Bit 2
0
bin
0
bin
Limit value 1 not enabled
0
bin
1
bin
Process data < limit value 1
1
bin
0
bin
Process data > limit value 1
1
bin
1
bin
Process data = limit value 1
Bit 1
1
bin
: Overrange
Bit 0
1
bin
: Underrange
Summary of Contents for KL304 Series
Page 2: ......