Register description

 

All registers can be read or written via register communication. They are used for parameterizing the terminals.

The behavior in conjunction with a K-bus watchdog (R33 ... R35) and the behavior of the inputs DI1 and DI2 (R36 ... R47) can be modified via library blocks.

R6: diagnostic register

Bit

Description

default

R6.5-15

-

reserved

-

R6.4

1bin

Buffer is full

0bin

R6.3

1bin

An overrun error has occurred

0bin

R6.2

1bin

A framing error has occurred

0bin

R6.1

1bin

A parity error has occurred

0bin

R6.0

1bin

The receive buffer has overflowed, incoming data is lost

0bin

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 delivery state for the following registers:

R33, 34 and 35: No SMI command with K-bus watchdog
R36, 37 and 38: All SMI drives travel UP on rising edge at DI1
R39, 40 and 41: All SMI drives stop on falling edge at DI1
R42, 43 and 44: All SMI drives travel DOWN on rising edge at DI2
R45, 46 and 47: All SMI drives stop on falling edge at DI2

R8: terminal type

The terminal name is contained in register R8:
KL6831: 0x1AAF (6831dec)
KL6841: 0x1AB9 (6841dec)

R9: firmware version

Register R9 contains the ASCII coding of the terminal's firmware version, e.g. 0x3143 = '1C'. The '0x31' corresponds here to the ASCII character '1', while the '0x43' represents the ASCII character 'C'.
This value cannot be changed.

R16: hardware version number

Register R16 contains the hardware version of the terminal.

R31-R47: user registers

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 written into the RAM registers and in the EEPROM 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 R32 is not occupied.

R33, R34 and R35: watchdog

The R33, 34 and 35 determine the behavior of the terminal in the event of a K-bus watchdog.

The factory setting is: No SMI command if the K-bus watchdog is triggered.

The behavior can be changed via the library blocks.

R36 to R47: Behavior of DI1 and DI2

The behavior of the digital inputs DI1 and DI2 can be modified via the library function blocks.

Digital input

SMI command

Rising edge at DI1

All SMI drives travel UP on rising edge at DI1 (factory setting)

Falling edge at DI1

All SMI drives stop on falling edge at DI1 (factory setting)

Rising edge at DI2

All SMI drives travel DOWN on rising edge at DI2 (factory setting)

Falling edge at DI2

All SMI drives stop on falling edge at DI2 (factory setting)