Register description

The registers are used for parameterizing the Bus Terminals and are once available for each channel. They can be read or written by means of register communication.

Basic configuration is also possible via the PLC using the function blocks FB_KL3208Config (TwinCAT2, TwinCAT3) and FB_KL3228Config (TwinCAT2, TwinCAT3).

R0: A/D converter, raw value

Register R0 contains the raw value of the analog/digital converter. This is the unchanged analog value prior to any scaling.

R1: A/D converter, raw value of the line

Register R1 contains the raw value of the line resistance between +R1 – RL1 or between +R2 – RL2.

R6: Diagnostic register

The status byte SBn of Channel n is shown in the low byte of register R6.

R7: Command register

The command register of KL3228 is currently not used.

R8: Terminal description

The terminal identifier is contained in register R8:

  • KL3208-0010: 0x0C88 (3208dec)
  • KL3228-0000: 0x0C9C (3228dec)

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 offset of the vendor calibration.

R18: Vendor calibration – gain

This register contains the gain of the vendor calibration.

R19: Manufacturer scaling - offset

This register contains the offset of the manufacturer scaling. It can be activated by R32.1 in the feature register.

R20: Manufacturer scaling - gain

This register contains the gain of the manufacturer scaling. It can be activated by R32.1 in the feature register.

R21: Offset register for two-wire connection

The value of register 1 at short circuit +R1-RL1 or +R2-RL2

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 operation mode.

Bit

R32.15

R32.14

R32.13

R32.12

R32.11

R32.10

R32.9

R32.8

Name

SensorType

disChannel

-

-

-

Bit

R32.7

R32.6

R32.5

R32.4

R32.3

R32.2

R32.1

R32.0

Name

-

-

Resolution

-

-

disWdTimer

enManScal

enUsrScal

Key

Bit

Name

Description

default

R32.15...R32.12

SensorType

0000bin

PT1000

0bin

0001bin

NI1000

0010bin

RSNI1000 (note: different characteristic curve, similar to NI1000, but with 1000 Ω at 0 °C and 1500 Ω at 100 °C)

R32.11

disChannel

0bin

Channel switched on

0bin

1bin

Channel switched off

R32.10… R32.6

-

reserved

0bin

R32.5

Resolution

R32.5=1: high resolution 1/100°C (default for KL3208-0010)

R32.5=0: standard resolution 1/10°C

0/1

R32.3/4

-

reserved

0bin

R32.2

DisWdTimer

Disable Watchdog Timer

0bin

R32.1

enManScal

0bin

Manufacturer scaling is not active

0bin

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. User scaling can be activated in the feature register via bit R32.0.

R34: User scaling – gain

This register contains the gain of the user scaling. User scaling can be activated in the feature register via bit R32.0.

R37: Filter constant of the A/D converter

Value in R37

First Notch

Conversion time

0x0000

25 Hz

250 ms

0x0050

100 Hz

65  ms

0x00A0

50 Hz

125 ms

0x0140

25 Hz

250 ms

0x0280

12.5 Hz

500 ms

R39: Further elements

Register R39 is supported by KL3208-0010 from firmware version 1C and hardware version 01 (Default: 0dec)

Setting R39 increases the conversion time to one second per channel

As soon as register R39 is not equal to 0 for one channel of the terminal, the conversion time for all channels is increased to about 1 second per channel, automatically and irrespective of the sensor type, in order to optimize the measuring accuracy. The conversion time for all channels can be commonly set via register R40 of channel 1. A reduction is not recommended due to loss of accuracy.

Value in R39

Element

Measuring range

R at 25°C

R at 0°C

0x0032

 50dec

NCT1K8

-40°C ... 130°C

1.8 kΩ

  4940 Ω

0x0033

 51dec

NCT1K8_TK

-30°C ... 150°C

1.8 kΩ

  5200 Ω

0x0034

 52dec

NCT2K2

-50°C ... 130°C

2.2 kΩ

  7373 Ω

0x0035

 53dec

NCT3K

-50°C ...   80°C

3.0 kΩ

  9822 Ω

0x0036

 54dec

NCT5K

-40°C ... 100°C

5.0 kΩ

16325 Ω

0x0037

 55dec

NTC10K

-30°C ... 150°C

10 kΩ

32650 Ω

0x0038

 56dec

NTC10KPRE

-30°C ... 150°C

10 kΩ

29490 Ω

0x0039

 57dec

NTC10K_3204

-40°C ... 110°C

10 kΩ

27080 Ω

0x003A

 58dec

NTC10KTYP2

-50°C ... 130°C

10 kΩ

32770 Ω

0x003B

 59dec

NTC10KTYP3

-50°C ... 130°C

10 kΩ

29588 Ω

0x003C

 60dec

NTC10KDALE

-50°C ... 130°C

10 kΩ

32660 Ω

0x003D

 61dec

NTC10K3A221

-40°C ... 130°C

10 kΩ

32639 Ω

0x003E

 62dec

NTC20K

-20°C ... 150°C

20 kΩ

70200 Ω

0x0064

100dec

Poti/resistor, resolution 0.1 Ω / digit

0 ... 6553.5 Ω

-

-

0x0065

101dec

Poti/resistor, resolution 1 Ω / digit

0 ... 65535 Ω

-

-

0x0066

102dec

Poti/resistor, resolution 10 Ω / digit

0 ... 655350 Ω

-

-

0x00C8

200dec

NTC100K

-40°C ... 130°C

100 kΩ

3266 kΩ

0x00FF

255dec

user-defined NTC

 

 

 

Avoid the mixed operation of low-resistance PT/NI sensors and high-resistance NTC sensors on one terminal

Due to large differences in the resistances of the sensor types, the mixed operation of low-resistance PT/NI sensors and high-resistance NTC sensors on one terminal should be avoided, since larger measuring errors can then occur for the PT/NI sensors.

R40: Conversion time for all channels

You can specify the conversion time for all channels of the terminal with register R40 of the first channel (default: 10dec, approx. equal to 120 ms per channel).

R41: B-parameter for user-defined NTC

This register contains the B-parameter of a user-defined NTC (default: 3960dec = 0x0F78).
The user-defined NTC can be activated by setting register R39 to 255dec.

R42: Resistance at 25 °C for user-defined NTC

The resistance is specified in 10 Ω / digit. 1000dec is thus equal to 10 kΩ
(Default: 1000dec = 0x03E8).

R43: Reference temperature for user-defined NTC

(Default: 25 °C = 0x0019)

R44: Lower range limit for user-defined NTC

(Default: -40 °C = 0xFFD8)

R45: Upper range limit for user-defined NTC

(Default: 130 °C = 0x0082)