12 063
правки
(Новая страница: «---- 1. Write the new address of the WB-MR14 device to the 0x80 register using the 0x06 (Write Single Register) function.») |
(Новая страница: «<syntaxhighlight lang="bash">modbus_client --debug -mrtu -pnone -s2 /dev/ttyAPP1 -a0x00 -t0x06 -r0x80 0x02</syntaxhighlight> Where 0x02 is the address to be set.…») |
||
Строка 74: | Строка 74: | ||
<syntaxhighlight lang="bash">modbus_client --debug -mrtu -pnone -s2 /dev/ttyAPP1 -a0x00 -t0x06 -r0x80 0x02</syntaxhighlight> | <syntaxhighlight lang="bash">modbus_client --debug -mrtu -pnone -s2 /dev/ttyAPP1 -a0x00 -t0x06 -r0x80 0x02</syntaxhighlight> | ||
Where 0x02 is the address to be set. | |||
Answer: | |||
<syntaxhighlight lang="bash">Data to write: 0x2 | <syntaxhighlight lang="bash">Data to write: 0x2 | ||
Opening /dev/ttyAPP1 at 9600 bauds (N, 8, 2) | Opening /dev/ttyAPP1 at 9600 bauds (N, 8, 2) |
правки