Приветствую!
По какой-то причине отображается число 0, должно быть 56,4.
Вот вывод из консоли:
modbus_client -mrtu /dev/ttyRS485-2 -b9600 -pnone -t 0x03 -a1 -r3000 -c2
SUCCESS: read 2 of elements:
Data: 0x0000 0x0234
modbus_client -mrtu /dev/ttyRS485-2 -b9600 -pnone -t 0x03 -a1 -r3001 --debug
Opening /dev/ttyRS485-2 at 9600 bauds (N, 8, 1)
[01][03][0B][B9][00][01][57][CB]
Waiting for a confirmation…
<01><83><02>
ERROR Illegal data address
ERROR occured!
Вот кусок шаблона
{
“name”: “Run Hours”,
“reg_type”: “holding”,
“address”: “3000”,
“type”: “u32”,
“scale”: 0.1
}