06.08.2022, 09:29
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<<<<<<<<<<<<<<<<<<<<<<<
require('luamodbus')
mb = luamodbus.tcp()
-- IP:10.154.12.73, port: 502
mb:open('192.168.1.49', 502) -- my LM @IP
mb:connect()
-- slave id
mbetslave(10)
../..
All your ideas are welcome !
Thank's in advance.
Dominique
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<<<<<<<<<<<<<<<<<<<<<<<
require('luamodbus')
mb = luamodbus.tcp()
-- IP:10.154.12.73, port: 502
mb:open('192.168.1.49', 502) -- my LM @IP
mb:connect()
-- slave id
mbetslave(10)
../..
All your ideas are welcome !
Thank's in advance.
Dominique