Modbus TCP/IP to Blockbax

Example flow on how to read out Modbus TCP/IP and connect it to the Blockbax nodes

[{"id":"f9eeea9.93a5018","type":"tab","label":"Flow 1","disabled":false,"info":""},{"id":"77929dc7.36b884","type":"modbus-read","z":"f9eeea9.93a5018","name":"","topic":"","showStatusActivities":false,"logIOActivities":false,"showErrors":false,"unitid":"","dataType":"HoldingRegister","adr":"1","quantity":"2","rate":"10","rateUnit":"s","delayOnStart":true,"startDelayTime":"10","server":"196e8579.f6cc9b","useIOFile":false,"ioFile":"","useIOForPayload":false,"emptyMsgOnFail":false,"x":230,"y":320,"wires":[["73c93b72.a2da54","2904d996.a41e06"],["bc3c990a.ad29c8"]]},{"id":"bc3c990a.ad29c8","type":"modbus-response","z":"f9eeea9.93a5018","name":"","registerShowMax":20,"x":410,"y":360,"wires":[]},{"id":"73c93b72.a2da54","type":"Parse","z":"f9eeea9.93a5018","name":"","useIngestionId":true,"ingestionIdType":"str","ingestionId":"ingestionId1","metricExternalIdType":"str","metricExternalId":"metricExternalId","value":"payload[0]","dateType":"GEN","date":"true","x":430,"y":260,"wires":[["ff06d558.20ff98"]]},{"id":"2904d996.a41e06","type":"Parse","z":"f9eeea9.93a5018","name":"","useIngestionId":true,"ingestionIdType":"str","ingestionId":"ingestionId2","metricExternalIdType":"str","metricExternalId":"metricExternalId","value":"payload[1]","dateType":"GEN","date":"true","x":430,"y":300,"wires":[["ff06d558.20ff98"]]},{"id":"ff06d558.20ff98","type":"Send","z":"f9eeea9.93a5018","name":"","project":"cea5f4ed.12d2e8","senderType":"MQTT","batchPeriod":0,"batchPeriodUnit":"S","x":620,"y":300,"wires":[]},{"id":"196e8579.f6cc9b","type":"modbus-client","z":"","name":"test-server","clienttype":"tcp","bufferCommands":false,"stateLogEnabled":false,"queueLogEnabled":false,"tcpHost":"172.19.0.2","tcpPort":"5020","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":"cea5f4ed.12d2e8","type":"Project","z":"","name":"Test Project","useEnvVar":false,"projectId":"","accessTokenPublicId":"","accessTokenSecret":""}]

Flow Info

Created 3 years, 7 months ago
Rating: not yet rated

Owner

Actions

Rate:

Node Types

Other
  • Parse (x2)
  • Project (x1)
  • Send (x1)
  • modbus-client (x1)
  • modbus-read (x1)
  • modbus-response (x1)
  • tab (x1)

Tags

Copy this flow JSON to your clipboard and then import into Node-RED using the Import From > Clipboard (Ctrl-I) menu option