ADEUNIS LoRaWAN MODBUS MASTER Guide Utilisateur page 67

Masquer les pouces Voir aussi pour LoRaWAN MODBUS MASTER:
Table des Matières

Publicité

Les langues disponibles

Les langues disponibles

LoRaWAN MODBUS MASTER - Guide utilisateur / User guide version V1.0.0
Description of the frame :
Bytes 2 to 3 : value of the first register in the order of the configuration defined in registers 330 à 339
Bytes 4 to 5 : value of the second register in the order of the configuration defined in registers 330 à 339
...
Bytes 48 to 49 : value of the 24 register in the order of the configuration defined in registers 330 à 339
Using the configuration example in paragraph 2.2.1 as follows:
Register
Value encoding
S301
Decimal
S322
Decimal
S330
Hexadecimal
S331
Hexadecimal
The result frame is:
0
1
Code
Status
0x44
Cf Status
0x44
0xB3
In the example in grey this gives:
Bytes 2 to 3: the Modbus register 0x1518 of slave 0x01 is 0x1234
Bytes 4 to 5: the Modbus register 0x1519 of slave 0x01 is 0x5A20
Bytes 6 to 7: the Modbus register 0x0ED8 of slave 0x57 is 0x3F41
Bytes 8 to 9: the Modbus register 0x0ED9 of slave 0x01 is 0x6D72
Bytes 10 to 11: the Modbus register 0x0EDA of slave 0x01 is 0xE042
Bytes12 to 13: the Modbus register 0x0EDB of slave 0x01 is 0x0025
Value
180
200
0x01151802
0x570ED814
2 to 3
4 to 5
Modbus regis-
Modbus regis-
ter 0x1518 of
ter 0x1519 of
slave 0x01
slave 0x01
0x1234
0x5A20
Result
Periodic mode with a period of 180x20s = 3600 seconds = 1h
The supply time of the external load (slave) before the Modbus
request is 200x100 = 20000ms ie 20s
Periodic data 1 configuration:
Slave address = 0x01
First register address = 0x1518
Modbus registers type : holding registers
Number of registers = 2
Periodic data 2 configuration:
Slave address = 0x57
First register address = 0x0ED8
Modbus registers type : input registers
Number of registers = 4
6 to 7
8 to 9
PAYLOAD
Modbus regis-
Modbus regis-
ter 0x0ED8 of
ter 0x0ED9 of
slave 0x57
slave 0x57
0x3F41
0x6D72
10 to 11
12 to 13
Modbus regis-
Modbus regis-
ter 0x0EDA of
ter 0x0EDB of
slave 0x57
slave 0x57
0xE042
0x0025
Page
67
FR
EN
of 80

Publicité

Table des Matières
loading

Ce manuel est également adapté pour:

Arf8240aa

Table des Matières