Register description

The following registers are used to parameterize the KL3404, KL3408, KL3464 and KL3468. Each signal channel of the analog terminal has one register that can be read or written to with the aid of control, status and data bytes via register communication.

R0: Raw value A/D-C

Raw value of the A/D converter (XR)

R6: Diagnostic register

The status byte is mapped to the low-order byte (bit 7 to bit 0) of register R6.
The high-order byte (bit 15 to bit 8) of register R6 is reserved.

R7: Command register

The command register of KL3404 and KL3464 is currently not used.

R8: Terminal description

Register R8 contains the terminal identifier. e.g.:

R9: Firmware version

Register R9 contains the ASCII coding of the terminal's firmware version, e.g. 0x3141 (1A)ASCII. '0x31' corresponds to the ASCII character '1' and '0x41' to the ASCII character 'A'. This value cannot be changed.

R10: Data length (multiplex shift register)

R10 contains the number of multiplexed shift registers and their length in bits.

R11: Signal channels

Unlike R10, this contains the number of channels that are logically present. Thus for example a shift register that is physically present can perfectly well consist of several signal channels.

R12: Minimum data length

The particular byte contains the minimum data length for a channel that is to be transferred. If the MSB is set, the control and status byte is not necessarily required for the terminal function and is not transferred to the control, if the Bus Coupler is configured accordingly.

R13: Data structure (data type register)

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

R15: Alignment register

Via the alignment register bits, the Bus Coupler arranges the address range of an analog terminal such that it starts at a byte boundary.

R16: Hardware version number

Register R16 contains the hardware version of the terminal; this value cannot be changed.

R17: Hardware compensation - offset (Ba)

This register is used for the offset compensation of the terminal (see equation 1.1). Register value (16 bit signed integer) 0x0000 (0dec)

R18: Hardware compensation - gain (Aa)

This register is used for the gain compensation of the terminal (see equation 1.1). Register value (16 bit signed integer x 2-12):

R19: Manufacturer scaling - offset (Bh)

This register contains the offset for the manufacturer scaling (see equation 1.3). Register value (16 bit signed integer) 0x0000 (0dec)
Manufacturer scaling can be enabled via bit R32.1 of the feature register.

R20: Manufacturer scaling - gain (Ah)

This register contains the gain for manufacturer scaling (see equation 1.3). Register value (16 bit signed integer x 2-10): typically 0x2000 (8192dec)
Manufacturer scaling can be enabled via bit R32.1 of the feature register.

R21: Over-range limit - OvRL (Ya)

This limit value limits the maximum measuring range of the input terminal (see equation 1.0). If it is exceeded, the associated status bit is set, and the maximum value is displayed. Register value (16 bit signed integer)

R22: Under-range limit - UnRL (Ya)

If the value falls below this limit, the associated status bit is set, and the minimum value is displayed (see equation 1.0). Register value (16 bit signed integer)

R31: Code word register

The code word is reset with each restart of the terminal.

R32: Feature register

The feature register specifies the terminal's configuration. Default: 0x0906 (2310dec)

Bit

R32.15

R32.14

R32.13

R32.12

R32.11

R32.10

R32.9

R32.8

Name

-

-

-

-

enIIR

enLimit2

enLimit1

enOvRP

Bit

R32.7

R32.6

R32.5

R32.4

R32.3

R32.2

R32.1

R32.0

Name

-

-

-

enSiemens

enSignRepr

enWdTimer

enManScal

enUsrScal

Key

Bit

Name

Description

Default

R32.15

-

reserved

0bin

...

...

...

...

R32.12

-

reserved

0bin

R32.11

enIIR

0bin

digital IIR filter inactive

1bin

1bin

digital IIR filter active

R32.10

enLimit2

0bin

Limit value 2 is not active

0bin

1bin

Limit value 2 is active

R32.9

enLimit1

0bin

Limit value 1 is not active

0bin

1bin

Limit value 1 is active

R32.8

enOvRP

0bin

Over-range protection is not active

1bin

1bin

Over-range protection is active:
If the limit values of registers OvRL (R21) and UnRL (R22) are exceeded, the associated status bits are set and the measuring range is restricted accordingly.

R32.7

-

reserved

0bin

R32.6

-

reserved

0bin

R32.5

-

reserved

0bin

R32.4

enSiemens

0bin

Standard output format

0

1bin

Siemens output format
The three bits with the lowest value are used for displaying status information (see below).

R32.3

enSignRepr

0bin

 Two's complement representation is active

0bin

1bin

 Signed amount representation is active (-1dec = 0x8001)

R32.2

enWdTimer

0bin

Watchdog timer is not active

1bin

1bin

Watchdog timer is active (the watchdog is triggered if no process data are received for 100 ms)

R32.1

enManScal

0bin

Manufacturer scaling is active

1bin

1bin

Manufacturer scaling is not active

R32.0

enUsrScal

0bin

User scaling is not active

0bin

1bin

User scaling is active

Siemens output format

If the Siemens output format is selected, the lowest three bits are used for status evaluation. The process data is represented in bits 15 to 3, with bit 15 representing the sign bit. Scaling of the measured value according to the Siemens standard has to be done via user scaling (R33, R34).

KL3404/KS3404, KL3408/KS3408

Measured value

Bit 15 ... 3

Bit 2: X

Bit 1: Error

Bit 0: Overflow

Measured value < -10 V

 

0

0

1

-10 V < Measured value < 10 V

Process data

0

0

0

Measured value >+10 V

 

0

0

1

KL3464/KS3464, KL3468/KS3468

Measured value

Bit 15 ... 3

Bit 2: X

Bit 1: Error

Bit 0: Overflow

Measured value < 10 V

Process data

0

0

0

Measured value > 10 V

 

0

0

1

R33: User scaling - offset (Bw) *

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

*) Not supported by KL3404, KL3408, KL3464 and KL3468.

R34: User scaling - gain (Aw)

This register contains the user scaling gain; 0x0400 (1024dec) corresponds to 1.
User scaling can be enabled in the feature register via bit R32.0.

R35: Threshold 1 in Y2

If the process data are outside this threshold, the appropriate bits are set in the status byte.

R36: Threshold 2 in Y2

If the process data are outside this threshold, the appropriate bits are set in the status byte.

R37: Cut-off frequency of the digital IIR filter

This register determines the cut-off frequency of the digital IIR filter (first order). The IIR filter can be disabled in the feature register with bit R32.11.

Value

Limit frequency

KL3404, KL3464

KL3408, KL3468

0x0100 (default)

approx. 200 Hz

approx. 100 Hz

0x0200

approx. 100 Hz

approx. 50 Hz

0x0300

approx. 50 Hz

approx. 25 Hz

0x0400

approx. 20 Hz

approx. 10 Hz

other

No filter active