16 809
правок
Строка 83: | Строка 83: | ||
Запишем всем устройствам на шине в регистр <code>128 (0x80)</code> новый адрес <code>1</code>: | Запишем всем устройствам на шине в регистр <code>128 (0x80)</code> новый адрес <code>1</code>: | ||
<syntaxhighlight lang="console"> | <syntaxhighlight lang="console"> | ||
# modbus_client --debug -b9600 | # modbus_client --debug -mrtu -b9600 -pnone -s2 /dev/ttyRS485-1 -a0 -t0x06 -r128 1 | ||
Data to write: 0x1 | Data to write: 0x1 | ||
Opening /dev/ttyRS485-1 at 9600 bauds (N, 8, 2) | Opening /dev/ttyRS485-1 at 9600 bauds (N, 8, 2) |