Register description
The registers can be read or written via the register communication. They are used for the parameterization of the terminal.
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 target counter value (low word)
This register contains the low word of the target counter value.
- R1 target counter value (high word)
This register contains the high word of the target counter value.
- R2 maximum frequency
This register contains the high word of the target counter value.
- R3 counter extension high word
This register contains the overflow value (internal 32-bit extension).
- R4 to R6: Reserved
- R7: Command register [0x0000]
- For a command 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.
R32: | 0x0030 | (48dec) | R38: | 0x86A0 | (34464dec) |
R33: | 0x0000 | (0dec) | R39: | 0x0001 | (1dec) |
R34: | 0x0000 | (0dec) | R40: | 0x03E8 | (1000dec) |
R35: | 0x0000 | (0dez) | R41: | 0x03E8 | (1000dec) |
R36: | 0xC350 | (50000dec) | R42: | 0x0064 | (100dec) |
R37: | 0x0000 | (0dec) | R43: | 0x0032 | (50dec) |
|
|
|
|
| *) for KL2521-0010 |
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.
- R11: Signal channels
Related to 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 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 |
- R14: reserved
- R15: Alignment bits (RAM)
The alignment bits are used to place the analog terminal in the Bus Coupler on a byte boundary.
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.
R16: Hardware version number
Register R16 contains the hardware version of the terminal.
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.
R31: Code word register in RAM
Functionality of the code word register 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. |
- R32: Feature register
[0x0030]
[0x2010] for KL2521-0015
This register specifies the operation modes of the terminal. Thus, for instance, a user-specific scaling can be enabled for the analog I/Os.
Feature bit no. |
| Description of the operation mode | ||
---|---|---|---|---|
Bit 0…Bit1 | - | No function | ||
Bit 2 | 0 | [0] Watchdog timer active | ||
Bit 3 | 1 | [0] Signed amount representation | ||
Bit 4 | 1 | [1] The counter is cleared on a positive edge of the Counter_Clear bit in the control byte (Control.5) | ||
Bit 5 | 1 | [1] Ramp function active | ||
Bit 6 | 0/1 | [0] Ramp base frequency
| ||
Bit 7 | 0/1 | [0] Input mode
| ||
Bit 8 | 0/1 | [0] Behavior when watchdog triggered
| ||
Bit 9 | 1 | [0] Travel distance control active | ||
Bit 10 | 0/1 | [0] Counter
| ||
Bit 11…12 | - | No function | ||
Bit 13…15 | Pos. logic | Neg. logic | [000] Operation mode | Range of values |
000 | 100 | Frequency modulation | 0 - 500 kHz | |
001 | 101 | Pulse-direction control | ||
010 | 110 | Incremental encoder |
- R35: User switch-on value
If the user switch-on value has been enabled with bit R32.8 of the feature register, the terminal sets its output to the user switch-on value in place of the manufacturer switch-on value on the occurrence of a system reset or a watchdog timer overflow (terminal has not received any process data for 100 ms).
- R36: Base frequency 1 (low word)
This register contains the low word of the base frequency 1.
The base frequency 1 is used if - the ramp function is deactivated and
- the Frequency_Selection bit (Control.0) is 0.
- R37: Base frequency 1 (high word)
This register contains the high word of the base frequency 1.
The base frequency 1 is used if - the ramp function is deactivated and
- the Frequency_Selection bit (Control.0) is 0.
- R38: Base frequency 2 (low word)
This register contains the low word of the base frequency 2.
The base frequency 2 is used if - the ramp function is deactivated and
- the Frequency_Selection bit (Control.0) is 1.
- R39: Base frequency 2 (high word)
This register contains the high word of the base frequency 2.
The base frequency 2 is used if - the ramp function is deactivated and
- the Frequency_Selection bit (Control.0) is 1.
- R40: Ramp time constant (rising)
The ramp gradient for starting can be set in register 40 with a accuracy of 10 or 1000 Hz/s (Feature.6).
- R41: Ramp time constant (falling)
The ramp gradient for stopping can be set with an accuracy of 10 or 1000 Hz / s (Feature.6) using register 41.
- R42: Frequency factor (direct input, digit x 10 mHz)
This register contains the frequency factor. If the frequency is entered directly (Feature7 = 1), the process data are multiplied by the frequency factor (see Process data).
- R43: Run-out frequency (travel distance control)
This register contains the run-out frequency (see travel distance control).