4 register description – BECKHOFF KL3681 User Manual
Page 33
![background image](/files/774787/content/doc033.png)
Access from the user programm
5.4
Register description
The following registers are used for parameterization of the KL3681. They can be read or written via the
register communication [
28].
R0: Raw value A/DC
Raw value of the A/D converter (X
R
)
R1: Current measuring range / mode
R2: Internal calibration value
R3: Sampling duration
In milliseconds
R4: Register page selection register
This register defines which register page is displayed in registers R32 to R63 [
The terminal supports two register pages.
• Register page 0 is used to save the configuration data (see from register RP0.R32 [
35])
• Register page 1 is used for internal calibration data and manufacturer calibration and must not be
changed by the user!
R6: Diagnostic register
The status byte [
28] is mapped to the loworder byte (bit 7 to bit 0) of register R6.
The highorder byte (bit 15 to bit 8) of register R6 is reserved.
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 register R31 [
34].
Command 0x7000: Restore Factory Settings
An entry of 0X7000 in register R7 sets the following registers for the two channels to the following default
values:
dec
)
dec
)
RP0.R34: 0x0000 (0
dec
)
RP0.R35: 0x0000 (0
dec
)
36], RP0.R38 ... RP0.R62: 0x0000 (0
dec
)
36], RP0.R39 ... RP0.R63: 0x2000 (8192
dec
)
R8: Terminal description
The terminal identifier is contained in register R8: KL3681: 0x0E61 (3681
dec
).
KL3681, KS3681
33
Version 2.0.0