Access from the user program
KL4494
29
Version: 2.0.0
5
Access from the user program
5.1
Process image
In the process image, the KL4494 is represented with 6 bytes of input data and 6 bytes of output data. These
are organized as follows:
Byte offset (without
word alignment)
Byte offset (with word
alignment*)
Format
Input data
Output data
0
0
Byte
)
Control-Byte (
1
2
Word
DataIN1
DataOUT1
3
4
Byte
)
Control byte (
4
6
Word
DataIN2
DataOUT2
*) Word alignment: The Bus Coupler places values on even byte addresses
5.2
Control and status bytes
Channel 1:
The control and status bytes for channel 1 are illustrated in the following.
Channel 2:
The control and status bytes of channel 2 have the same structure as the control and status
bytes of channel 1.
Process data mode
Control byte 1 (CB1) in process data mode
Control byte 1 is located in the
, and is transmitted from the controller to the terminal. In
process data mode it has no function.
Bit
CB1.7
CB1.6
CB1.5
CB1.4
CB1.3
CB1.2
CB1.1
CB1.0
Name
RegAccess
-
-
-
-
-
-
-
Key
Bit
Name
Description
CB1.7
RegAccess
0
bin
Register communication off (process data mode)
CB1.6 - CB1.0
-
0
bin
reserved
Status byte 1 (SB1) in process data mode
The status byte 1 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
LimitValue 2 State
LimitValue 1 State
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.4
LimitValue 2
State
00
bin
Limit value 2 not activated
01
bin
Process data less than limit value 2
10
bin
Process data greater than limit value 2
11
bin
Process data equal limit value 2
SB1.3 - SB1.2
LimitValue 1
State
00
bin
Limit value 1 not activated
01
bin
Process data less than limit value 1
10
bin
Process data greater than limit value 1
11
bin
Process data equal limit value 1
SB1.1
Overrange
1
bin
Permissible measuring range exceeded
SB1.0
Underrange
1
bin
Lower measuring range limit violated
Содержание KL4494
Страница 2: ......