This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

modbus ascii
#1
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
Reply
#2
There's no ASCII support in ModBus library, but you can use raw RS485 communication: http://openrb.com/docs/serial.htm
Reply
#3
(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
Reply
#4
(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
Reply


Forum Jump: