Selasa, 21 Februari 2023

cara read data modbus di node red

 



[{"id":"3b7235c6.86ac9a","type":"modbus-read","z":"a2175cb0.64d21","name":"PV","topic":"","showStatusActivities":false,"logIOActivities":false,"showErrors":false,"unitid":"1","dataType":"HoldingRegister","adr":"2","quantity":"1","rate":"500","rateUnit":"ms","delayOnStart":false,"startDelayTime":"","server":"a71947da.4db898","useIOFile":false,"ioFile":"","useIOForPayload":false,"emptyMsgOnFail":false,"x":130,"y":60,"wires":[["717ec58a.78217c"],[]]},{"id":"717ec58a.78217c","type":"function","z":"a2175cb0.64d21","name":"","func":"msg.payload=Number(msg.payload)/10\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","x":290,"y":60,"wires":[["dc1d472c.4707a8"]]},{"id":"dc1d472c.4707a8","type":"ui_gauge","z":"a2175cb0.64d21","name":"","group":"51c2b898.67dfa8","order":1,"width":8,"height":10,"gtype":"donut","title":"<font size=15>PV","label":"°C","format":"{{value}}","min":0,"max":"100","colors":["#00b500","#e6e600","#ca3838"],"seg1":"35","seg2":"70","x":500,"y":60,"wires":[]},{"id":"a71947da.4db898","type":"modbus-client","d":true,"name":"simor","clienttype":"tcp","bufferCommands":true,"stateLogEnabled":false,"queueLogEnabled":false,"tcpHost":"192.168.8.8","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":"3000","reconnectOnTimeout":true,"reconnectTimeout":"2000","parallelUnitIdsAllowed":true},{"id":"51c2b898.67dfa8","type":"ui_group","name":"test","tab":"107fc001.db3eb","order":1,"disp":false,"width":25,"collapse":false},{"id":"107fc001.db3eb","type":"ui_tab","name":"autonics","icon":"dashboard","order":25,"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