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.

Modbus mapping help
#9
(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.  Cry

(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

Attached Files
.docx   HT-06 Modbus Protocal.docx (Size: 16.38 KB / Downloads: 1)
Reply


Messages In This Thread
Modbus mapping help - by sunhailun - 15.12.2025, 00:39
RE: Modbus mapping help - by admin - 15.12.2025, 07:43
RE: Modbus mapping help - by sunhailun - 15.12.2025, 10:20
RE: Modbus mapping help - by sunhailun - 16.12.2025, 15:19
RE: Modbus mapping help - by Daniel - 16.12.2025, 15:21
RE: Modbus mapping help - by sunhailun - Yesterday, 03:00
RE: Modbus mapping help - by admin - Yesterday, 08:10
RE: Modbus mapping help - by sunhailun - Yesterday, 13:26
RE: Modbus mapping help - by Daniel - Yesterday, 08:35
RE: Modbus mapping help - by Daniel - Yesterday, 13:27
RE: Modbus mapping help - by sunhailun - Yesterday, 13:34
RE: Modbus mapping help - by Daniel - Yesterday, 13:36
RE: Modbus mapping help - by sunhailun - Yesterday, 13:38
RE: Modbus mapping help - by Daniel - Yesterday, 13:46
RE: Modbus mapping help - by sunhailun - Yesterday, 13:59
RE: Modbus mapping help - by Daniel - Yesterday, 14:01
RE: Modbus mapping help - by sunhailun - Yesterday, 14:08
RE: Modbus mapping help - by Daniel - Yesterday, 14:08
RE: Modbus mapping help - by sunhailun - Yesterday, 14:15
RE: Modbus mapping help - by Daniel - Yesterday, 14:17
RE: Modbus mapping help - by sunhailun - Yesterday, 14:19

Forum Jump: