Access from the user program
KL6001
30
Version: 3.0.0
•
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 [
.
•
R18: Buffer size
[0x0080]
Register R18 specifies the quantity of data in the receive FIFO above which the BUF_F bit in the status
byte is to be set.
Low byte: when this value is reached, BUF_F is set in the status
High byte: not used
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
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
This register specifies the operation modes of the terminal. Thus, for instance, a user-specific scaling
can be enabled for the analog I/Os.
The default values are shown in square brackets.