Multi-proxy modbus connection - Printable Version +- Logic Machine Forum (https://forum.logicmachine.net) +-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1) +--- Forum: Gateway (https://forum.logicmachine.net/forumdisplay.php?fid=10) +--- Thread: Multi-proxy modbus connection (/showthread.php?tid=5608) |
Multi-proxy modbus connection - gianluca_depascali@hotmail.it - 09.09.2024 Hi everybody! I have a problem about modbus writing. In this work there is two airconditioning connected to modbus and it have the same modbus ID (49). I can't change it because the company don't allow it. I connected this two device to the two different port of RS485. But the problem is to open comunication with proxy. You can't specificate where it have to open comunication. I use this script: Code: -- get value of object with group address 1/1/1 RE: Multi-proxy modbus connection - admin - 09.09.2024 You can pass the RTU port number (1, 2 or 3) when creating a proxy connection like this: Code: require('mbproxy').new(2) -- use RTU 2 Make sure to configure and enable both ports in RTU settings. |