Access from the user programm
KM3701, KM3702 and KM3712
32
Version: 2.0.0
6.5
Register description
The registers are used for the parameterization of the Bus Terminals and are available for each channel.
They can be read or written by means of register communication.
R0: Raw ADC value
Register R0 contains the raw value of the analog/digital converter. This is the unchanged analog value prior
to any scaling.
R6: Diagnostic register
is placed into register R6.
R7: Command register
Note
User code word
For the following commands to be executed, it is first necessary for the user code word,
0x1235, to be entered into
Command 0x7000: Restore Factory Settings
Entering 0x7000 in register R7 restores the factory settings for the following registers of both channels:
KM3701, KM3712:
R21: 0x03E8 (1000
dec
)
R22: 0xFC18 (-1000
dec
)
R32: 0x0202 (514
dec
)
R33: 0x0000 (0
dec
)
R34: 0x0100 (256
dec
)
R35: 0x0000 (0
dec
)
R36: 0x0000 (0
dec
)
KM3702:
R21: 0x1D4C (7500
dec
)
R22: 0xFF9C (-100
dec
)
R32: 0x0202 (514
dec
)
R33: 0x0000 (0
dec
)
R34: 0x0100 (256
dec
)
R35: 0x0000 (0
dec
)
R36: 0x0000 (0
dec
)
Note
Delivery state for all channels
The command Restore Factory Settings simultaneously resets all module channels to the
delivery state, irrespective of which register set it is called from!
R8: Module ID
Register R8 contains the ID for the terminal module.
KM3701: 0x0C64 (3701
dec
)
KM3702: 0x0C6E (3702
dec
)
KM3712: 0xC3C (3712
dec
)
R9: Firmware version
Register R9 contains the ASCII coding of the terminal's firmware version, e.g.
0x3141 = '1A'.
The
'0x31'
corresponds here to the ASCII character
'1'
, while the
'0x41'
represents the ASCII character
'A'
.
This value cannot be changed.
R12: Minimum data length of a channel
Bits 0 to 6 of the high-order byte specify the minimum number of output data in bits: 000.0000
bin
= 0
dec
, hence
0 bytes.
Bits 0 to 6 of the low-order byte specify the minimum number of input data in bits: 001.1000
bin
= 24
dec
, hence
3 bytes.
The fact that bit 7 is set indicates that the control and status byte are not mandatory for the terminal function
and are not transferred in compact mode.