L-STAT User Manual
22
LOYTEC
Version 1.0
LOYTEC electronics GmbH
3.4 Modbus Register Description
In the following sections the L-STAT Modbus registers are described. Abbrevations are
explained at the end of each table. ‘R’ indicates that this value is not used by now and that it
is reserved for future use. Square brackets ‘[]’ indicate that this is the initial value. Numbers
with the prefix ‘0x’ are hexadecimal values. Values with no prefix indicate decimal values.
3.4.1 Data Registers
These registers contain data that is changing frequently. This data is not stored persistent in
the L-STAT device and will be lost after a reboot.
Register Name
Register
Address
Bit Position
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
present_state
0
0x0000
R
[0]
R
[0]
R
[0]
Occu
[0]
EB
3
[
0
]
EB
2
[
0
]
EB
1
[
0
]
EB
0
[
0
]
TB
7
[
0
]
TB
6
[
0
]
TB
5
[
0
]
TB
4
[
0
]
TB
3
[
0
]
TB
2
[
0
]
TB
1
[
0
]
TB
0
[
0
]
short_pressed
1
0x0001
IRC
[0]
NFC
[0]
R
[0]
Occu
[0]
long_pressed
2
0x0002
FD
[1]
ERR
[0]
DOC
[0]
SPC
[0]
The present_state register always represents the actual state of the buttons and the
occupancy sensor.
The short_pressed and long_pressed states will remain set until the flags are cleared by the
Modbus master by writing a logical
‘
1
’
to the specific flag, except the occupancy flag that
is cleared automatically after the occupancy_timeout has expired.
Bits 0-11 indicate the states of the buttons (
TBx
-touch button,
EBx
-external button)
Occu:
occupancy flag, defines if occupancy is detected by built-in occupancy sensor
(applies to LSTAT-801-Gx-Lx and LSTAT-802-Gx-Lx)
NFC:
NFC flag, is set if an NFC field was detected. This gives the information that a
user is reading the NFC tag memory with an NFC enabled mobile device. For
more information see Chapter 4.
IRC:
infrared remote control flag, is set when an infrared remote control code was
received. The received code can be read via the ir_remote_control_command
register at register address 32 (see Table 9 on Page 24).
SPC:
Set point changed flag, is set when a set point was changed on the L-STAT.
Each set point has an individual change flag at register address 3 (see Table 8 on
Page 23).
DOC:
device setting or offset value changed flag, is set when a device setting or offset
value was changed on the L-STAT. The specific change flags can be read via the
registers at address 4 and 5 (see Table 8 on Page 23).
ERR:
error flag, is set when an internal error has occurred.
FD:
factory default (unconfigured) flag, is set when the device has booted with factory
default settings.
Button states and flags can have the following binary values:
1
– pressed, set
0
– released, cleared
The present_state register is only updated in DISPLAY-mode!
(For a list of possible modes see Table 4 on Page 16
)
Table 7: Button States and Flags