Периферийные устройства с интерфейсом RS-485 серии WB-xxxx/en: различия между версиями

Новая страница: «== How to install a new Modbus address on our RS-485 device== # Connect the device to the controller, ONLY this device should be connected via the BUS. #: '''If y…»
(Новая страница: «{| class="wikitable" |WB-MSW v.1, v.2 hybrid sensors in wall-mounted enclosure | |- |WB-MIR v1 - Modbus IR Re…»)
(Новая страница: «== How to install a new Modbus address on our RS-485 device== # Connect the device to the controller, ONLY this device should be connected via the BUS. #: '''If y…»)
Строка 122: Строка 122:
</div>
</div>


==Установить новый адрес Modbus на устройство RS-485 нашего производства==
== How to install a new Modbus address on our RS-485 device==
# Подключите устройство к контроллеру ЕДИНСТВЕННЫМ НА ШИНЕ.
# Connect the device to the controller, ONLY this device should be connected via the BUS.
#: Если оставить на шине несколько устройств, их работоспособность будет нарушена!
#: '''If you connect several devices on the bus, their performance will be disrupted!'''
# Выполните в [[Консоль | консоли]] команды:
# Run the [[Консоль | console]] commands:
<syntaxhighlight lang="bash">
<syntaxhighlight lang="bash">
service wb-mqtt-serial stop # остановите стандартный драйвер RS-485
service wb-mqtt-serial stop # stop the standard RS-485 driver
# В следующей строке замените "158" на новый адрес (от 1 до 247), а "/dev/ttyAPP1" на порт контролера, к которому подключено устройство
# In the next line, replace "158" with the new address (1 to 247) and "/dev/ttyAPP1" with the controller port to which the device is connected
modbus_client --debug -m rtu -s2 -pnone /dev/ttyAPP1 -a0x00 -t0x06 -r0x80 158 # записать новый адрес в устройство
modbus_client --debug -m rtu -s2 -pnone /dev/ttyAPP1 -a0x00 -t0x06 -r0x80 158 # write new address to device
service wb-mqtt-serial start # снова запустите стандартный драйвер RS-485
service wb-mqtt-serial start # start the standard RS-485 driver again
</syntaxhighlight>
</syntaxhighlight>


12 063

правки