Register description

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

General description of registers

Complex terminals that possess a processor are able to exchange data bi-directionally with the higher-level controller. These terminals are referred to below as intelligent Bus Terminals. These include the analog inputs (0 to 10 V, -10 to 10 V, 0 to 20 mA, 4 to 20 mA), the analog outputs (0 to 10 V, -10 to 10 V, 0 to 20 mA, 4 to 20 mA), serial interface terminals (RS485, RS232, TTY, data exchange terminals), counter terminals, encoder interfaces, SSI interfaces, PWM terminals and all other parameterizable modules.

The main features of the internal data structure are the same for all the intelligent terminals. This data area is organized as words, and includes 64 memory locations. The important data and parameters of the terminal can be read and set through this structure. It is also possible for functions to be called by means of corresponding parameters. Each logical channel in an intelligent terminal has such a structure (so a 4-channel analog terminal has 4 sets of registers).

This structure is divided into the following areas:

Range

Register number

Process variables

0 to 7

Type register

8 to 15

Manufacturer parameters

16 to 30

User parameters

31 to 47

Extended user area

48 to 63

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.

Bit no.

 

Meaning

Bit 0

1

The receive buffer has overflowed, incoming data is lost.

Bit 1

1

A parity error has occurred.

Bit 2

1

A framing error has occurred.

Bit 3

1

An overrun error has occurred.

Bit 4

1

Buffer is full

Bit 5 - 15

-

Not used, don't change

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.

Register description 1:

• R31: Code word register in RAM

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.

Bit no.

 

Baud rate

Bit 2, Bit 1, Bit 0

 

 

 

011

1200 baud

 

100

2400 baud

 

101

4800 baud

 

110

9600 baud

 

111

19200 baud

Bit 3 - 15

-

not used – do not change!

Furthermore, the baud rate can be set according to the following equation:

Baud rate = 4 MHz/(16*(HB+1))

It is necessary for 0xFF to be written into the low byte here, while the high byte (HB) provides the operator.

Bit no.

 

Baud rate

Bit 2, Bit 1, Bit 0

 

 

 

0 0 1

7 data bits, even parity

 

0 1 0

7 data bits, odd parity

 

0 1 1

8 data bits, no parity [0 1 1]

 

1 0 0

8 data bits, even parity

 

1 0 1

8 data bits, odd parity

Bit 3

0/1

0: 1 stop bit [0]
1: 2 stop bits

Bit 4 - 15

-

not used – do not change!

Feature bit no.

 

Description of the operation mode

Bit 0

1

/RTS, /CTS enable [1]

Bit 1

0/1

0: Standard output format (note R35!)
1: Alternative output format [1]

Bit 2

1

The status byte is copied from the terminal into the shift registers of the K-bus one cycle later than the higher data bytes. This reduces the rate of data transmission to the controller. [0]

Bit 3

1

The XON/XOFF protocol is supported by the terminal when data is sent, i.e. the terminal sends the data transferred by the controller until it receives the XOFF character (DC3==0x13) from the partner device. Once this has occurred, transmission is halted until the XON character (DC1==0x11) is received. [0]

Bit 4

1

The XON/XOFF protocol is supported by the terminal when data is received. The terminal sends the control character XOFF when the terminal buffer contains 118 characters. XON is sent if XOFF was sent previously and the value falls below the lower buffer limit of 18 bytes. [0]

Bit 5

-

not used – do not change!

Bit 6

1

Continuous sending of data from the FIFO. The send buffer is filled (up to 16 bytes) by the controller. The filled buffer content is transmitted with a rising edge in Control Byte 3. The terminal acknowledges the data transfer to the controller by setting the Status Byte 2 bit. Status Byte 2 is reset with Control Byte 3.

Bit 7-15

-

not used – do not change!

Register description 2:

Note on bit 6

This feature is available for all terminals with software version 3x or higher. The version information can be found on the right-hand side of the terminal in the serial number: xxxx3xxx
Example: 52983A2A = software version 3A