Selasa, 21 Februari 2023

parsing data bit modbus di node red





[{"id":"96dbc2a3.8a3c","type":"modbus-read","z":"eda7f4a8.523008","name":"1001","topic":"","showStatusActivities":false,"logIOActivities":false,"showErrors":false,"unitid":"1","dataType":"HoldingRegister","adr":"1001","quantity":"1","rate":"100","rateUnit":"ms","delayOnStart":false,"startDelayTime":"","server":"509989e4.29d898","useIOFile":false,"ioFile":"","useIOForPayload":false,"emptyMsgOnFail":false,"x":110,"y":60,"wires":[["a2932f46.46532"],[]]},{"id":"a2932f46.46532","type":"bitunloader","z":"eda7f4a8.523008","name":"","mode":"arrayBits","prop":"payload","padding":"16","x":270,"y":60,"wires":[["1158d04b.0ef67"]]},{"id":"1158d04b.0ef67","type":"Input Split","z":"eda7f4a8.523008","name":"","inputProps":["payload.0","payload.1","payload.2","payload.3","payload.4","payload.5","payload.6","payload.7","payload.8","payload.9","payload.10","payload.11","payload.12","payload.13","payload.14","payload.15"],"outputs":16,"x":440,"y":140,"wires":[[],[],[],[],["4dd513fc.ef950c"],["baad34c6.cd2758"],["464f4528.f94a7c"],[],[],[],[],[],[],[],[],[]]},{"id":"4dd513fc.ef950c","type":"function","z":"eda7f4a8.523008","name":"","func":"msg.payload=Number(msg.payload)\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","x":640,"y":40,"wires":[["b87065ca.429fe8"]]},{"id":"b87065ca.429fe8","type":"ui_led","z":"eda7f4a8.523008","order":11,"group":"e0ad5522.86bd48","width":8,"height":1,"label":"BATTERY CHARGER 1 FAILURE","labelPlacement":"left","labelAlignment":"left","colorForValue":[{"color":"red","value":"1","valueType":"num"},{"color":"green","value":"0","valueType":"num"}],"allowColorForValueInMessage":false,"shape":"circle","showGlow":true,"name":"BATTERY CHARGER 1 FAILURE","x":880,"y":40,"wires":[]},{"id":"509989e4.29d898","type":"modbus-client","d":true,"name":"vizi","clienttype":"tcp","bufferCommands":true,"stateLogEnabled":false,"queueLogEnabled":false,"tcpHost":"127.0.0.1","tcpPort":"502","tcpType":"DEFAULT","serialPort":"/dev/ttyUSB","serialType":"RTU-BUFFERD","serialBaudrate":"9600","serialDatabits":"8","serialStopbits":"1","serialParity":"none","serialConnectionDelay":"100","unit_id":"1","commandDelay":"1","clientTimeout":"1000","reconnectOnTimeout":true,"reconnectTimeout":"2000","parallelUnitIdsAllowed":true},{"id":"e0ad5522.86bd48","type":"ui_group","name":"Default","tab":"737a5cf4.89d5d4","order":1,"disp":false,"width":25,"collapse":false},{"id":"737a5cf4.89d5d4","type":"ui_tab","name":"Tornatech","icon":"airplay","order":2,"disabled":false,"hidden":false}]

Tidak ada komentar:

Posting Komentar

Cara membuat datalogger blynk di spreadsheet / googlesheet menggunakan akun versi Free

  silahkan video di atas. semoga bermanfaat. jika masih kurang jelas bisa kontak saya