Read Holding Register, Input Register, Coil Status, Input Coil Status of Modbus Serial/RTU/RS485 Device in Node-RED
Read Holding Register, Input Register, Coil Status, Input Coil Status of Modbus Serial/RTU/RS485 Device in Node-RED
Note: Please Enable the Nodes as per your requirement and Edit the Modbus TCP Server Configuration for Connection.
YouTube Tutorial
- How to Read Holding Register Data of Modbus Serial/RTU/RS485 Device in Node-RED
- How to Read Input Register Data of Modbus Serial/RTU/RS485 Device in Node-RED
- How to Read Coil Status of Modbus Serial/RTU/RS485 Device in Node-RED
- How to Read Input Coil Status of Modbus Serial/RTU/RS485 Device in Node-RED
[{"id":"982c148a835a03de","type":"tab","label":"Modbus Serial/RTU/RS485 Read HR-IR-Coil-Input_Status","disabled":false,"info":"","env":[]},{"id":"2aac70b3d966fe84","type":"modbus-read","z":"982c148a835a03de","d":true,"name":"Read HR","topic":"","showStatusActivities":false,"logIOActivities":false,"showErrors":false,"showWarnings":true,"unitid":"1","dataType":"HoldingRegister","adr":"0","quantity":"10","rate":"1","rateUnit":"s","delayOnStart":false,"startDelayTime":"","server":"989c5dc5192e7b69","useIOFile":false,"ioFile":"","useIOForPayload":false,"emptyMsgOnFail":false,"x":160,"y":120,"wires":[["ffcdf7599b336ea5","d66260dddbf684df","7a4d57d9bedab6de"],[]]},{"id":"ffcdf7599b336ea5","type":"debug","z":"982c148a835a03de","d":true,"name":"debug 45","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":380,"y":60,"wires":[]},{"id":"d66260dddbf684df","type":"debug","z":"982c148a835a03de","d":true,"name":"debug 46","active":true,"tosidebar":false,"console":false,"tostatus":true,"complete":"payload[0]","targetType":"msg","statusVal":"payload[0]","statusType":"auto","x":380,"y":120,"wires":[]},{"id":"7a4d57d9bedab6de","type":"debug","z":"982c148a835a03de","d":true,"name":"debug 47","active":true,"tosidebar":false,"console":false,"tostatus":true,"complete":"payload[9]","targetType":"msg","statusVal":"payload","statusType":"auto","x":380,"y":180,"wires":[]},{"id":"4ba3c4cf12f47c7d","type":"debug","z":"982c148a835a03de","d":true,"name":"debug 48","active":true,"tosidebar":false,"console":false,"tostatus":true,"complete":"payload[9]","targetType":"msg","statusVal":"payload","statusType":"auto","x":380,"y":380,"wires":[]},{"id":"12f0362fbc882b19","type":"modbus-read","z":"982c148a835a03de","d":true,"name":"Read IR","topic":"","showStatusActivities":false,"logIOActivities":false,"showErrors":false,"showWarnings":true,"unitid":"1","dataType":"InputRegister","adr":"0","quantity":"10","rate":"1","rateUnit":"s","delayOnStart":false,"startDelayTime":"","server":"989c5dc5192e7b69","useIOFile":false,"ioFile":"","useIOForPayload":false,"emptyMsgOnFail":false,"x":160,"y":320,"wires":[["88a2a58114a2ac40","d5b0be4f2709f641","4ba3c4cf12f47c7d"],[]]},{"id":"88a2a58114a2ac40","type":"debug","z":"982c148a835a03de","d":true,"name":"debug 49","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":380,"y":260,"wires":[]},{"id":"d5b0be4f2709f641","type":"debug","z":"982c148a835a03de","d":true,"name":"debug 50","active":true,"tosidebar":false,"console":false,"tostatus":true,"complete":"payload[0]","targetType":"msg","statusVal":"payload[0]","statusType":"auto","x":380,"y":320,"wires":[]},{"id":"fc4216efb7190c05","type":"debug","z":"982c148a835a03de","d":true,"name":"debug 51","active":true,"tosidebar":false,"console":false,"tostatus":true,"complete":"payload[7]","targetType":"msg","statusVal":"payload","statusType":"auto","x":380,"y":560,"wires":[]},{"id":"071fbeadeefb5835","type":"modbus-read","z":"982c148a835a03de","d":true,"name":"Read Coil","topic":"","showStatusActivities":false,"logIOActivities":false,"showErrors":false,"showWarnings":true,"unitid":"1","dataType":"Coil","adr":"0","quantity":"8","rate":"1","rateUnit":"s","delayOnStart":false,"startDelayTime":"","server":"989c5dc5192e7b69","useIOFile":false,"ioFile":"","useIOForPayload":false,"emptyMsgOnFail":false,"x":160,"y":500,"wires":[["444edee0214beea0","21b68f0aa2b66aa7","fc4216efb7190c05"],[]]},{"id":"444edee0214beea0","type":"debug","z":"982c148a835a03de","d":true,"name":"debug 52","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":380,"y":440,"wires":[]},{"id":"21b68f0aa2b66aa7","type":"debug","z":"982c148a835a03de","d":true,"name":"debug 53","active":true,"tosidebar":false,"console":false,"tostatus":true,"complete":"payload[0]","targetType":"msg","statusVal":"payload[0]","statusType":"auto","x":380,"y":500,"wires":[]},{"id":"4019332f9b6dcd1e","type":"debug","z":"982c148a835a03de","d":true,"name":"debug 54","active":true,"tosidebar":false,"console":false,"tostatus":true,"complete":"payload[7]","targetType":"msg","statusVal":"payload","statusType":"auto","x":380,"y":740,"wires":[]},{"id":"2ab4b96c27aad0e4","type":"modbus-read","z":"982c148a835a03de","d":true,"name":"Read Input Coil Status","topic":"","showStatusActivities":false,"logIOActivities":false,"showErrors":false,"showWarnings":true,"unitid":"1","dataType":"Input","adr":"0","quantity":"8","rate":"1","rateUnit":"s","delayOnStart":false,"startDelayTime":"","server":"989c5dc5192e7b69","useIOFile":false,"ioFile":"","useIOForPayload":false,"emptyMsgOnFail":false,"x":180,"y":680,"wires":[["81882da14c853fed","d4f22a65f8ea62fb","4019332f9b6dcd1e"],[]]},{"id":"81882da14c853fed","type":"debug","z":"982c148a835a03de","d":true,"name":"debug 55","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":380,"y":620,"wires":[]},{"id":"d4f22a65f8ea62fb","type":"debug","z":"982c148a835a03de","d":true,"name":"debug 56","active":true,"tosidebar":false,"console":false,"tostatus":true,"complete":"payload[0]","targetType":"msg","statusVal":"payload[0]","statusType":"auto","x":380,"y":680,"wires":[]},{"id":"989c5dc5192e7b69","type":"modbus-client","name":"Node-RED Modbus Serial Master","clienttype":"serial","bufferCommands":true,"stateLogEnabled":false,"queueLogEnabled":false,"failureLogEnabled":true,"tcpHost":"127.0.0.1","tcpPort":"502","tcpType":"DEFAULT","serialPort":"COM2","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,"showErrors":false,"showWarnings":true,"showLogs":true}]