Register description
The following registers are used for parameterization of the KM4602. Each signal channel of the analog terminal has one register that can be read or written to with the aid of control, status and data bytes via register communication.
R0: Process data for D/A-C
Process data, which are transferred to the D/A converter.
R6: Diagnostic register
The diagnostics register of the KM4602 is currently not used.
R7: Command register
The command register of the KM4602 is currently not used.
R8: Terminal description
The description of the terminal is contained in register R8.
KM4602: 0x11FA (4602dec)
R9: Firmware version
Register R9 contains the ASCII coding of the terminal's firmware version, e.g. 0x3141 (1AASCII). '0x31' corresponds to the ASCII character '1' and '0x41' to the ASCII character 'A'. This value cannot 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 |
0x15x | 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 cannot be changed.
R17: Hardware compensation - offset (Ba)
This register is used for the offset compensation of the terminal (see equation 1.1). Register value (16 bit signed integer). Default: 0x0001 (1dec)
R18: Hardware compensation - gain (Aa)
This register is used for the gain compensation of the terminal (see equation 1.1). Register value (16 bit unsigned integer x 2-12). Default: typically 0x0E99 (3737dec)
R19: Manufacturer scaling - offset (Bh)
This register contains the offset for the manufacturer scaling (see equation 1.3). Register value (16 bit signed integer). Default: 0x0000 (0dec)
Manufacturer scaling can be activated via bit R32.1 of the feature register.
R20: Manufacturer scaling - gain (Ah)
This register contains the gain for manufacturer scaling (see equation 1.3). Register value (16 bit unsigned integer x 2-8). Default: typically 0x0020 (32dec)
Manufacturer scaling can be activated via bit R32.1 of the feature register.
R21: Manufacturer's switch-on value
The terminal applies the manufacturer switch-on value to its output after a system reset or a watchdog timer overflow (terminal has received no process data for 100 ms). Register value (16 bit signed integer).
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: 0x0006 (6dec)
Bit | R32.15 | R32.14 | R32.13 | R32.12 | R32.11 | R32.10 | R32.9 | R32.8 |
Name | - | - | - | - | - | - | - | enUserActValue |
Bit | R32.7 | R32.6 | R32.5 | R32.4 | R32.3 | R32.2 | R32.1 | R32.0 |
Name | - | - | enSignRepr | - | enSignAmRepr | enWdTimer | enManScal | enUsrScal |
Key
Bit | Name | Description | default | |
---|---|---|---|---|
R32.15 | - | reserved | 0bin | |
... | ... | ... | ... | |
R32.9 | - | reserved | 0bin | |
R32.8 | enUserActValue | 0bin | Manufacturer switch-on value active | 0bin |
1bin | User switch-on value active | |||
R32.7 | - | reserved | 0bin | |
R32.6 | - | reserved | 0bin | |
R32.5 | enSignRepr | 0bin | Absolute value calculation not active | 0bin |
1bin | Absolute value calculation active | |||
R32.4 | - | reserved | 0bin | |
R32.3 | enSignAmRepr | 0bin | Two's complement representation is active | 0bin |
1bin | The arithmetic sign of numerical quantities is active (-1dec = 0x8001) | |||
R32.2 | enWdTimer | 0bin | Watchdog timer is not active | 1bin |
1bin | Watchdog timer is active (the watchdog is triggered if no process data are received for 100 ms) | |||
R32.1 | enManScal | 0bin | Manufacturer scaling is active | 1bin |
1bin | Manufacturer scaling is not active | |||
R32.0 | enUsrScal | 0bin | User scaling is not active | 0bin |
1bin | User scaling is active |
R33: User scaling - offset (Bw)
This register contains the offset of the user scaling.
User scaling can be activated in the feature register via bit R32.0.
R34: User scaling - gain (Aw)
This register contains the gain of the user scaling. Default: 0x0100 (256dec)
User scaling can be activated in the feature register via bit R32.0.
R35: User's switch-on value
If the user switch-on value has been activated 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).