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

Материал из Wiren Board
(Новая страница: «== 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…»)
 
 
Строка 2: Строка 2:
# Connect the device to the controller, ONLY this device should be connected via the BUS.
# 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!'''
#: '''If you connect several devices on the bus, their performance will be disrupted!'''
# Run the [[Консоль | console]] commands:
# Run the [[SSH | console]] commands:
<syntaxhighlight lang="bash">
<syntaxhighlight lang="bash">
service wb-mqtt-serial stop # stop the standard RS-485 driver
service wb-mqtt-serial stop # stop the standard RS-485 driver

Текущая версия на 15:22, 21 февраля 2023

Определение сообщения (Периферийные устройства с интерфейсом RS-485 серии WB-xxxx)
==Установить новый адрес Modbus на устройство RS-485 нашего производства==
# Подключите устройство к контроллеру ЕДИНСТВЕННЫМ НА ШИНЕ.
#: Если оставить на шине несколько устройств, их работоспособность будет нарушена!
# Выполните в [[Консоль | консоли]] команды:
<syntaxhighlight lang="bash">
service wb-mqtt-serial stop # остановите стандартный драйвер RS-485
# В следующей строке замените "158" на новый адрес (от 1 до 247), а "/dev/ttyAPP1" на порт контролера, к которому подключено устройство
modbus_client --debug -m rtu -s2 -pnone /dev/ttyAPP1 -a0x00 -t0x06 -r0x80 158 # записать новый адрес в устройство
service wb-mqtt-serial start # снова запустите стандартный драйвер RS-485
</syntaxhighlight>

How to install a new Modbus address on our RS-485 device

  1. 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!
  2. Run the console commands:
service wb-mqtt-serial stop # stop the standard RS-485 driver
# 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 # write new address to device
service wb-mqtt-serial start # start the standard RS-485 driver again