28.09.2020, 07:14 (This post was last modified: 28.09.2020, 07:17 by OysteinEl.)
Im testing it towards a Node-Red slave right now, and they are fuzzy about the 502 port (admin/root control) Both the LM5 and the Node-red slave are setup with 10502. I have got the 10502 and Node-red working with other equipment.
I have tried moving them to a 502 port, and there are the same issue, it does not seem to connect.
I see now that the LM5 are being setup as a Modbus Slave, opposite of what the manual states. I have started a Modbus Master instance in Node-Red that receives data.
'Modbus Master – user graphical mapper interface in Modbus tab
Modbus Slave – to use LM as Modbus Slave, disable Modbus RTU in Modbus→RTU settings,
and use scripts for the communication'
How do i get the LM5 to act as an modbus tcp master ?
another question i get data from the Node-Red system now but the knx will not react to it:
I see that the 'Current Value' changes and works fine when:
- Operating the light switch KNX->LM5 - 'Set value' function LM5->KNX
but this one does not send from LM5->KNX
- Sending true or false commandos from Node-red Node-red->LM5->KNX
this does not send to the knx bus, the statusline above was changed from Node-red but the knx bus does not turn on or off the light.
any ideas, no filters are applied.
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.
(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.
}
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.
Modbus mapper UI is Master. Modbus Slave can be done only via a script at the moment. If the script is running then check if ports are the same in the Modbus device UI and the script.