![]() |
|
Huawei - Input Register not working - Printable Version +- LogicMachine Forum (https://forum.logicmachine.net) +-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1) +--- Forum: Gateway (https://forum.logicmachine.net/forumdisplay.php?fid=10) +--- Thread: Huawei - Input Register not working (/showthread.php?tid=6527) Pages:
1
2
|
RE: Huawei - Input Register not working - Chandrias - 01.09.2026 I changed my configuration and now I only get this error RE: Huawei - Input Register not working - Daniel - 01.09.2026 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. RE: Huawei - Input Register not working - Daniel - 01.09.2026 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. RE: Huawei - Input Register not working - Chandrias - 03.09.2026 (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 RE: Huawei - Input Register not working - Chandrias - 03.09.2026 (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? RE: Huawei - Input Register not working - admin - 03.09.2026 How is Modbus TCP configured on your inverter? Maybe there's some setting that forbids writing. RE: Huawei - Input Register not working - Chandrias - 03.09.2026 (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 RE: Huawei - Input Register not working - admin - 03.09.2026 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 |