(Yesterday, 08:10)admin Wrote: Disable RTU1 in Modbus settings, then run this script. It will run for a couple of minutes and will log any found devices.
Code:require('luamodbus')
mb = luamodbus.rtu()
mb:open('/dev/RS485-1', 9600, 'N', 8, 1, 'H')
mb:connect()
for i = 1, 247 do
mb:setslave(i)
res, err = mb:readregisters(0)
if res ~= nil then
log('found device', i, res)
end
end
mb:close()
I ran the script, but come back with nothing.

(Yesterday, 08:35)Daniel Wrote: To create a profile you need device documentation from the manufacture where you will find registry table definition. Otherwise you are completely blind.
I managed to locate a document from the manufactory (attached) and then generated the profile base on the info.
Can you check and see if I did it right? Thanks