Access from the User Program
KL3444, KL3448, KL3454 und KL3458
50
Version: 3.2.0
7.5
Register description
The following registers are used to parameterize the KL3444, KL3448, KL3454 and KL3458. Each signal
channel of the analog terminal has one register that can be read or written to with the aid of control, status
and
via register communication.
•
R0: Raw value A/D-C
Raw value of the A/D converter (X
R
)
•
R6: Diagnostic register
The status byte is mapped to the low-order byte (bit 7 to bit 0) of register R6.
The high-order byte (bit 15 to bit 8) of register R6 is reserved.
•
R7: Command register
The command register of KL3444 and KL3454 is currently not used.
•
R8: Terminal description
Register R8 contains the terminal identifier. e.g.:
◦ KL3444: 0x0D74 (3444
dec)
) or
◦ KL3454: 0x0D7E (3454
dec)
)
•
R9: Firmware version
Register R9 contains the ASCII coding of the terminal's firmware version, e.g.
0x3141 (1A)
ASCII
.
'0x31'
corresponds to the ASCII character
'1'
and
'0x41'
to the ASCII character
'A'
. This value cannot be
changed.
•
R10: Data length (multiplex shift register)
R10 contains the number of multiplexed shift registers and their length in bits.
•
R11: Signal channels
Unlike R10, this contains the number of channels that are logically present. Thus for example a shift
register that is physically present can perfectly well consist of several signal channels.
•
R12: Minimum data length
The particular byte contains the minimum data length for a channel that is to be transferred. If the MSB
is set, the control and status byte is not necessarily required for the terminal function and is not
transferred to the control, if the Bus Coupler is configured accordingly.
•
R13: Data structure (data type register)
Data type register
Meaning
0x00
Terminal with no valid data type
0x01
Byte array
0x02
Structure: 1 byte, n bytes
0x03
Word array
0x04
Structure: 1 byte, n words
0x05
Double word array
0x06
Structure: 1 byte, n double words
0x07
Structure: 1 byte, 1 double word
0x08
Structure: 1 byte, 1 double word
0x11
Byte array with variable logical channel length
0x12
Structure: 1 byte, n bytes with variable logical channel length (e.g. 60xx)
0x13
Word array with variable logical channel length
0x14
Structure: 1 byte, n words with variable logical channel length
0x15
Double word array with variable logical channel length
0x16
Structure: 1 byte, n double words with variable logical channel length
•
R15: Alignment register
Via the alignment register bits, the Bus Coupler arranges the address range of an analog terminal such
that it starts at a byte boundary.
•
R16: Hardware version number
Register R16 contains the hardware version of the terminal; this value cannot be changed.
Содержание KL3444
Страница 2: ......