REG5081 is also working for me. But I see a strange behavior with setting REG5081. In my setup I have 2 EVCS one with the IP 192.x.x.21 and the second one with IP 192.x.x.22. But I can only write REG5081 with IP .21 not with IP.22. Reading the value of REG5081 is possible on both IPs and it also changes on both IPs to the value written to IP.21.
In the VRM device list the IP.21 EVCS is instance 41 and the IP.22 tool is instance 42.
@Lpopescu can you explain that behavior? Or is it even wanted like this?
See attached Nodered flow:
[{"id":"a21efdcee74723ed","type":"tab","label":"Flow 2","disabled":false,"info":"","env":[]},{"id":"4eee7f0cae628f23","type":"inject","z":"a21efdcee74723ed","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":180,"y":140,"wires":[["7dd84d66b73040cc"]]},{"id":"7dd84d66b73040cc","type":"function","z":"a21efdcee74723ed","name":"BKPB balance power 5081 IP.21","func":"var fc=3;\nvar unit=1;\nvar sa=5081;\nvar addresses=1;\nmsg.slave_ip=\"192.168.8.21\";\nmsg.payload={value: msg.payload, 'fc': fc, 'unitid': unit, 'address': sa , 'quantity': addresses };\nreturn msg;","outputs":1,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":410,"y":140,"wires":[["86f6d5aee1516b50"]]},{"id":"86f6d5aee1516b50","type":"modbus-flex-getter","z":"a21efdcee74723ed","name":"Read EVCS","showStatusActivities":true,"showErrors":true,"showWarnings":true,"logIOActivities":false,"server":"d230201e85f6873c","useIOFile":false,"ioFile":"","useIOForPayload":false,"emptyMsgOnFail":false,"keepMsgProperties":false,"delayOnStart":false,"startDelayTime":"","x":690,"y":140,"wires":[[],["7ee992b671eb47de"]]},{"id":"7ee992b671eb47de","type":"function","z":"a21efdcee74723ed","name":"ReadUInt16","func":"const buf= Buffer.from(msg.payload.buffer)\nconst value = buf.readUInt16BE();\nmsg.payload = value;\n\nnode.status({ fill: \"blue\", shape: \"ring\", text: msg.payload });\nreturn msg;","outputs":1,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":890,"y":140,"wires":[[]]},{"id":"02ce635c56ed93eb","type":"inject","z":"a21efdcee74723ed","name":"","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"1500","payloadType":"num","x":170,"y":80,"wires":[["7e48b8929601fdd0"]]},{"id":"7e48b8929601fdd0","type":"function","z":"a21efdcee74723ed","name":"BKPB balance power 5081 IP.21","func":"var fc=6;\nvar unit=1;\nvar sa = 5081;\nvar addresses=1;\nmsg.slave_ip=\"192.168.8.21\";\nmsg.payload={value: msg.payload, 'fc': fc, 'unitid': unit, 'address': sa , 'quantity': addresses };\nreturn msg;","outputs":1,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":390,"y":80,"wires":[["08d965351667df14"]]},{"id":"08d965351667df14","type":"modbus-flex-write","z":"a21efdcee74723ed","name":"EVCS Write","showStatusActivities":false,"showErrors":true,"showWarnings":true,"server":"d230201e85f6873c","emptyMsgOnFail":false,"keepMsgProperties":false,"delayOnStart":false,"startDelayTime":"","x":610,"y":80,"wires":[[],[]]},{"id":"470d62757ca3cc74","type":"inject","z":"a21efdcee74723ed","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":180,"y":220,"wires":[["f3f45a48cf028626"]]},{"id":"f3f45a48cf028626","type":"function","z":"a21efdcee74723ed","name":" BKPB balance SOC max 5081 IP.22","func":"var fc=3;\nvar unit=1;\nvar sa=5081;\nvar addresses=1;\nmsg.slave_ip=\"192.168.8.22\";\nmsg.payload={value: msg.payload, 'fc': fc, 'unitid': unit, 'address': sa , 'quantity': addresses };\nreturn msg;","outputs":1,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":430,"y":220,"wires":[["6816fa5127554b03"]]},{"id":"6816fa5127554b03","type":"modbus-flex-getter","z":"a21efdcee74723ed","name":"Read EVCS","showStatusActivities":true,"showErrors":true,"showWarnings":true,"logIOActivities":false,"server":"d230201e85f6873c","useIOFile":false,"ioFile":"","useIOForPayload":false,"emptyMsgOnFail":false,"keepMsgProperties":false,"delayOnStart":false,"startDelayTime":"","x":670,"y":220,"wires":[[],["e609816e54304ca4"]]},{"id":"e609816e54304ca4","type":"function","z":"a21efdcee74723ed","name":"ReadUInt16","func":"const buf= Buffer.from(msg.payload.buffer)\nconst value = buf.readUInt16BE();\nmsg.payload = value;\n\nnode.status({ fill: \"blue\", shape: \"ring\", text: msg.payload });\nreturn msg;","outputs":1,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":850,"y":220,"wires":[[]]},{"id":"eb289ff3f7e2352c","type":"inject","z":"a21efdcee74723ed","name":"","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"500","payloadType":"num","x":190,"y":180,"wires":[["1f361b2cdca01d41"]]},{"id":"1f361b2cdca01d41","type":"function","z":"a21efdcee74723ed","name":"BKPB balance power 5081 IP.22","func":"var fc=6;\nvar unit=1;\nvar sa = 5081;\nvar addresses=1;\nmsg.slave_ip=\"192.168.8.22\";\nmsg.payload={value: msg.payload, 'fc': fc, 'unitid': unit, 'address': sa , 'quantity': addresses };\nreturn msg;","outputs":1,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":430,"y":180,"wires":[["0107fe16fe811901"]]},{"id":"0107fe16fe811901","type":"modbus-flex-write","z":"a21efdcee74723ed","name":"EVCS Write","showStatusActivities":false,"showErrors":true,"showWarnings":true,"server":"7fe63f01e3404b65","emptyMsgOnFail":false,"keepMsgProperties":false,"delayOnStart":false,"startDelayTime":"","x":690,"y":180,"wires":[[],[]]},{"id":"d230201e85f6873c","type":"modbus-client","name":"EVCS 192.168.8.21","clienttype":"tcp","bufferCommands":true,"stateLogEnabled":false,"queueLogEnabled":false,"failureLogEnabled":true,"tcpHost":"192.168.8.21","tcpPort":"502","tcpType":"DEFAULT","serialPort":"/dev/ttyUSB","serialType":"RTU-BUFFERD","serialBaudrate":"9600","serialDatabits":"8","serialStopbits":"1","serialParity":"none","serialConnectionDelay":"100","serialAsciiResponseStartDelimiter":"0x3A","unit_id":1,"commandDelay":1,"clientTimeout":1000,"reconnectOnTimeout":true,"reconnectTimeout":2000,"parallelUnitIdsAllowed":true,"showErrors":false,"showWarnings":true,"showLogs":true},{"id":"7fe63f01e3404b65","type":"modbus-client","name":"EVCS Daniela","clienttype":"tcp","bufferCommands":true,"stateLogEnabled":false,"queueLogEnabled":false,"failureLogEnabled":true,"tcpHost":"192.168.8.22","tcpPort":"502","tcpType":"DEFAULT","serialPort":"/dev/ttyUSB","serialType":"RTU-BUFFERD","serialBaudrate":"9600","serialDatabits":"8","serialStopbits":"1","serialParity":"none","serialConnectionDelay":"100","serialAsciiResponseStartDelimiter":"0x3A","unit_id":1,"commandDelay":1,"clientTimeout":1000,"reconnectOnTimeout":true,"reconnectTimeout":2000,"parallelUnitIdsAllowed":true,"showErrors":false,"showWarnings":true,"showLogs":true}]