Access from the user program
KL400x
32
Version: 4.0
Complete evaluation
The terminal is mapped with control and status byte.
Motorola format
Motorola or Intel format can be set.
Word alignment
The terminal is positioned on a word boundary in the Bus Coupler.
Ch n CB
Control byte for channel n (appears in the process image of the outputs).
Ch n SB
Status byte for channel n (appears in the process image of the inputs).
Ch n D0
Channel n, data byte 0 (byte with the lowest value)
Ch n D1
Channel n, data byte 1 (byte with the highest value)
Res.
Reserved: this byte is assigned to the process data memory, although it has no function.
5.3
Register overview
These registers exist once for each channel.
Address
Name
Default value
R/W
Storage medium
R0…R4
reserved
0x0000
R
RAM
Raw DAC value
variable
R
Diagnostic register (not used)
0x0000
R
RAM
R7
Command register - not used
0x0000
R
Terminal type
e.g. 4002
R
ROM
Software version number
0x????
R
ROM
Multiplex shift register
0x0218
R
ROM
Signal channels
0x0218
R
ROM
Minimum data length
0x9800
R
ROM
Data structure
0x0000
R
ROM
R14
reserved
0x0000
R
Alignment register
variable
R/W
RAM
Hardware version number
0x????
R/W
SEEROM
Hardware compensation: Offset specific
R/W
SEEROM
Hardware compensation: Gain
specific
R/W
SEEROM
Manufacturer scaling: Offset
0x0000
R/W
SEEROM
Manufacturer scaling: Gain
0x0020
R/W
SEEROM
Manufacturer's switch-on value
0x0000
R/W
SEEROM
R22…R30
reserved
0x0000
R/W
SEEROM
Code word register
variable
R/W
RAM
Feature register
0x0006
R/W
SEEROM
User scaling: Offset
0x0000
R/W
SEEROM
User scaling: Gain
0x0100
R/W
SEEROM
User switch-on value
0x0000
R/W
SEEROM
R36…R47
reserved
0x0000
R/W
SEEROM
5.4
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.
Summary of Contents for KL400 Series
Page 2: ......