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.
R1: Calibration value - offset
After a calibration, the offset value that was determined is entered in register R1 and used for the correction calculation.
R2: Calibration value - gain
After a calibration, the gain value that was determined is entered in register R2 and used for the correction calculation.
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:
KL3162, KL3172, KL3142, KL3152: R32: 0x0180 (384dec) | KL3132, KL3182: R32: 0x0182 (386dec) |
![]() | Restore Factory Settings The Restore Factory Settings command simultaneously resets both terminal channels to the delivery state, irrespective from which register it is called. |
R8: Terminal description
The description of the terminal is contained in register R8.
KL3172: 0x0C64 (3172dec)
KL3182: 0x0C6E (3182dec)
KL3132: 0xC3C (3132dec)
KL3162: 0xC5A (3162dec)
KL3142: 0xC46 (3142dec)
KL3152: 0xC50 (3152dec)
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 can not 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, so 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). Examples:
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). Examples:
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.
R23: Reference calibration value: Offset
This register contains the reference value of the calibration, which is determined during the vendor calibration.
R24: Reference calibration value: Gain
This register contains the reference value of the calibration, which is determined during the vendor calibration.
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 specifies the terminal's configuration.
Bit | R32.15 | R32.14 | R32.13 | R32.12 | R32.11 | R32.10 | R32.9 | R32.8 |
Name | Callibration | Display StabilityError | - | - | disChannel | enTh2 | enTh1 | enOverProt |
Bit | R32.7 | R32.6 | R32.5 | R32.4 | R32.3 | R32.2 | R32.1 | R32.0 |
Name | enStable | disDiff | disCali | enSiemensFormat | enAverageFormat | disWd | enManScal | enUsrScal |
Key
Bit | Name | Description | default | |
---|---|---|---|---|
R32.15* | CallibrationDisplay | 0bin | During the calibration, the terminal sets the overload bit SB1.1 and the underload bit SB1.0. | 0bin |
1bin | Compatibility mode: During calibration, the terminal sets the error bit SB1.6. | |||
R32.14* | Display StabilityError | 0bin | Stability error is not displayed. | 0bin |
1bin | If no stabilization of the calibration values is achieved, the terminal indicates this by setting the error bit SB1.6. (see note below) |
![]() | Fluctuating measuring signals Strongly fluctuating measuring signals can make stabilization of the calibration values impossible. In this case, skip the stabilization and disable it with bit R32.7. |
Bit | Name | Description | default | ||
---|---|---|---|---|---|
R32.13 | - | reserved | 0bin | ||
R32.12 | - | reserved | 0bin | ||
R32.11 | disChannel | 0bin | Channel switched on | 0bin | |
1bin | Channel switched off | ||||
R32.10 | enTh2 | 0bin | Limit value 2 is not active | 0bin | |
1bin | Limit value 2 is active | ||||
R32.9 | enTh1 | 0bin | Limit value 1 is not active | 0bin | |
1bin | Limit value 1 is active | ||||
R32.8 | enOverProt | 0bin | Measuring range limitation not active | 1bin | |
1bin | Measuring range limitation active | ||||
R32.7 | enStable | 0bin | Stabilization of the calibration value not active | 1bin | |
1bin | Stabilization of the calibration value active | ||||
R32.6 | disDiffMeasure | 0bin | Differential measurement active | 0bin | |
1bin | Differential measurement not active (only KL3132, KL3162, KL3172, KL3182) | ||||
R32.5 | disCali | 0bin | Cyclic calibration of the A/D converter active | 0bin | |
1bin | Cyclic calibration of the A/D converter not active | ||||
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 | KL3162, KL3172, KL3142, KL3152: | 0bin |
1bin | Manufacturer scaling is active | KL3132, KL3182: | 1bin | ||
R32.0 | enUsrScal | 0bin | User scaling is not active | 0bin | |
1bin | User scaling is active |
*) Bit R32.14 and bit R32.15 are only available with the following firmware versions:
- KL3132, KL3152, KL3162, KL3172, KL3182: Firmware version 2B or higher
- KL3142: Firmware version 2C or higher
For lower firmware versions, bits R32.14 and R32.15 are not evaluated.
These terminals always set the error bit SB1.6 during the calibration and cannot indicate the stability error!
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: Limit value 1
Limit value 1 is entered in register R35. The limit value can be activated in the feature register through bit R32.9.
R36: Limit value 2
Limit value 2 is entered in register R36. The limit value can be activated in the feature register through bit R32.10.
R37: Filter constants of the A/D converter, and configuration bits for the filter
(default value: 35C0hex)
The terminal has two low-pass filter stages:
- The first stage consists of a sinc3 filter, and is always active.
- The second stage consists of a 22nd order FIR filter. This can be deactivated.
Bit | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
Name | Filter constants SF (SF.11 to SF.0) | Zero | Zero | SkipFIR | Fast |
Key
Bit | Name | Description | Default |
---|---|---|---|
R37.15 | Filter constant SF | The filter constant SF specifies the 3dB limit frequency of the sinc3 filter. The value ranges from 150 to 2047. | 35Chex (860dec) |
... | |||
R37.4 |
| Skip = 0 | FLimit = 11981 / SF |
|
| FStop = 43008 / SF |
| Skip = 1 | FLimit = 80486 / SF |
Bit | Name | Description | Default | |
---|---|---|---|---|
R37.3 | Zero | 0bin | See note below | 0bin |
R37.2 | Zero | 0bin | 0bin |
![]() | Do not change Bits R37.2 and R37.3 must always be ZERO, otherwise errors will occur in the A/D converter! |
Bit | Name | Description | Default | |
---|---|---|---|---|
R37.1 | SkipFIR | 0bin | FIR filter is active. | 0bin |
1bin | FIR filter is bypassed. | |||
R37.0 | Fast | 0bin | Fast Step Mode is not active. | 0bin |
1bin | Fast Step Mode is active: a fast reaction will follow jumps at the input, in spite of the filter stage being active. In this case the filter is bypassed! |
Examples
Value in R37 | FStop | Cycle time |
---|---|---|
0x35C0 | 50 Hz | 140 ms |
0x2660 | 70 Hz | 100 ms |
0x1330 | 140 Hz | 50 ms |
0x7FF1 |
| 40 ms |
0x3FF1 |
| 20 ms |
0x1001 |
| <4 ms |
Value in R37 | FLimit | Cycle time |
0x7FF2 | 39.6 Hz | 40 ms |
0x3FF2 | 77.36 Hz | 20 ms |
0x1002 | 158 Hz | <4 ms |
R40: Calibration interval
This register contains the calibration interval for the terminal's automatic calibration. The unit is 100 ms. The automatic calibration can be activated through bit R32.5 in the feature register.
R44: Forced calibration interval
This register contains the interval for the terminal's forced calibration. This interval is always a multiple (the default is 3dec) of the calibration interval. (R40). The interval for forced calibration when the terminal leaves the factory is therefore 3 x 180 s = 540 s. The forced calibration can be activated through bit R32.5 in the feature register.
R47: Number of stable measured values
This register contains the number of stable measured values recorded during the calibration.
R48: Tolerance for measured value stability
This register contains the specified stable measured value tolerance.