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.

LM5 Modbus TCP
#1
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:


    1. if not mb then

    2.     require('luamodbus')

    3.     mb = luamodbus.tcp()

    4.     mb:open('192.168.250.5', 10502)

    5.     mb:connect()

    6. end
  1. 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 ?
Reply


Messages In This Thread
LM5 Modbus TCP - by OysteinEl - 28.09.2020, 06:33
RE: LM5 Modbus TCP - by admin - 28.09.2020, 06:37
RE: LM5 Modbus TCP - by OysteinEl - 28.09.2020, 07:01
RE: LM5 Modbus TCP - by admin - 28.09.2020, 07:04
RE: LM5 Modbus TCP - by OysteinEl - 28.09.2020, 07:14
RE: LM5 Modbus TCP - by admin - 28.09.2020, 07:31
RE: LM5 Modbus TCP - by OysteinEl - 28.09.2020, 08:14
RE: LM5 Modbus TCP - by admin - 28.09.2020, 09:11
RE: LM5 Modbus TCP - by OysteinEl - 28.09.2020, 09:25
RE: LM5 Modbus TCP - by OysteinEl - 28.09.2020, 11:50
RE: LM5 Modbus TCP - by admin - 28.09.2020, 12:40
RE: LM5 Modbus TCP - by OysteinEl - 28.09.2020, 12:59
RE: LM5 Modbus TCP - by admin - 28.09.2020, 13:30
RE: LM5 Modbus TCP - by OysteinEl - 29.09.2020, 06:51
RE: LM5 Modbus TCP - by admin - 29.09.2020, 12:22

Forum Jump: