Register description
All registers can be read or written via register communication. They are used for the parameterization of the terminal.
R8: Terminal description
Register R8 contains the designation of the KL2819 terminal: 0x0B03 (2819dez).
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 can not 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 revision level of the terminal; this value can not be changed.
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 stored in the RAM registers and in the SEEPROM registers and are therefore retained if the terminal is restarted.
The code word is reset with each restart of the terminal.
R32: Feature-Register
The feature register specifies the terminal's configuration. Default: 0x001F (31dez)
Bit | R32.15 | R32.14 | R32.13 | R32.12 | R32.11 | R32.10 | R32.9 | R32.8 |
Name | Reserved |
Bit | R32.7 | R32.6 | R32.5 | R32.4 | R32.3 | R32.2 | R32.1 | R32.0 |
Name | Reserved | WDEn | Reserved |
WDEn (Watchdog Enable) | |
---|---|
State | Effect |
0 | The last state of the outputs will be conserved in case of a bus error. |
1 | The defined states of register R34 will be switched to the outputs in case of a bus error. |
R33: Active Channel Diagnostic
The register “Active Channel Diagnostic” switches the diagnostic function for each channel on or off:
- 0: Diagnostic function active on channel
- 1: Diagnostic function not active on channel
Default: 0xFFFF (65535dez)
Bit | R33.15 | R33.14 | R33.13 | R33.12 | R33.11 | R33.10 | R33.9 | R33.8 |
Name | Diag. on Channel 16 | Diag. on Channel 15 | Diag. on Channel 14 | Diag. on Channel 13 | Diag. on Channel 12 | Diag. on Channel 11 | Diag. on Channel 10 | Diag. on Channel 9 |
Bit | R33.7 | R33.6 | R33.5 | R33.4 | R33.3 | R33.2 | R33.1 | R33.0 |
Name | Diag. on Channel 8 | Diag. on Channel 7 | Diag. on Channel 6 | Diag. on Channel 5 | Diag. on Channel 4 | Diag. on Channel 3 | Diag. on Channel 2 | Diag. on Channel 1 |
R34: Watchdog Outputs Register
Das Watchdog Ausgangs Register legt die Zustände der Ausgänge bei einem Busfehler fest, wenn WDEn des Feature Regsiters R32 aktiviert ist.
The Watchdog Outputs Register defines the state of the Channel Outputs in case of a bus error.
Default: 0x0000.
Bit | R34.15 | R34.14 | R34.13 | R34.12 | R34.11 | R34.10 | R34.9 | R34.8 |
Name | Definition output Channel 16 | Definition output Channel 15 | Definition output Channel 14 | Definition output Channel 13 | Definition output Channel 12 | Definition output Channel 11 | Definition output Channel 10 | Definition output Channel 9 |
Bit | R34.7 | R34.6 | R34.5 | R34.4 | R34.3 | R34.2 | R34.1 | R34.0 |
Name | Definition output Channel 8 | Definition output Channel 7 | Definition output Channel 6 | Definition output Channel 5 | Definition output Channel 4 | Definition output Channel 3 | Definition output Channel 2 | Definition output Channel 1 |