Delta PLC Remote IO via Modbus TCP

This is a flow to read and write to Delta dvp12se plc via modbus tcp FC:1 FC:2 FC:3 FC:4 FC:5 FC:6 delta dvp modbus addresses can be found in "dvp-plc application manual" on delta's website node-red-contrib-modbus needed node-red-dashboard needed

[{"id":"b25bb5b8.fbec98","type":"tab","label":"DVP-12SE-Modbus-Remote-IO","disabled":false,"info":"Modbus serverIP address:192.168.0.24 port 502, you have to use yours\nPLC bits and coils: M, X, Y.\nPLC registers: D, T, C.\nFunctions: FC1, FC2, FC3."},{"id":"6fe12b68.47bf44","type":"modbus-read","z":"b25bb5b8.fbec98","name":"Read m0 status","topic":"","showStatusActivities":true,"showErrors":true,"unitid":"1","dataType":"Coil","adr":"2048","quantity":"1","rate":"500","rateUnit":"ms","delayOnStart":false,"startDelayTime":"","server":"798e3124.c0ca8","useIOFile":false,"ioFile":"","useIOForPayload":false,"x":188,"y":72,"wires":[[],["c7aa89f6.b2cf28"]]},{"id":"4140c5de.bb243c","type":"modbus-read","z":"b25bb5b8.fbec98","name":"read d0 register","topic":"","showStatusActivities":true,"showErrors":true,"unitid":"1","dataType":"HoldingRegister","adr":"4096","quantity":"1","rate":"500","rateUnit":"ms","delayOnStart":false,"startDelayTime":"","server":"798e3124.c0ca8","useIOFile":false,"ioFile":"","useIOForPayload":false,"x":179,"y":188,"wires":[["d867564b.fe4788"],["5c90caf0.0583b4"]]},{"id":"b09cc715.40ca28","type":"modbus-read","z":"b25bb5b8.fbec98","name":"read x0 input","topic":"","showStatusActivities":true,"showErrors":true,"unitid":"1","dataType":"Input","adr":"1024","quantity":"1","rate":"500","rateUnit":"ms","delayOnStart":false,"startDelayTime":"","server":"798e3124.c0ca8","useIOFile":false,"ioFile":"","useIOForPayload":false,"x":182,"y":316,"wires":[[],["a0adedf0.e08fc"]]},{"id":"723a21f5.9a60f","type":"modbus-read","z":"b25bb5b8.fbec98","name":"read c0 counter register","topic":"","showStatusActivities":true,"showErrors":true,"unitid":"1","dataType":"HoldingRegister","adr":"3584","quantity":"1","rate":"500","rateUnit":"ms","delayOnStart":false,"startDelayTime":"","server":"798e3124.c0ca8","useIOFile":false,"ioFile":"","useIOForPayload":false,"x":178,"y":420,"wires":[["4f5f684a.3f3b08"],["fd55c22b.a315"]]},{"id":"4608bc6c.6702a4","type":"modbus-read","z":"b25bb5b8.fbec98","name":"read t0 timer register","topic":"","showStatusActivities":true,"showErrors":true,"unitid":"1","dataType":"HoldingRegister","adr":"1536","quantity":"1","rate":"500","rateUnit":"ms","delayOnStart":false,"startDelayTime":"","server":"798e3124.c0ca8","useIOFile":false,"ioFile":"","useIOForPayload":false,"x":175,"y":544,"wires":[["c0661d49.f2895"],["3b7a0564.bf894a"]]},{"id":"c7aa89f6.b2cf28","type":"modbus-response","z":"b25bb5b8.fbec98","name":"","registerShowMax":20,"x":456,"y":57,"wires":[]},{"id":"5c90caf0.0583b4","type":"modbus-response","z":"b25bb5b8.fbec98","name":"","registerShowMax":20,"x":457,"y":169,"wires":[]},{"id":"a0adedf0.e08fc","type":"modbus-response","z":"b25bb5b8.fbec98","name":"","registerShowMax":20,"x":452,"y":302,"wires":[]},{"id":"fd55c22b.a315","type":"modbus-response","z":"b25bb5b8.fbec98","name":"","registerShowMax":20,"x":453,"y":382,"wires":[]},{"id":"3b7a0564.bf894a","type":"modbus-response","z":"b25bb5b8.fbec98","name":"","registerShowMax":20,"x":448,"y":513,"wires":[]},{"id":"fc5a225f.d2f85","type":"modbus-write","z":"b25bb5b8.fbec98","name":"write y0 coil","showStatusActivities":true,"showErrors":true,"unitid":"1","dataType":"Coil","adr":"1280","quantity":"1","server":"798e3124.c0ca8","x":423,"y":625,"wires":[[],[]]},{"id":"41398fb6.fd016","type":"modbus-write","z":"b25bb5b8.fbec98","name":"write m0 bit","showStatusActivities":true,"showErrors":true,"unitid":"1","dataType":"Coil","adr":"2048","quantity":"1","server":"798e3124.c0ca8","x":425,"y":697,"wires":[[],[]]},{"id":"daaa3edc.3bea3","type":"modbus-write","z":"b25bb5b8.fbec98","name":"write d0 register","showStatusActivities":true,"showErrors":true,"unitid":"1","dataType":"HoldingRegister","adr":"4096","quantity":"1","server":"798e3124.c0ca8","x":430,"y":769,"wires":[[],[]]},{"id":"70f9998c.c5dd38","type":"ui_numeric","z":"b25bb5b8.fbec98","name":"","label":"d0 value","group":"45be09fc.842b38","order":0,"width":0,"height":0,"passthru":true,"topic":"","format":"{{value}}","min":0,"max":"1000","step":1,"x":190,"y":775,"wires":[["daaa3edc.3bea3"]]},{"id":"5ec04dcd.4da3b4","type":"ui_switch","z":"b25bb5b8.fbec98","name":"","label":"switch m0","group":"45be09fc.842b38","order":0,"width":0,"height":0,"passthru":true,"decouple":"false","topic":"","style":"","onvalue":"true","onvalueType":"bool","onicon":"","oncolor":"","offvalue":"false","offvalueType":"bool","officon":"","offcolor":"","x":151,"y":692,"wires":[["41398fb6.fd016"]]},{"id":"22f5a218.e0293e","type":"ui_switch","z":"b25bb5b8.fbec98","name":"","label":"switch y0","group":"45be09fc.842b38","order":0,"width":0,"height":0,"passthru":true,"decouple":"false","topic":"","style":"","onvalue":"true","onvalueType":"bool","onicon":"","oncolor":"","offvalue":"false","offvalueType":"bool","officon":"","offcolor":"","x":144,"y":620,"wires":[["fc5a225f.d2f85"]]},{"id":"d867564b.fe4788","type":"ui_gauge","z":"b25bb5b8.fbec98","name":"","group":"45be09fc.842b38","order":0,"width":0,"height":0,"gtype":"gage","title":"D0 value","label":"units","format":"{{value}}","min":0,"max":"1000","colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","x":456,"y":226,"wires":[]},{"id":"c0661d49.f2895","type":"ui_gauge","z":"b25bb5b8.fbec98","name":"","group":"45be09fc.842b38","order":0,"width":0,"height":0,"gtype":"gage","title":"t0 value","label":"units","format":"{{value}}","min":0,"max":"1000","colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","x":443,"y":562,"wires":[]},{"id":"4f5f684a.3f3b08","type":"ui_gauge","z":"b25bb5b8.fbec98","name":"","group":"45be09fc.842b38","order":0,"width":0,"height":0,"gtype":"gage","title":"c0 value","label":"units","format":"{{value}}","min":0,"max":10,"colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","x":460,"y":448,"wires":[]},{"id":"798e3124.c0ca8","type":"modbus-client","z":"","name":"modbus TCP client","clienttype":"tcp","bufferCommands":true,"stateLogEnabled":false,"tcpHost":"192.168.0.24","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":"1000","reconnectTimeout":"2000"},{"id":"45be09fc.842b38","type":"ui_group","z":"","name":"Server","tab":"80f737c5.0293f8","disp":true,"width":"6","collapse":false},{"id":"80f737c5.0293f8","type":"ui_tab","z":"","name":"Home","icon":"dashboard"}]

Flow Info

Created 6 years, 8 months ago
Updated 5 years, 11 months ago
Rating: not yet rated

Actions

Rate:

Node Types

Other
  • modbus-client (x1)
  • modbus-read (x5)
  • modbus-response (x5)
  • modbus-write (x3)
  • tab (x1)
  • ui_gauge (x3)
  • ui_group (x1)
  • ui_numeric (x1)
  • ui_switch (x2)
  • ui_tab (x1)

Tags

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