Access from the user program
KL5121
30
Version: 3.1.0
5.4
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 register sets).
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.
•
R0 to R5: reserved
•
R0 to R3
Pulse for speed correction of channels 1-4
•
R4 to R7: no function
•
R6: Diagnostic register
The diagnostic register can contain additional diagnostic information. Parity errors, for instance, that
occur in serial interface terminals during data transmission are indicated here.
•
R7: Command register
High-Byte_Write = function parameter
Low-Byte_Write = function number
High-Byte_Read = function result
Low-Byte_Read = function number
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.
•
R8: Terminal type
The terminal type in register R8 is needed to identify the terminal.
•
R9: Software version (X.y)
The software version can be read as a string of ASCII characters.
•
R10: Data length
R10 contains the number of multiplexed shift registers and their length in bits.
The Bus Coupler sees this structure.
Содержание KL5121
Страница 2: ......
Страница 4: ...Table of content KL5121 4 Version 3 1 0...