Register description

The registers can be read or written via the register communication. They are used for the parameterization of the terminal.

R0 to R7: Registers in the internal RAM of the terminal

The process variables can be used in addition to the actual process image. Their function is specific to the terminal.

R8 to R15: Registers in the internal ROM of the terminal

The type and system parameters are hard programmed by the manufacturer, and the user can read them but cannot change them.

Data type register

Meaning

0x00

Terminal with no valid data type

0x01

Byte array

0x02

Structure 1 byte n bytes

0x03

Word array

0x04

Structure 1 byte n words

0x05

Double word array

0x06

Structure 1 byte n double words

0x07

Structure 1 byte 1 double word

0x08

Structure 1 byte 1 double word

0x11

Byte array with variable logical channel length

0x12

Structure 1 byte n bytes with variable logical channel length (e.g. 60xx)

0x13

Word array with variable logical channel length

0x14

Structure 1 byte n words with variable logical channel length

0x15

Double word array with variable logical channel length

0x16

Structure 1 byte n double words with variable logical channel length

R16 to R30: Manufacturer parameter area (SEEROM)

The manufacturer parameters are specific for each type of terminal. They are programmed by the manufacturer, but can also be modified by the controller. The manufacturer parameters are stored in a serial EEPROM in the terminal, and are retained in the event of voltage drop-out.

These registers can only be altered after a code word has been set in R31.

R31 to R47: User parameter area (SEEROM)

The user parameters are specific for each type of terminal. They can be modified by the programmer. The user parameters are stored in a serial EEPROM in the terminal, and are retained in the event of voltage drop-out. The user area is write-protected by a code word.

R31: Code word register in RAM

Register description 1:

Functionality of the code word register

The code word 0x1235 must be entered here so that parameters in the user area can be modified. If any other value is entered into this register, the write-protection is active. When write protection is not active, the code word is returned when the register is read. If the write protection is active, the register contains a zero value.

Register description 2:

Value range of KL3112 and KL3122

For reasons of compatibility, 16 bits signed integer is selected as the (standard) output format. The positive value range for 0 mA / 4 mA to 20 mA therefore extends from 0 to 32767 (0x7FFF). This corresponds to 15 bits. Manufacturer scaling must be disabled in order to exploit all 16 bits of the terminal.

Feature bit no.

 

Description of the operation mode

Bit 0

1

User scaling (R33, R34) active [0]

Bit 1

1

Manufacturer scaling (R19, R20) active [1]

Bit 2

0

Watchdog timer active [0]
In the delivery state, the watchdog timer is switched on.

Bit 3

1

Sign / amount representation [0]
Signed amount representation is active instead of two's complement representation. (-1 = 0x8001).

Bit 4…7

-

Reserved, don't change

Bit 9

1

Limit value 1 active [0]
The process data are compared with limit value 1 (R35), and appropriate status bits are set.

Bit 10

1

Limit value 2 active [0]
The process data are compared with limit value 2 (R36), and appropriate status bits are set.

Bit 11…15

-

Reserved, don't change

Bit

15

14

13

12

11

10

9

8

7

6

5

4

3

2

1

0

Name

Filter constant Nf (Nf.11 to Nf.0)

Zero

Zero

Skip

Fast

Notes on the filter

The filter architecture of the KL31x2 is as follows:

Register description 3:
KL31x2 filter architecture

Bit

Name

Description

Default

R37.15

Filter constant Nf
(Nf.11 - Nf.0)

The filter constant Nf specifies the 3dB limit frequency of the sinc3 filter. The value ranges from 150 to 2047.
The 3 dB limit frequency FLimit and the 64.5 dB stop frequency FStop are calculated as follows: (see following table)

35Chex

(860dec)

...

R37.4

 

Skip = 0

Flimit = 11981 / Nf

 

 

Fstop = 43008 / Nf

 

Skip = 1

Flimit = 81076 / Nf

Bit

Name

Description

Default

R37.3

Zero

0bin

See note below

0bin

R37.2

Zero

0bin

0bin

Register description 5:

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

Skip

0bin

FIR filter is enabled.

0bin

1bin

FIR filter is bypassed.

R37.0

Fast

0bin

Fast Step Mode and FIR filter are disabled.

0bin

1bin

Fast Step Mode and FIR filter are active

Examples

Attention, the upper 3 digits of the value in R37 in hex are the filter constant, the 4th digit is the skip/fast step setting.

Value in R37

Fstop

Cycle time

0x35C0

50 Hz

140 ms

0x2660

70 Hz

100 ms

0x1330

140 Hz

50 ms

0x7FF1 (Fast-Step activated)

 

40 ms

0x3FF1 (Fast-Step activated)

 

20 ms

0x1001 (Fast-Step activated)

 

<4 ms

Value in R37

Flimit

Cycle time

0x7FF2 (Skip mode, only sinc³ active)

39.6 Hz

40 ms

0x3FF2 (Skip mode, only sinc³ active)

77.36 Hz

20 ms

0x1002 (Skip mode, only sinc³ active)

158 Hz

<4 ms