Hi
Im about to setup a LM5 as a modbus gateway, but i am having issues with how to setup the socket.
I have tried setting up a socket in a script as:
I have also tried setting it in the Modbus tab
Any ideas ?
Im about to setup a LM5 as a modbus gateway, but i am having issues with how to setup the socket.
I have tried setting up a socket in a script as:
-
- if not mb then
- require('luamodbus')
- mb = luamodbus.tcp()
- mb:open('192.168.250.5', 10502)
- mb:connect()
- end
- if not mb then
- The 192.168.250.5 are the modbus slave(server). But it does not connect.
I have also tried setting it in the Modbus tab
Any ideas ?