Logic Machine Forum
modbus ascii - 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: modbus ascii (/showthread.php?tid=1654)



modbus ascii - raphael - 15.10.2018

hello,
I have to control an equipement communicating in modbus rs485 ascii. Is the LM able to communicate with it? If it is, do you have en example a the script that I have to use?
thanks a lot


RE: modbus ascii - admin - 15.10.2018

There's no ASCII support in ModBus library, but you can use raw RS485 communication: http://openrb.com/docs/serial.htm


RE: modbus ascii - lpala - 27.10.2018

(15.10.2018, 13:45)raphael Wrote: hello,
I have to control an equipement communicating in modbus rs485 ascii. Is the LM able to communicate with it? If it is, do you have en example a the script that I have to use?
thanks a lot

Hi raphael,
here is a bad-but-working-and-not-complete implementation of modbus ascii purely written in lua for LM.
You can have a look at test file to understand the implementation and usage.

https://github.com/lucapalazzo/luamodbus-native

Luca


RE: modbus ascii - emme - 16.04.2021

(27.10.2018, 08:07)lpala Wrote:
(15.10.2018, 13:45)raphael Wrote: hello,
I have to control an equipement communicating in modbus rs485 ascii. Is the LM able to communicate with it? If it is, do you have en example a the script that I have to use?
thanks a lot

Hi raphael,
here is a bad-but-working-and-not-complete implementation of modbus ascii purely written in lua for LM.
You can have a look at test file to understand the implementation and usage.

https://github.com/lucapalazzo/luamodbus-native

Luca

Luca,
I'm starting using your library in a LM5 lite, works like a charm on TCP, but what about serial connection?

My understanding is that that portion is not yet completed.... do you have plans for implementing it?
thanks
ciao
M