10.5.6 Fonctions Modbus
Func-
Name
tion
Code
01
Read Coil
Status
02
Read Input
Status
03
Read Holding
Registers
04
Read Input
Registers
05
Force Single
Coil
Tab. 23
Fonctions Modbus
1) La désignation des relais (coils), des entrées (Input) et des registres démarre par « 1 » (adresse physique « 0 »).
301 383
1)
Address
0x00 → RELAY1
0x01 → RELAY2
0x00 → INPUT1
0x01 → INPUT2
0x00 → UFM, RFM Version
0x01 → Distance [mm]
0x02 →
0x08 → Error
0x09 → Device ID [UFM, RFM]
0x0A → Distance [mm]
0x0C → Filling Level [cm]
0x0E → Volume [l]
0x14 → Temperature [°C]
-
0x00 → RELAY1
0x01 → RELAY2
Data type
Comment
Bit
Read relay status.
Bit
Read input status.
A "TRUE" logic level on the inputs are
extended to minimum 5 seconds.
Unsigned
Value = 310 → V3.10
Integer
Value = 0 ... 6000 → 0 ... 6000 mm
Signed Integer
-
Signed Integer
Unsigned
TRUE → Sensor error
Integer
FALSE → Sensor OK
Unsigned
Value = 50 → Device ID = 50
Integer
Float_ABCD
IEEE 32-bit floating-point
Float_ABCD
IEEE 32-bit floating-point
Float_ABCD
IEEE 32-bit floating-point
-
Float_ABCD
-
-
Bit
Write relay status, if it is released to
Modbus control
main menu → output → switching type →
relay 1,2 → modbus controlled
value = 0x0000 → Relay off
value = 0xFF00 → Relay on
BA-2018.02.09 FR
Annexe
RFM
27