Перейти к содержанию

Навигация

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

Новая страница: «Note that the modbus_client utility replaced 1 with 0x00FF when recording, because this value is used to turn on the relay. Any nonzero value is changed to 0x00FF…»
(Новая страница: «---- 5.5. Let's turn on relay 6 on WB-MR14 relay module(addresses of flags registers start from zero, remember that!). Use the command 0x05 (Write Single Coil):…»)
(Новая страница: «Note that the modbus_client utility replaced 1 with 0x00FF when recording, because this value is used to turn on the relay. Any nonzero value is changed to 0x00FF…»)
Строка 141: Строка 141:
SUCCESS: written 1 elements!</syntaxhighlight>
SUCCESS: written 1 elements!</syntaxhighlight>


Обратите внимание, утилита modbus_client при записи заменила 1 на 0x00FF, поскольку именно это значение служит для включения реле. Любое ненулевое значение будет заменено на 0x00FF, поэкспериментируйте.
Note that the modbus_client utility replaced 1 with 0x00FF when recording, because this value is used to turn on the relay. Any nonzero value is changed to 0x00FF, give it a try.


----
----
12 063

правки