Logic Machine Forum
Modbus and RS485 communications - Printable Version

+- Logic Machine Forum (https://forum.logicmachine.net)
+-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1)
+--- Forum: Scripting (https://forum.logicmachine.net/forumdisplay.php?fid=8)
+--- Thread: Modbus and RS485 communications (/showthread.php?tid=1575)



Modbus and RS485 communications - Dan22 - 04.09.2018

Hello,
in the past I used LM only as the gateway to KNX + visualization.
I used basic scripts in LUA.

Now I get to the project, where MODBUS communication and RS485 communication is needed. I went through the forum and still do not know how to do it.

Are there any examples of crypts for RS485 communication and Modbus communication or manual?

The Modbus-TCP communication will be used to control the massage bathtub.
RS485 communication will be used to control the fireplace.

I have communication protocols for the device.
I have LM5 IO V2 available.

Thank you for your help.


RE: Modbus and RS485 communications - admin - 05.09.2018

The easiest way to interface modbus devices is to use profiles/built-in mapper: http://openrb.com/docs/modbus.htm
Serial communication library is also built-in: http://openrb.com/docs/serial.htm

There's also an example of Denver e-Ribbon Fire control: http://openrb.com/logicmachine-as-gateway-to-denver-e-ribbon-fire