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
Status byte SB1 is placed into register R6.
R7: Command register
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! |
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 (1000dec) | KM3702: R21: 0x1D4C (7500dec) |
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 (3701dec)
KM3702: 0x0C6E (3702dec)
KM3712: 0xC3C (3712dec)
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.0000bin = 0dec, hence 0 bytes.
Bits 0 to 6 of the low-order byte specify the minimum number of input data in bits: 001.1000bin = 24dec, 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.
R16: Hardware version number
Register R16 contains the hardware version of the terminal.
R17: Vendor calibration - offset
This register contains the vendor calibration offset (16 bit signed integer).
R18: Vendor calibration - gain
This register contains the vendor calibration gain (16 bit unsigned integer x 2-16 + 1). Samples:
0x0000 means factor 1
0xFFFF means factor 2
R19: Manufacturer scaling - offset
This register contains the offset of the manufacturer scaling. Can be activated via R32.1 in the feature register (16 bit signed integer).
R20: Manufacturer scaling - gain
This register contains the gain of the manufacturer scaling. Can be activated via R32.1 in the feature register (16 bit unsigned integer x 2-8 + 1). Samples:
0x0100 means factor 1.
0x0080 means factor 0.5
R21: Upper measuring range limit
This register contains the upper measuring range limit. It can be activated by R32.8 in the feature register.
R22: Lower measuring range limit
This register contains the lower measuring range limit. It can be activated by R32.8 in the feature register.
R31: Code word register
- If you write values into the user registers without first entering the user code word (0x1235) into the code word register, the terminal will not accept the supplied data.
- If you write values into the user registers and have previously entered the user code word (0x1235) in the code word register, these values are stored in the RAM registers and in the SEEPROM registers and are therefore retained if the terminal is restarted.
The code word is reset if the terminal is restarted.
R32: Feature register
The feature register defines the module configuration.
Bit | R32.15 | R32.14 | R32.13 | R32.12 | R32.11 | R32.10 | R32.9 | R32.8 |
Name | - | - | - | - | enTh2 | enTh1 | enOverProt | - |
Bit | R32.7 | R32.6 | R32.5 | R32.4 | R32.3 | R32.2 | R32.1 | R32.0 |
Name | - | - | - | enSiemens | enAverage | disWdTimer | enManScal | enUsrScal |
Bit | Name | Description | default | |
---|---|---|---|---|
R32.15 | - | reserved | 0bin | |
... | ... | ... | ... | |
R32.12 | - | reserved | 0bin | |
R32.11 | enTh2 | 0bin | Threshold 2 not active | 0bin |
1bin | Threshold 2 active | |||
R32.10 | enTh1 | 0bin | Threshold 1 not active | 0bin |
1bin | Threshold 1 active | |||
R32.9 | enOverProt | 0bin | Measuring range limitation not active | 1bin |
1bin | Overrange protection active | |||
R32.8 | - | reserved | 0bin | |
... | ... | ... | ... | |
R32.5 | - | reserved | 0bin | |
R32.4 | enSiemensFormat | 0bin | Siemens output format not active | 0bin |
1bin | Siemens output format active | |||
R32.3 | enAverageFormat | 0bin | Signed amount representation not active | 0bin |
1bin | Signed amount representation active | |||
R32.2 | disWdTimer | 0bin | Watchdog timer is active (the watchdog is triggered if no process data are received for 100 ms) | 0bin |
1bin | Watchdog timer is not active | |||
R32.1 | enManScal | 0bin | Manufacturer scaling is not active | 1bin |
1bin | Manufacturer scaling is active | |||
R32.0 | enUsrScal | 0bin | User scaling is not active | 0bin |
1bin | User scaling is active |
R33: User scaling - offset
This register contains the offset of the user scaling. The user scaling can be activated in the feature register through bit R32.0 (16 bit signed integer).
R34: User scaling - gain
This register contains the gain of the user scaling. The user scaling can be activated in the feature register through bit R32.0 (16 bit unsigned integer x 2-8 + 1, 1dec corresponds to 0x0100).
R35: Threshold 1
Threshold 1 is entered in register R35. The threshold can be activated in the feature register through bit R32.10.
R36: Threshold 2
Threshold 2 is entered in register R36. The threshold can be activated in the feature register through bit R32.11.