YO Modbus
User guide
v2.1
page 23/33
"timings": {
"responsetimeout": 1000,
"delaybetweenpolls": 100
},
"queries": [
{
"name": "01Ph1V",
←
— Phase 1: phase voltage
"slaveaddr": 1,
←
— slave address :1
"funccode": 3,
←
— function code : 3 ( read holding registers)
"startreg": "1000",
←
— register variable : 0x1000
"regnbr": 2
←
– format UD_WORD value regnbr: 2 (meaning, read 4 bytes)
},
{
"name": "RunHour",
←
— Phase 1: phase voltage
"slaveaddr": 1,
←
— slave address :1
"funccode": 3,
←
— function code : 3 ( read holding registers)
"startreg": "106e",
←
— register variable : 0x106e
"regnbr": 1
←
– format U_WORD value regnbr: 1 (meaning, read 2 bytes)
}
],
"pollstosend": [
{
"cnt": 1,
←
— cnt:1 , first LoRa containing reply to query “01Ph1V”
"out": [
"01Ph1V"
]
},
{
"cnt": 2,
←
— cnt:2 , second LoRa containing reply to query “RunHour”
"out": [
"RunHour"
]
}
]
}
Figure 15
YO Modbus example configuration in text editor of queries and polls to send with two LoRa
packets.