[Example] Use Guage to show the Modbus Data
Posted: Fri Oct 13, 2023 2:36 am
Please prepare a Modbus TCP device.
Config: id:1
Use Node-RED Dashboard Guage node to show the read from Modbus device data.
The below is IoT Studio flow for try:
Config: id:1
Use Node-RED Dashboard Guage node to show the read from Modbus device data.
The below is IoT Studio flow for try:
Code: Select all
[{"id":"1e949d5643cbb1df","type":"ui_gauge","z":"a510fe93816cd48f","name":"","group":"a69a3e02343ed199","order":0,"width":0,"height":0,"gtype":"gage","title":"gauge","label":"units","format":"{{value}}","min":0,"max":"32767","colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","className":"","x":490,"y":260,"wires":[]},{"id":"41ca33c28b830f07","type":"modbus-read","z":"a510fe93816cd48f","name":"","topic":"","showStatusActivities":false,"logIOActivities":false,"showErrors":false,"showWarnings":true,"unitid":"1","dataType":"HoldingRegister","adr":"99","quantity":"1","rate":"1","rateUnit":"s","delayOnStart":false,"startDelayTime":"","server":"727c7f49022166ab","useIOFile":false,"ioFile":"","useIOForPayload":false,"emptyMsgOnFail":false,"x":330,"y":280,"wires":[["1e949d5643cbb1df"],[]]},{"id":"a69a3e02343ed199","type":"ui_group","name":"Default","tab":"af5097f28bda74af","order":1,"disp":true,"width":"6","collapse":false,"className":""},{"id":"727c7f49022166ab","type":"modbus-client","name":"","clienttype":"tcp","bufferCommands":true,"stateLogEnabled":false,"queueLogEnabled":false,"failureLogEnabled":true,"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","serialAsciiResponseStartDelimiter":"0x3A","unit_id":"1","commandDelay":"1","clientTimeout":"1000","reconnectOnTimeout":true,"reconnectTimeout":"2000","parallelUnitIdsAllowed":true,"showWarnings":true,"showLogs":true},{"id":"af5097f28bda74af","type":"ui_tab","name":"Home","icon":"dashboard","disabled":false,"hidden":false}]