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
#21
I changed my configuration and now I only get this error

Attached Files Thumbnail(s)
   
Reply
#22
You still have connection problem here. It looks like this inverter accepts only one connection so everything else must be disabled. Send me your backup to PM, I will check if anything else is taking the slot.
------------------------------
Ctrl+F5
Reply
#23
Did you just remove the device from modbus mapper? I can see errors from today but there is no device there. If this is the case then reboot inverter again and see what the script says now.
------------------------------
Ctrl+F5
Reply
#24
(01.09.2026, 11:36)Daniel Wrote: Did you just remove the device from modbus mapper?  I can see errors from today but there is no device there. If this is the case then reboot inverter again and see what the script says now.

Yes, I removed it to test the script. I did reboot the inverter and I still get the same error.
The strange thing, is that when I add the device, I get readings from all registers and still I can not write to 40120 & 40125
Reply
#25
(01.09.2026, 11:36)Daniel Wrote: Did you just remove the device from modbus mapper?  I can see errors from today but there is no device there. If this is the case then reboot inverter again and see what the script says now.

I suspect that the issue is with the Inverter itself.
Can you tell me what changes shall I do to the script in order to test it over RS485?
Reply
#26
How is Modbus TCP configured on your inverter? Maybe there's some setting that forbids writing.
Reply
#27
(03.09.2026, 10:31)admin Wrote: How is Modbus TCP configured on your inverter? Maybe there's some setting that forbids writing.

I have no idea what is wrong. The other software is writting over TCP.
That's why I want to try the alternative RS485 route
Reply
#28
Enable and configure RTU 1 in Modbus tab. Use Read test to check the communication first. Then try this script, change slave id (2) as needed:

Code:
mbproxy = require('mbproxy') mb = mbproxy.new() mb:setslave(2) res, err = mb:writeregisters(40120, 300) if res then   log('write ok') else   log('write failed', err) end
Reply


Forum Jump: