Translations:Периферийные устройства с интерфейсом RS-485 серии WB-xxxx/15/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…») |
Matveevrj (обсуждение | вклад) |
||
Строка 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 [[ | # 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
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:
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