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.

LM Modbus slave Application Note 016
Hi all,

scripting Lua lines to tune my LM (a Wiser For KNX one) in order to make it a Modbus Slave, I use with succes the application note "AN016_spaceLYnk_as_a_Modbus slave_v2.0" from Schneider Electric in Modbus RTU.

Modbus master is an EGX150 Schneider Electric.

So, success is not forthcoming when I try to turn my LM to be a Modbus TCP Slave, as the application note explain it's possible to do.

-- modbus init
if not mb then
-->>>>>>>>>Modbus slave setting<<<<<<<<<<<<<<<<<<<<<<<
mb = luamodbus.tcp()
-- IP:, port: 502
mb:open('', 502)   -- my LM @IP
-- slave id


All your ideas are welcome !
Thank's in advance.

Remove mb:connect() and use as listening IP: mb:open('', 502)
Your pourpose :

Remove mb:connect() and use as listening IP: mb:open('', 502)

Sorry, but it doesn't work for me, only Modbus RTU run correctly (502 port is ok on LM and gateway) :

Note : I use LM as Modbus slave with an EGX150 Schneider Gateway

Post your whole script.
Hi Admin,

after few tests, it is ok now for Modbus slave TCP.

Forum Jump: