Access from the user program
KL3222
33
Version: 2.3.0
5.2
Control and status bytes
Channel 1
The values are explained below using channel 1 as an example.
Channel 2
The control and status bytes of channel 2 (CB2 and SB2) are structured like the control and status byte of
.
5.2.1
Process data mode
Control byte 1 (for process data mode)
Control byte 1 (CB1) is located in the
, and is transmitted from the controller to the
terminal.
Bit
CB1.7
CB1.6
CB1.5
CB1.4
CB1.3
CB1.2
CB1.1
CB1.0
Name
RegAccess
-
Calli
Gain
Offset
Clock
up
down
Key
Bit
Name
Description
CB1.7
RegAccess
0
bin
Register communication off (process data mode)
CB1.6
-
0
bin
reserved
CB1.5
Calli
1
bin
Terminal
compensation
function is
enabled
A gain and offset calibration of the terminal can be carried
out with the control byte in process data mode. The code
word must be entered in register R31 so that the calibration
can be carried out.
The parameter will only be saved permanently once the
code word is reset!
CB1.4
Gain
1
bin
Gain calibration
CB1.3
Offset
1
bin
Offset calibration
CB1.2
Clock
0
bin
slow clock
1
bin
fast clock
CB1.1
up
1
bin
up
CB1.0
down
1
bin
down
Status byte 1 (for process data mode)
The status byte 1 (SB1) is located in the
and is transmitted from terminal to the controller.
Bit
SB1.7
SB1.6
SB1.5
SB1.4
SB1.3
SB1.2
SB1.1
SB1.0
Name
RegAccess
Error
-
-
-
-
Overrange Underrange
Key
Bit
Name
Description
SB1.7
RegAccess
0
bin
Acknowledgment for process data mode
SB1.6
Error
1
bin
General error bit
SB1.5 ..
. SB1.2
-
0
bin
reserved
SB1.1
Overrange
1
bin
Process data too large
SB1.0
Underrange 1
bin
Process data too small
Summary of Contents for KL3222
Page 2: ......