2024年4月5日 星期五

Node-Red & Modbus TCP/IP ADAM6050 DIO

  Node-Red & Modbus TCP/IP ADAM6050 DIO 

1) pc 與 adam6017 同網段



2) 利用 Advantech ADAM/APAX Utility (Win32) 設定Adam6017









3) 實驗結果
Read Coil Status (Function Code=01)

讀取數位輸出狀態(DO)

  • 功能碼代號 : 01(0x)
  • 功能 : 該功能碼為讀取coil線圈數位輸出狀態資訊,若狀態為on則輸出1,反之若為off則輸出0
  • 佔用大小 : 若為n個bits,則佔用N=n/8個bits,若不能整除則N+1
  • 讀寫狀態 : R/W
  • 線圈地址上限 : 1~2000
  • Modbus起始地址 : 0x0000~0xffff





msg.payload=msg.payload.data[0];
return msg;




4) Node-Red 程式

[{"id":"b9a182891490f9df","type":"modbus-read","z":"ccb6453dbc18dd63","name":"","topic":"","showStatusActivities":false,"logIOActivities":false,"showErrors":false,"showWarnings":true,"unitid":"1","dataType":"Coil","adr":"0","quantity":"12","rate":"5","rateUnit":"s","delayOnStart":false,"startDelayTime":"","server":"1c26a972471ee33a","useIOFile":false,"ioFile":"","useIOForPayload":false,"emptyMsgOnFail":false,"x":130,"y":100,"wires":[[],[]]},{"id":"8b4a7dc4777d8336","type":"debug","z":"ccb6453dbc18dd63","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":230,"y":400,"wires":[]},{"id":"5e0c43458daab19e","type":"function","z":"ccb6453dbc18dd63","name":"","func":"msg.payload=msg.payload.data[0];\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":310,"y":120,"wires":[["aa3e49cb573d3ac6","e81f5f3c9b6893d4"]]},{"id":"aa3e49cb573d3ac6","type":"debug","z":"ccb6453dbc18dd63","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":510,"y":80,"wires":[]},{"id":"e81f5f3c9b6893d4","type":"ui_led","z":"ccb6453dbc18dd63","order":1,"group":"bcc80421681f5ec7","width":1,"height":1,"label":"","labelPlacement":"left","labelAlignment":"left","colorForValue":[{"color":"#ff0000","value":"false","valueType":"bool"},{"color":"#008000","value":"true","valueType":"bool"}],"allowColorForValueInMessage":false,"shape":"circle","showGlow":true,"name":"","x":500,"y":120,"wires":[]},{"id":"0c83c8edb1f39c89","type":"function","z":"ccb6453dbc18dd63","name":"","func":"msg.payload=msg.payload.data[1];\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":310,"y":200,"wires":[["3562a24ccbca2034","d49a9c90e19c87a8"]]},{"id":"d49a9c90e19c87a8","type":"ui_led","z":"ccb6453dbc18dd63","order":2,"group":"bcc80421681f5ec7","width":1,"height":1,"label":"","labelPlacement":"left","labelAlignment":"left","colorForValue":[{"color":"#ff0000","value":"false","valueType":"bool"},{"color":"#008000","value":"true","valueType":"bool"}],"allowColorForValueInMessage":false,"shape":"circle","showGlow":true,"name":"","x":500,"y":200,"wires":[]},{"id":"3562a24ccbca2034","type":"debug","z":"ccb6453dbc18dd63","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":510,"y":160,"wires":[]},{"id":"0ab4cc152a51b57f","type":"function","z":"ccb6453dbc18dd63","name":"","func":"msg.payload=msg.payload.data[2];\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":310,"y":280,"wires":[["e343db4289b90b05","38751dd700de9ff6"]]},{"id":"e343db4289b90b05","type":"debug","z":"ccb6453dbc18dd63","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":510,"y":240,"wires":[]},{"id":"38751dd700de9ff6","type":"ui_led","z":"ccb6453dbc18dd63","order":3,"group":"bcc80421681f5ec7","width":1,"height":1,"label":"","labelPlacement":"left","labelAlignment":"left","colorForValue":[{"color":"#ff0000","value":"false","valueType":"bool"},{"color":"#008000","value":"true","valueType":"bool"}],"allowColorForValueInMessage":false,"shape":"circle","showGlow":true,"name":"","x":500,"y":280,"wires":[]},{"id":"75158d2acc30c8d1","type":"function","z":"ccb6453dbc18dd63","name":"","func":"msg.payload=msg.payload.data[3];\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":310,"y":360,"wires":[["c51748cd27954dfb","19e01153fef1a35d"]]},{"id":"19e01153fef1a35d","type":"ui_led","z":"ccb6453dbc18dd63","order":4,"group":"bcc80421681f5ec7","width":1,"height":1,"label":"","labelPlacement":"left","labelAlignment":"left","colorForValue":[{"color":"#ff0000","value":"false","valueType":"bool"},{"color":"#008000","value":"true","valueType":"bool"}],"allowColorForValueInMessage":false,"shape":"circle","showGlow":true,"name":"","x":500,"y":360,"wires":[]},{"id":"c51748cd27954dfb","type":"debug","z":"ccb6453dbc18dd63","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":510,"y":320,"wires":[]},{"id":"e37a29188cb33622","type":"function","z":"ccb6453dbc18dd63","name":"","func":"msg.payload=msg.payload.data[4];\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":310,"y":440,"wires":[["c0b1e1da6c173894","fd8735eb59ee994b"]]},{"id":"c0b1e1da6c173894","type":"debug","z":"ccb6453dbc18dd63","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":510,"y":400,"wires":[]},{"id":"fd8735eb59ee994b","type":"ui_led","z":"ccb6453dbc18dd63","order":5,"group":"bcc80421681f5ec7","width":1,"height":1,"label":"","labelPlacement":"left","labelAlignment":"left","colorForValue":[{"color":"#ff0000","value":"false","valueType":"bool"},{"color":"#008000","value":"true","valueType":"bool"}],"allowColorForValueInMessage":false,"shape":"circle","showGlow":true,"name":"","x":500,"y":440,"wires":[]},{"id":"3fba559024265d72","type":"function","z":"ccb6453dbc18dd63","name":"","func":"msg.payload=msg.payload.data[5];\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":310,"y":520,"wires":[["08a9663f0cfa661e","7153d7cbbcbf39f9"]]},{"id":"7153d7cbbcbf39f9","type":"ui_led","z":"ccb6453dbc18dd63","order":6,"group":"bcc80421681f5ec7","width":1,"height":1,"label":"","labelPlacement":"left","labelAlignment":"left","colorForValue":[{"color":"#ff0000","value":"false","valueType":"bool"},{"color":"#008000","value":"true","valueType":"bool"}],"allowColorForValueInMessage":false,"shape":"circle","showGlow":true,"name":"","x":500,"y":520,"wires":[]},{"id":"08a9663f0cfa661e","type":"debug","z":"ccb6453dbc18dd63","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":510,"y":480,"wires":[]},{"id":"f8eb4fa9e1e9d628","type":"function","z":"ccb6453dbc18dd63","name":"","func":"msg.payload=msg.payload.data[6];\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":310,"y":600,"wires":[["dbe3a5c5e78e4091","2071bf12acd6bce7"]]},{"id":"dbe3a5c5e78e4091","type":"debug","z":"ccb6453dbc18dd63","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":510,"y":560,"wires":[]},{"id":"2071bf12acd6bce7","type":"ui_led","z":"ccb6453dbc18dd63","order":7,"group":"bcc80421681f5ec7","width":1,"height":1,"label":"","labelPlacement":"left","labelAlignment":"right","colorForValue":[{"color":"#ff0000","value":"false","valueType":"bool"},{"color":"#008000","value":"true","valueType":"bool"}],"allowColorForValueInMessage":false,"shape":"square","showGlow":true,"name":"","x":500,"y":600,"wires":[]},{"id":"75720321edfb9d9e","type":"function","z":"ccb6453dbc18dd63","name":"","func":"msg.payload=msg.payload.data[7];\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":310,"y":680,"wires":[["8839f03aaec7602a","283474913630e7f6"]]},{"id":"283474913630e7f6","type":"ui_led","z":"ccb6453dbc18dd63","order":8,"group":"bcc80421681f5ec7","width":1,"height":1,"label":"","labelPlacement":"left","labelAlignment":"right","colorForValue":[{"color":"#ff0000","value":"false","valueType":"bool"},{"color":"#008000","value":"true","valueType":"bool"}],"allowColorForValueInMessage":false,"shape":"square","showGlow":true,"name":"","x":500,"y":680,"wires":[]},{"id":"8839f03aaec7602a","type":"debug","z":"ccb6453dbc18dd63","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":510,"y":640,"wires":[]},{"id":"bde0e6b605676392","type":"modbus-read","z":"ccb6453dbc18dd63","name":"","topic":"","showStatusActivities":false,"logIOActivities":false,"showErrors":false,"showWarnings":true,"unitid":"2","dataType":"Coil","adr":"16","quantity":"8","rate":"5","rateUnit":"s","delayOnStart":false,"startDelayTime":"","server":"1c26a972471ee33a","useIOFile":false,"ioFile":"","useIOForPayload":false,"emptyMsgOnFail":false,"x":710,"y":80,"wires":[["b7269a6a7cfe3d45"],["2162096b59c2404f","15ec5959e25ac419","734b198ed21277c9","9b04f9cba4bdae68","3276d4357312f85a","1cc4348c3a6a2c59"]]},{"id":"2162096b59c2404f","type":"function","z":"ccb6453dbc18dd63","name":"","func":"msg.payload=msg.payload.data[0];\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":890,"y":100,"wires":[["e70a812513c48d45","20473a4d09604ebc"]]},{"id":"e70a812513c48d45","type":"ui_led","z":"ccb6453dbc18dd63","order":4,"group":"ee05315959ee87af","width":1,"height":1,"label":"","labelPlacement":"left","labelAlignment":"left","colorForValue":[{"color":"#ff0000","value":"false","valueType":"bool"},{"color":"#008000","value":"true","valueType":"bool"}],"allowColorForValueInMessage":false,"shape":"circle","showGlow":true,"name":"","x":1080,"y":100,"wires":[]},{"id":"15ec5959e25ac419","type":"function","z":"ccb6453dbc18dd63","name":"","func":"msg.payload=msg.payload.data[1];\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":890,"y":180,"wires":[["0ad924f0da4d9159","084d36a1b40e3850"]]},{"id":"084d36a1b40e3850","type":"ui_led","z":"ccb6453dbc18dd63","order":6,"group":"ee05315959ee87af","width":1,"height":1,"label":"","labelPlacement":"left","labelAlignment":"left","colorForValue":[{"color":"#ff0000","value":"false","valueType":"bool"},{"color":"#008000","value":"true","valueType":"bool"}],"allowColorForValueInMessage":false,"shape":"circle","showGlow":true,"name":"","x":1080,"y":180,"wires":[]},{"id":"0ad924f0da4d9159","type":"debug","z":"ccb6453dbc18dd63","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":1090,"y":140,"wires":[]},{"id":"734b198ed21277c9","type":"function","z":"ccb6453dbc18dd63","name":"","func":"msg.payload=msg.payload.data[2];\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":890,"y":260,"wires":[["e3a58718f608c672","2b9cdee1dd90ac64"]]},{"id":"e3a58718f608c672","type":"debug","z":"ccb6453dbc18dd63","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":1090,"y":220,"wires":[]},{"id":"2b9cdee1dd90ac64","type":"ui_led","z":"ccb6453dbc18dd63","order":8,"group":"ee05315959ee87af","width":1,"height":1,"label":"","labelPlacement":"left","labelAlignment":"left","colorForValue":[{"color":"#ff0000","value":"false","valueType":"bool"},{"color":"#008000","value":"true","valueType":"bool"}],"allowColorForValueInMessage":false,"shape":"circle","showGlow":true,"name":"","x":1080,"y":260,"wires":[]},{"id":"9b04f9cba4bdae68","type":"function","z":"ccb6453dbc18dd63","name":"","func":"msg.payload=msg.payload.data[3];\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":890,"y":340,"wires":[["5940e95141d44b98","d4d5f18a441710dd"]]},{"id":"d4d5f18a441710dd","type":"ui_led","z":"ccb6453dbc18dd63","order":9,"group":"ee05315959ee87af","width":1,"height":1,"label":"","labelPlacement":"left","labelAlignment":"left","colorForValue":[{"color":"#ff0000","value":"false","valueType":"bool"},{"color":"#008000","value":"true","valueType":"bool"}],"allowColorForValueInMessage":false,"shape":"circle","showGlow":true,"name":"","x":1080,"y":340,"wires":[]},{"id":"5940e95141d44b98","type":"debug","z":"ccb6453dbc18dd63","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":1090,"y":300,"wires":[]},{"id":"3276d4357312f85a","type":"function","z":"ccb6453dbc18dd63","name":"","func":"msg.payload=msg.payload.data[4];\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":890,"y":420,"wires":[["504319ef0232d4e1","4aed4a15612da5f6"]]},{"id":"504319ef0232d4e1","type":"debug","z":"ccb6453dbc18dd63","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":1090,"y":380,"wires":[]},{"id":"4aed4a15612da5f6","type":"ui_led","z":"ccb6453dbc18dd63","order":11,"group":"ee05315959ee87af","width":1,"height":1,"label":"","labelPlacement":"left","labelAlignment":"left","colorForValue":[{"color":"#ff0000","value":"false","valueType":"bool"},{"color":"#008000","value":"true","valueType":"bool"}],"allowColorForValueInMessage":false,"shape":"circle","showGlow":true,"name":"","x":1080,"y":420,"wires":[]},{"id":"1cc4348c3a6a2c59","type":"function","z":"ccb6453dbc18dd63","name":"","func":"msg.payload=msg.payload.data[5];\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":890,"y":500,"wires":[["b961bc491e849997","1432709e26ba7875"]]},{"id":"1432709e26ba7875","type":"ui_led","z":"ccb6453dbc18dd63","order":12,"group":"ee05315959ee87af","width":1,"height":1,"label":"","labelPlacement":"left","labelAlignment":"left","colorForValue":[{"color":"#ff0000","value":"false","valueType":"bool"},{"color":"#008000","value":"true","valueType":"bool"}],"allowColorForValueInMessage":false,"shape":"circle","showGlow":true,"name":"","x":1080,"y":500,"wires":[]},{"id":"b961bc491e849997","type":"debug","z":"ccb6453dbc18dd63","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":1090,"y":460,"wires":[]},{"id":"20473a4d09604ebc","type":"debug","z":"ccb6453dbc18dd63","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":1090,"y":60,"wires":[]},{"id":"b7269a6a7cfe3d45","type":"debug","z":"ccb6453dbc18dd63","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":890,"y":40,"wires":[]},{"id":"aeddf07984642288","type":"function","z":"ccb6453dbc18dd63","name":"","func":"msg.payload=msg.payload.data[8];\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":310,"y":760,"wires":[["25f5f4130256a469","68d79e82c82d4faa"]]},{"id":"25f5f4130256a469","type":"debug","z":"ccb6453dbc18dd63","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":510,"y":720,"wires":[]},{"id":"68d79e82c82d4faa","type":"ui_led","z":"ccb6453dbc18dd63","order":9,"group":"bcc80421681f5ec7","width":1,"height":1,"label":"","labelPlacement":"left","labelAlignment":"right","colorForValue":[{"color":"#ff0000","value":"false","valueType":"bool"},{"color":"#008000","value":"true","valueType":"bool"}],"allowColorForValueInMessage":false,"shape":"square","showGlow":true,"name":"","x":500,"y":760,"wires":[]},{"id":"fcc30500a80afb8e","type":"function","z":"ccb6453dbc18dd63","name":"","func":"msg.payload=msg.payload.data[9];\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":310,"y":840,"wires":[["97ac6eeef621a35c","bd948460dd13fd47"]]},{"id":"bd948460dd13fd47","type":"ui_led","z":"ccb6453dbc18dd63","order":10,"group":"bcc80421681f5ec7","width":1,"height":1,"label":"","labelPlacement":"left","labelAlignment":"right","colorForValue":[{"color":"#ff0000","value":"false","valueType":"bool"},{"color":"#008000","value":"true","valueType":"bool"}],"allowColorForValueInMessage":false,"shape":"square","showGlow":true,"name":"","x":500,"y":840,"wires":[]},{"id":"97ac6eeef621a35c","type":"debug","z":"ccb6453dbc18dd63","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":510,"y":800,"wires":[]},{"id":"4302637915b254ae","type":"function","z":"ccb6453dbc18dd63","name":"","func":"msg.payload=msg.payload.data[10];\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":310,"y":920,"wires":[["292f9a45b99eefb5","c9ad53f97c342312"]]},{"id":"292f9a45b99eefb5","type":"debug","z":"ccb6453dbc18dd63","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":510,"y":880,"wires":[]},{"id":"c9ad53f97c342312","type":"ui_led","z":"ccb6453dbc18dd63","order":11,"group":"bcc80421681f5ec7","width":1,"height":1,"label":"","labelPlacement":"left","labelAlignment":"right","colorForValue":[{"color":"#ff0000","value":"false","valueType":"bool"},{"color":"#008000","value":"true","valueType":"bool"}],"allowColorForValueInMessage":false,"shape":"square","showGlow":true,"name":"","x":500,"y":920,"wires":[]},{"id":"d261dccb76ef4f3e","type":"function","z":"ccb6453dbc18dd63","name":"","func":"msg.payload=msg.payload.data[11];\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":310,"y":1000,"wires":[["60bfb93308bedfd7","9deb78f6bf1df47b"]]},{"id":"9deb78f6bf1df47b","type":"ui_led","z":"ccb6453dbc18dd63","order":12,"group":"bcc80421681f5ec7","width":1,"height":1,"label":"","labelPlacement":"left","labelAlignment":"right","colorForValue":[{"color":"#ff0000","value":"false","valueType":"bool"},{"color":"#008000","value":"true","valueType":"bool"}],"allowColorForValueInMessage":false,"shape":"square","showGlow":true,"name":"","x":500,"y":1000,"wires":[]},{"id":"60bfb93308bedfd7","type":"debug","z":"ccb6453dbc18dd63","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":510,"y":960,"wires":[]},{"id":"cc65aaf2b6935c1b","type":"modbus-getter","z":"ccb6453dbc18dd63","name":"","showStatusActivities":false,"showErrors":false,"showWarnings":true,"logIOActivities":false,"unitid":"1","dataType":"Coil","adr":"0","quantity":"12","server":"1c26a972471ee33a","useIOFile":false,"ioFile":"","useIOForPayload":false,"emptyMsgOnFail":false,"keepMsgProperties":false,"delayOnStart":false,"startDelayTime":"","x":100,"y":260,"wires":[[],["af332d4bcc960a96","8b4a7dc4777d8336"]]},{"id":"45a7b321f68c7c55","type":"inject","z":"ccb6453dbc18dd63","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"5","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":120,"y":160,"wires":[["cc65aaf2b6935c1b"]]},{"id":"af332d4bcc960a96","type":"link out","z":"ccb6453dbc18dd63","name":"link out 55","mode":"link","links":["28472598c64f374e","70c9642fc79fe7fd","890acd4fb10a758a"],"x":125,"y":360,"wires":[]},{"id":"70c9642fc79fe7fd","type":"link in","z":"ccb6453dbc18dd63","name":"link in 49","links":["af332d4bcc960a96"],"x":195,"y":220,"wires":[["5e0c43458daab19e","0c83c8edb1f39c89","0ab4cc152a51b57f","75158d2acc30c8d1"]]},{"id":"28472598c64f374e","type":"link in","z":"ccb6453dbc18dd63","name":"link in 50","links":["af332d4bcc960a96"],"x":145,"y":480,"wires":[["e37a29188cb33622","3fba559024265d72","f8eb4fa9e1e9d628","75720321edfb9d9e"]]},{"id":"890acd4fb10a758a","type":"link in","z":"ccb6453dbc18dd63","name":"link in 51","links":["af332d4bcc960a96"],"x":165,"y":880,"wires":[["aeddf07984642288","fcc30500a80afb8e","4302637915b254ae","d261dccb76ef4f3e"]]},{"id":"1c26a972471ee33a","type":"modbus-client","name":"ADAM6050","clienttype":"tcp","bufferCommands":true,"stateLogEnabled":true,"queueLogEnabled":false,"failureLogEnabled":false,"tcpHost":"192.168.1.152","tcpPort":"502","tcpType":"DEFAULT","serialPort":"/dev/ttyUSB","serialType":"RTU-BUFFERD","serialBaudrate":"9600","serialDatabits":"8","serialStopbits":"1","serialParity":"none","serialConnectionDelay":"100","serialAsciiResponseStartDelimiter":"","unit_id":"1","commandDelay":"1","clientTimeout":"1000","reconnectOnTimeout":true,"reconnectTimeout":"2000","parallelUnitIdsAllowed":true},{"id":"bcc80421681f5ec7","type":"ui_group","name":"DI0-DI5","tab":"0d29bd50275acb40","order":2,"disp":true,"width":"6","collapse":false,"className":""},{"id":"ee05315959ee87af","type":"ui_group","name":"DO0-DO11","tab":"0d29bd50275acb40","order":2,"disp":true,"width":"6","collapse":false,"className":""},{"id":"0d29bd50275acb40","type":"ui_tab","name":"Home","icon":"dashboard","disabled":false,"hidden":false}]

沒有留言:

張貼留言

2024_09 作業3 以Node-Red 為主

 2024_09 作業3  (以Node-Red 為主  Arduino 可能需要配合修改 ) Arduino 可能需要修改的部分 1)mqtt broker  2) 主題Topic (發行 接收) 3) WIFI ssid , password const char br...