Buenos dias, necesito sumar dos variables de dos contadores modbus diferentes pero no se como hacerlo. adjunto instruccion. Un saludo
[{"id":"27195760.addd28","type":"modbus-read","z":"db2fd8f9.a97c98","name":"Contador General","topic":"","showStatusActivities":false,"logIOActivities":false,"showErrors":false,"unitid":"1","dataType":"HoldingRegister","adr":"14","quantity":"1","rate":"10","rateUnit":"s","delayOnStart":true,"startDelayTime":"6","server":"f4de446a.47c808","useIOFile":false,"ioFile":"","useIOForPayload":false,"emptyMsgOnFail":false,"x":250,"y":1220,"wires":[["35a5b3f4.5cdc3c"],]},{"id":"35a5b3f4.5cdc3c","type":"function","z":"db2fd8f9.a97c98","name":"","func":"\n\nobj = {}\nobj.payload = {};\nobj.payload.W=(msg.payload[0]/1 << 16) >> 16;\nreturn obj;","outputs":1,"noerr":0,"initialize":"","finalize":"","x":500,"y":1220,"wires":[["52ae5c23.54faf4"]]},{"id":"190e3cb0.0defe3","type":"modbus-read","z":"db2fd8f9.a97c98","name":"Contador Solar","topic":"","showStatusActivities":false,"logIOActivities":false,"showErrors":false,"unitid":"3","dataType":"HoldingRegister","adr":"14","quantity":"1","rate":"10","rateUnit":"s","delayOnStart":true,"startDelayTime":"7","server":"f4de446a.47c808","useIOFile":false,"ioFile":"","useIOForPayload":false,"emptyMsgOnFail":false,"x":240,"y":1320,"wires":[["35a5b3f4.5cdc3c"],]},{"id":"52ae5c23.54faf4","type":"debug","z":"db2fd8f9.a97c98","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":880,"y":1220,"wires":},{"id":"f4de446a.47c808","type":"modbus-client","name":"General","clienttype":"tcp","bufferCommands":true,"stateLogEnabled":false,"queueLogEnabled":false,"tcpHost":"192.168.1.11","tcpPort":"502","tcpType":"TPC-RTU-BUFFERED","serialPort":"/dev/ttyUSB","serialType":"RTU-BUFFERD","serialBaudrate":"9600","serialDatabits":"8","serialStopbits":"1","serialParity":"none","serialConnectionDelay":"100","unit_id":"3","commandDelay":"1","clientTimeout":"1000","reconnectOnTimeout":true,"reconnectTimeout":"2000","parallelUnitIdsAllowed":true}]