LoRaWAN MODBUS MASTER - Guide utilisateur / User guide version V2.0.0
There will be as many alarm frames transmitted as VALUE s read on the slave registers exceeding the configured thresholds.
The settings associated with this mode of operation are:
•
Acquisition period (register S320)
•
Supply time of the external load (slave) before the Modbus request (register 322)
•
Alarms configuration (registers S350, 355, 360, 365, 370, 375, 380, 385, 390, 395).
•
High threshold alarms (registers S351, 356, 361, 366, 371, 376, 381, 386, 391, 396).
•
Hysteresis of high threshold alarms (registers S352, 357, 362, 367, 372, 377, 382, 387, 392, 397).
•
Low threshold alarms (registers S353, 358, 363, 368, 373, 378, 383, 388, 393, 398).
•
Hysteresis of low threshold alarms (registers S354, 359, 364, 369, 374, 379, 384, 389, 394, 399).
The complete list of registers can be found in paragraph 3.4.
E.g.:
Register
VALUE encoding
S320
Decimal
S322
Decimal
S350
Hexadecimal
S351
Hexadecimal
S352
Hexadecimal
S353
Hexadecimal
S354
Hexadecimal
IMPORTANT : alarms and thresholds are set to a maximum of 4 bytes (ie 2 maximum Modbus registers).
For a value defined on one register, the user can choose the data type between unsigned or signed 16-bit integer. For a value defined on 2
registers, the user can choose the type of data between: unsigned 32-bit integer or signed 32-bit integer or unsigned 32-bit integer (word swap)
or signed 32-bit integer (word swap).
VALUE
Result
360
Periodic mode with a period of 360x10s = 3 600 seconds = 1hour
200
The supply time of the external load (slave) before the Modbus request is
200 x100ms= 20 000ms ie 20s
0x0A106827
Alarm 1 configuration:
•
Slave address = 0x0A
•
First register address = 0x1068
•
Data type : 32-bit unsigned integer (bits 4 to 6 = 2)
•
Modbus register type: input registers (bit 2 = 1)
•
Active thresholds: low and high (bits 0 to 1 = 3)
0x00124F80
High threshold of alarm 1 is 1,200,000 (decimal)
0x2710
Hysteresis of high threshold of alarm 1 is 10,000 (decimal)
0x00061A80
Low threshold of alarm 1 is 400,000 (decimal)
0x2710
Hysteresis of low threshold of alarm 1 is 10,000 (decimal)
FR
EN
Page
37
of 43