Modbus-client/en: различия между версиями

Новая страница: «<syntaxhighlight lang="bash">modbus_client --debug -mrtu -pnone -s2 /dev/ttyAPP1 -a0x00 -t0x06 -r0x80 0x02</syntaxhighlight> Where 0x02 is the address to be set.…»
(Новая страница: «---- 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>
Где 0x02 - адрес, который нужно задать.
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)
12 063

правки