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
#14
(28.09.2020, 13:30)admin Wrote: For modbus master you can either use mapper by creating a JSON profile for the slave device or use scripts for the communication.
As for writing not working check the hop count value in the telegram.

{
  "manufacturer": "Test",
  "description": "Test",
  "mapping": [
    { "name": "Output 1", "bus_datatype": "bool", "type": "coil", "address": 0, "writable": 1, "write_only": 0 },
{ "name": "Output 2", "bus_datatype": "bool", "type": "register", "address": 0, "writable": 1, "write_only": 0 }

  ]
 
}
That is what i have been trying, i have a script, it works when Node-Red are the Master and LM5 act as a slave. 



I have tried using the LM5 IP address to point to itself, but it gets a connection refused. As it does not setup a Master device in it self. I can only get the LM5 to act as a slave device.
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: