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.

Huawei - Input Register not working
#11
(07.08.2026, 11:49)admin Wrote: Run this script once and post what you get in LM Logs tab. Change Modbus device IP if needed.

Code:
mb = require('luamodbus').tcp() mb:open('192.168.99.141', 502) res, err = mb:connect() if res then   mb:setslave(2)   res, err = mb:writeregisters(40120, 300)   if res then     log('write ok')   else     log('write failed', err)   end  else   log('connection failed', err) end mb:close()

I set it to run every 5 seconds and I get these messages

Attached Files Thumbnail(s)
   
Reply


Messages In This Thread
RE: Huawei - Input Register not working - by Chandrias - 07.08.2026, 11:56

Forum Jump: