[{"id":"2a248d17.9a1bb2","type":"tab","label":"Victron modbus","disabled":false,"info":""},{"id":"23a4068a.2eb062","type":"modbus-write","z":"2a248d17.9a1bb2","name":"limit multiplus","showStatusActivities":false,"showErrors":false,"unitid":"100","dataType":"HoldingRegister","adr":"2704","quantity":"1","server":"a42e8133.80268","emptyMsgOnFail":false,"keepMsgProperties":false,"x":910,"y":680,"wires":[["7776c493.0c0be4"],[]]},{"id":"6ca71de5.c2c35c","type":"function","z":"2a248d17.9a1bb2","name":"limit modbus 500watt","func":"var limitnew = 0\n\nvar msg1 = {}\n\n\nlimitnew = 500\n\n\n msg1.payload = (limitnew / 10)\n return [msg1];\n \n\n","outputs":1,"noerr":0,"x":720,"y":680,"wires":[["23a4068a.2eb062","99c64840.79d93"]]},{"id":"10287fdd.350cf","type":"inject","z":"2a248d17.9a1bb2","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":480,"y":680,"wires":[["6ca71de5.c2c35c"]]},{"id":"90e6de7f.a05a58","type":"modbus-write","z":"2a248d17.9a1bb2","name":"limit multiplus","showStatusActivities":false,"showErrors":false,"unitid":"100","dataType":"HoldingRegister","adr":"2704","quantity":"1","server":"a42e8133.80268","emptyMsgOnFail":false,"keepMsgProperties":false,"x":910,"y":780,"wires":[["613bff69.d581f8"],[]]},{"id":"6f8a3ac2.d0c65c","type":"function","z":"2a248d17.9a1bb2","name":"limit modbus 2000watt","func":"var limitnew = 0\n\nvar msg1 = {}\n\n\nlimitnew = 2000\n\n\n msg1.payload = (limitnew / 10)\n return [msg1];\n \n\n","outputs":1,"noerr":0,"x":720,"y":780,"wires":[["90e6de7f.a05a58","267dcd08.48d582"]]},{"id":"9fec805a.7e8268","type":"inject","z":"2a248d17.9a1bb2","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":480,"y":780,"wires":[["6f8a3ac2.d0c65c"]]},{"id":"919e1a31.002a2","type":"comment","z":"2a248d17.9a1bb2","name":"Change max inverter power","info":"","x":510,"y":620,"wires":[]},{"id":"9b07c8c5.4e4c6","type":"comment","z":"2a248d17.9a1bb2","name":"Read multiplus output power watt","info":"","x":490,"y":940,"wires":[]},{"id":"99c64840.79d93","type":"debug","z":"2a248d17.9a1bb2","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":930,"y":620,"wires":[]},{"id":"7776c493.0c0be4","type":"debug","z":"2a248d17.9a1bb2","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":1100,"y":680,"wires":[]},{"id":"267dcd08.48d582","type":"debug","z":"2a248d17.9a1bb2","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":920,"y":740,"wires":[]},{"id":"613bff69.d581f8","type":"debug","z":"2a248d17.9a1bb2","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":1100,"y":780,"wires":[]},{"id":"be1ef016.ed1ec8","type":"comment","z":"2a248d17.9a1bb2","name":"press button for 500watt inverterlimit","info":"","x":240,"y":680,"wires":[]},{"id":"2d647a9a.bf749e","type":"modbus-read","z":"2a248d17.9a1bb2","name":"Multiplus2","topic":"","showStatusActivities":false,"logIOActivities":false,"showErrors":false,"unitid":"242","dataType":"HoldingRegister","adr":"12","quantity":"1","rate":"5","rateUnit":"s","delayOnStart":false,"startDelayTime":"","server":"a42e8133.80268","useIOFile":false,"ioFile":"","useIOForPayload":false,"emptyMsgOnFail":false,"x":460,"y":1040,"wires":[["1427d5ee.aa7e9a"],[]]},{"id":"846b06af.e96f9","type":"debug","z":"2a248d17.9a1bb2","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":890,"y":1040,"wires":[]},{"id":"1427d5ee.aa7e9a","type":"function","z":"2a248d17.9a1bb2","name":"","func":"\nvar multiwatt = 0\n\n\nmultiwatt = msg.payload[0]\n\nif (multiwatt >= 32768)\n{\n multiwatt = (multiwatt - 65536)\n}\n\nmultiwatt = (multiwatt * 10)\n\nmsg.payload[10] = multiwatt\n\n\nflow.set(\"multiwatt\", multiwatt)\n\nreturn msg;","outputs":1,"noerr":0,"x":670,"y":1040,"wires":[["846b06af.e96f9"]]},{"id":"d31f8834.975e98","type":"comment","z":"2a248d17.9a1bb2","name":"array 0: data from modbus 10: power in watt","info":"","x":1210,"y":1040,"wires":[]},{"id":"472e0a91.ee8f3c","type":"comment","z":"2a248d17.9a1bb2","name":"press button for 2000watt inverterlimit","info":"","x":240,"y":780,"wires":[]},{"id":"67927997.1ff6c8","type":"comment","z":"2a248d17.9a1bb2","name":"Read multiplus power limit","info":"","x":490,"y":400,"wires":[]},{"id":"57e21b7c.4ef5bc","type":"modbus-read","z":"2a248d17.9a1bb2","name":"Multiplus2 limit","topic":"","showStatusActivities":false,"logIOActivities":false,"showErrors":false,"unitid":"100","dataType":"HoldingRegister","adr":"2704","quantity":"1","rate":"5","rateUnit":"s","delayOnStart":false,"startDelayTime":"","server":"a42e8133.80268","useIOFile":false,"ioFile":"","useIOForPayload":false,"emptyMsgOnFail":false,"x":490,"y":500,"wires":[["7b87f8eb.69fcd"],[]]},{"id":"94593ff0.41c888","type":"debug","z":"2a248d17.9a1bb2","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":910,"y":500,"wires":[]},{"id":"7b87f8eb.69fcd","type":"function","z":"2a248d17.9a1bb2","name":"","func":"\nvar limit = 0\n\n\nlimit = msg.payload[0]\n\n\nmsg.payload[0] = (limit * 10)\n\n\n\nreturn msg;","outputs":1,"noerr":0,"x":690,"y":500,"wires":[["94593ff0.41c888"]]},{"id":"ee741c16.1673c","type":"comment","z":"2a248d17.9a1bb2","name":"inverter limit from multi","info":"","x":1160,"y":500,"wires":[]},{"id":"a42e8133.80268","type":"modbus-client","z":"","name":"Hugo2","clienttype":"tcp","bufferCommands":true,"stateLogEnabled":false,"queueLogEnabled":false,"tcpHost":"192.168.178.111","tcpPort":"502","tcpType":"DEFAULT","serialPort":"/dev/ttyUSB","serialType":"RTU-BUFFERD","serialBaudrate":"9600","serialDatabits":"8","serialStopbits":"1","serialParity":"none","serialConnectionDelay":"100","unit_id":"30","commandDelay":"1","clientTimeout":"1000","reconnectOnTimeout":true,"reconnectTimeout":"2000","parallelUnitIdsAllowed":true}]