Access from the user program
KL4494
32
Version: 2.0.0
5.4
Register description
All registers can be read or written via
.
R0: Raw value A/D-C
Raw value of the A/D converter (X
R
)
R6: Diagnostic register
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 KL4494 is currently not used.
R8: Terminal description
The terminal description is contained in register R8: 0x118E (4494
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
0x15x
Double word array with variable logical channel length
0x16
Structure: 1 byte, n double words with variable logical channel length
Содержание KL4494
Страница 2: ......