Logic Machine Forum
How to configure the "RTU2" port for RS485 - 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: How to configure the "RTU2" port for RS485 (/showthread.php?tid=2619)



How to configure the "RTU2" port for RS485 - Oleg - 29.04.2020

Hi,  Smile need your advice.

How to configure RTU2 port for RS485 (for Modbus RTU, half-duplex)?

I'm using LM5 Lite. 

I've comfigured RTU1 port - all working fine:
RTU (serial) enabled: Yes
Port: "/dev/RS485-1

And my settings for RTU2 (that is not working Huh ) :
RTU (serial) enabled: Yes
Port: "/dev/RS485-2" (this field was empty and i pasted  "/dev/RS485-2" manually) 

   


RE: How to configure the "RTU2" port for RS485 - admin - 30.04.2020

/dev/RS485-2 is correct. Make sure that you don't have any other script/plugin using this port. Keep in mind that RS232 is shared with RS485-2 so it cannot be used simultaneously.


RE: How to configure the "RTU2" port for RS485 - Oleg - 01.05.2020

(30.04.2020, 04:20)admin Wrote: /dev/RS485-2 is correct. Make sure that you don't have any other script/plugin using this port. Keep in mind that RS232 is shared with RS485-2 so it cannot be used simultaneously.
Thank you, working!

Oh Undecided , I noticed that if you enabling RTU2 for Modbus over RS485 my TCP/IP devices (also modbus) lost communication. Do you have any idea why this is happening?

My configuration:
TCP/IP: 2 devices (Modbus TCP/IP, port 502)
RTU1:    8 devices (Modbus RTU, 9600bps)
RTU2:    1 device   (Modbus RTU, 115200bps)

PS: TCP/IP + RTU1 working fine.


RE: How to configure the "RTU2" port for RS485 - Daniel - 01.05.2020

What happen if you reboot LM?


RE: How to configure the "RTU2" port for RS485 - Oleg - 01.05.2020

(01.05.2020, 09:30)Daniel. Wrote: What happen if you reboot LM?
I haven't tried it. I 've just taken logic off.  When I get to the apartment - I'll try Smile .


RE: How to configure the "RTU2" port for RS485 - Oleg - 19.05.2020

(01.05.2020, 09:39)Oleg Wrote:
(01.05.2020, 09:30)Daniel. Wrote: What happen if you reboot LM?
I haven't tried it. I 've just taken logic off.  When I get to the apartment - I'll try Smile .
After reboot LM all communications are working correctly. Thank you!