Access from the user program
KL4132
30
Version: 3.0
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.
Note
• 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
[0x0000]
This register specifies the operation modes of the terminal.
Feature bit no.
Description of the operation mode
Bit 0
1
Bit 1
1
Manufacturer scaling (
Bit 2
0
Watchdog timer active [0]
In the delivery state, the watchdog timer is switched on. In the event of a watchdog overflow, either the
manufacturer or the user switch-on value is applied to the terminal output.
Bits 3 to 7
-
Reserved, don't change
Bit 8
0/1
0
bin
: Manufacturer switch-on value [0]
1
bin
: User switch-on value
Bits 9 to 15
-
Reserved, don't change
•
R33: User scaling - offset (B_w)
16 bit signed integer [0x0000]
This register contains the offset of the user straight-line equation (
equation is enabled via register
•
R34: User scaling - gain (A_w)
16 bit signed integer*2
-8
[0x0100]
This register contains the scaling factor of the user straight-line equation (
line equation is enabled via register
.
•
R35: User switch-on value
16 bit signed integer [0x0000]
If the user switch-on value is enabled in register
, this value is applied to the terminal output
after a system reset or a watchdog timer overflow (terminal has not received any process data for
100 ms).
5.5
Control and status byte
The control and status byte is transmitted from the controller to the terminal. It can be used
• in register mode (REG = 1
bin
) or
• in process data exchange (REG = 0
bin
).
5.5.1
Process data exchange
Control byte in process data exchange (REG=0)
A gain and offset calibration of the terminal can be carried out with the control byte. The code word must be
entered in
so that the terminal calibration can be carried out. The gain and offset of the terminal
can then be calibrated. The parameter will only be saved permanently once the code word is reset!
Summary of Contents for KL4132
Page 2: ......