node-red-contrib-modbus example flow

Example flow from GitHub readme v0.11.27 or v1.0.0 and above

[
    {
        "id": "b245d3e4.b52de",
        "type": "tab",
        "label": "Modbus"
    },
    {
        "id": "aa7f695c.f1bf38",
        "type": "debug",
        "z": "b245d3e4.b52de",
        "name": "",
        "active": false,
        "console": "false",
        "complete": "false",
        "x": 710,
        "y": 1040,
        "wires": []
    },
    {
        "id": "f585de88.ec92",
        "type": "debug",
        "z": "b245d3e4.b52de",
        "name": "",
        "active": false,
        "console": "false",
        "complete": "false",
        "x": 707,
        "y": 1129,
        "wires": []
    },
    {
        "id": "ff94826d.e4424",
        "type": "debug",
        "z": "b245d3e4.b52de",
        "name": "",
        "active": false,
        "console": "false",
        "complete": "false",
        "x": 710,
        "y": 700,
        "wires": []
    },
    {
        "id": "fd530e0f.76fa1",
        "type": "debug",
        "z": "b245d3e4.b52de",
        "name": "",
        "active": false,
        "console": "false",
        "complete": "false",
        "x": 710,
        "y": 740,
        "wires": []
    },
    {
        "id": "a40fb0ba.3b7c4",
        "type": "modbus-write",
        "z": "b245d3e4.b52de",
        "name": "Write Reset FC5",
        "showStatusActivities": false,
        "dataType": "Coil",
        "adr": "64",
        "quantity": "1",
        "server": "f40a5dd6.bcceb",
        "x": 419,
        "y": 990,
        "wires": [
            [
                "c495caaf.de6bc8"
            ],
            [
                "6a77aafa.1c9974"
            ]
        ]
    },
    {
        "id": "d426412a.e3164",
        "type": "inject",
        "z": "b245d3e4.b52de",
        "name": "",
        "topic": "",
        "payload": "true",
        "payloadType": "bool",
        "repeat": "1",
        "crontab": "",
        "once": false,
        "x": 230,
        "y": 980,
        "wires": [
            [
                "a40fb0ba.3b7c4"
            ]
        ]
    },
    {
        "id": "c495caaf.de6bc8",
        "type": "debug",
        "z": "b245d3e4.b52de",
        "name": "",
        "active": false,
        "console": "false",
        "complete": "false",
        "x": 710,
        "y": 940,
        "wires": []
    },
    {
        "id": "6a77aafa.1c9974",
        "type": "modbus-response",
        "z": "b245d3e4.b52de",
        "name": "",
        "registerShowMax": 20,
        "x": 730,
        "y": 980,
        "wires": []
    },
    {
        "id": "b6f40816.55e6c8",
        "type": "modbus-response",
        "z": "b245d3e4.b52de",
        "name": "",
        "registerShowMax": "10",
        "x": 730,
        "y": 780,
        "wires": []
    },
    {
        "id": "dec9b7c.9c69e48",
        "type": "inject",
        "z": "b245d3e4.b52de",
        "name": "",
        "topic": "",
        "payload": "false",
        "payloadType": "bool",
        "repeat": "1",
        "crontab": "",
        "once": false,
        "x": 230,
        "y": 1020,
        "wires": [
            [
                "a40fb0ba.3b7c4"
            ]
        ]
    },
    {
        "id": "2dc44635.ae94fa",
        "type": "modbus-read",
        "z": "b245d3e4.b52de",
        "name": "Automatic Read FC3",
        "showStatusActivities": false,
        "dataType": "HoldingRegister",
        "adr": "0",
        "quantity": "10",
        "rate": "10",
        "rateUnit": "s",
        "server": "f40a5dd6.bcceb",
        "x": 430,
        "y": 860,
        "wires": [
            [
                "1f3c74c2.115eab"
            ],
            [
                "ec27418e.7387a"
            ]
        ]
    },
    {
        "id": "ec27418e.7387a",
        "type": "modbus-response",
        "z": "b245d3e4.b52de",
        "name": "",
        "registerShowMax": "20",
        "x": 730,
        "y": 880,
        "wires": []
    },
    {
        "id": "1f3c74c2.115eab",
        "type": "debug",
        "z": "b245d3e4.b52de",
        "name": "",
        "active": false,
        "console": "false",
        "complete": "false",
        "x": 710,
        "y": 840,
        "wires": []
    },
    {
        "id": "79a54c6d.9b75d4",
        "type": "modbus-getter",
        "z": "b245d3e4.b52de",
        "name": "Half-Automatic Getter FC4",
        "showStatusActivities": false,
        "unitid": "",
        "dataType": "InputRegister",
        "adr": "0",
        "quantity": "10",
        "server": "f40a5dd6.bcceb",
        "x": 460,
        "y": 740,
        "wires": [
            [
                "ff94826d.e4424"
            ],
            [
                "b6f40816.55e6c8"
            ],
            [
                "fd530e0f.76fa1"
            ]
        ]
    },
    {
        "id": "fcfba97.e1fe758",
        "type": "modbus-getter",
        "z": "b245d3e4.b52de",
        "name": "Manual Getter FC3",
        "showStatusActivities": false,
        "dataType": "HoldingRegister",
        "adr": "0",
        "quantity": "10",
        "server": "f40a5dd6.bcceb",
        "x": 430,
        "y": 1140,
        "wires": [
            [
                "aa7f695c.f1bf38"
            ],
            [
                "b08a7fc2.d59d8"
            ],
            [
                "f585de88.ec92"
            ]
        ]
    },
    {
        "id": "b08a7fc2.d59d8",
        "type": "modbus-response",
        "z": "b245d3e4.b52de",
        "name": "",
        "registerShowMax": "20",
        "x": 733,
        "y": 1078,
        "wires": []
    },
    {
        "id": "486b3179.3e43d",
        "type": "inject",
        "z": "b245d3e4.b52de",
        "name": "Get!",
        "topic": "",
        "payload": "",
        "payloadType": "date",
        "repeat": "2",
        "crontab": "",
        "once": false,
        "x": 230,
        "y": 1140,
        "wires": [
            [
                "fcfba97.e1fe758"
            ]
        ]
    },
    {
        "id": "92e02a6e.462148",
        "type": "inject",
        "z": "b245d3e4.b52de",
        "name": "Get every second",
        "topic": "",
        "payload": "",
        "payloadType": "date",
        "repeat": "1",
        "crontab": "",
        "once": false,
        "x": 170,
        "y": 740,
        "wires": [
            [
                "79a54c6d.9b75d4"
            ]
        ]
    },
    {
        "id": "efd9f6ec.8698f8",
        "type": "modbus-flex-write",
        "z": "b245d3e4.b52de",
        "name": "",
        "showStatusActivities": false,
        "server": "83b1adaf.77ca1",
        "x": 730,
        "y": 400,
        "wires": [
            [
                "6b0486a0.925cb8"
            ],
            [
                "41ea86c1.6d6578"
            ]
        ]
    },
    {
        "id": "41ea86c1.6d6578",
        "type": "modbus-response",
        "z": "b245d3e4.b52de",
        "name": "",
        "registerShowMax": 20,
        "x": 1050,
        "y": 380,
        "wires": []
    },
    {
        "id": "ffb0319b.56902",
        "type": "inject",
        "z": "b245d3e4.b52de",
        "name": "Write multiple!",
        "topic": "",
        "payload": "[1,2,3,4,5,6,7,8,9,10]",
        "payloadType": "json",
        "repeat": "",
        "crontab": "",
        "once": false,
        "x": 150,
        "y": 340,
        "wires": [
            [
                "fe6c4b63.df4d68"
            ]
        ]
    },
    {
        "id": "6b0486a0.925cb8",
        "type": "debug",
        "z": "b245d3e4.b52de",
        "name": "",
        "active": false,
        "console": "false",
        "complete": "false",
        "x": 1030,
        "y": 340,
        "wires": []
    },
    {
        "id": "68042dd8.05e4c4",
        "type": "modbus-response",
        "z": "b245d3e4.b52de",
        "name": "",
        "registerShowMax": "5",
        "x": 1050,
        "y": 620,
        "wires": []
    },
    {
        "id": "adca481f.40b6b8",
        "type": "debug",
        "z": "b245d3e4.b52de",
        "name": "",
        "active": false,
        "console": "false",
        "complete": "false",
        "x": 1030,
        "y": 580,
        "wires": []
    },
    {
        "id": "384aabaa.157cb4",
        "type": "inject",
        "z": "b245d3e4.b52de",
        "name": "Get flexible!",
        "topic": "",
        "payload": "",
        "payloadType": "date",
        "repeat": "",
        "crontab": "",
        "once": false,
        "x": 150,
        "y": 620,
        "wires": [
            [
                "e309a0b3.191bd"
            ]
        ]
    },
    {
        "id": "e309a0b3.191bd",
        "type": "function",
        "z": "b245d3e4.b52de",
        "name": "Read 0-9 on Unit 1 FC3",
        "func": "msg.payload = { input: msg.payload, 'fc': 3, 'unitid': 1, 'address': 0 , 'quantity': 10 }\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "x": 450,
        "y": 620,
        "wires": [
            [
                "e9881aee.c17a28"
            ]
        ]
    },
    {
        "id": "fe6c4b63.df4d68",
        "type": "function",
        "z": "b245d3e4.b52de",
        "name": "Write 0-9 on Unit 1 FC15",
        "func": "msg.payload = { value: msg.payload, 'fc': 15, 'unitid': 1, 'address': 0 , 'quantity': 10 };\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "x": 450,
        "y": 360,
        "wires": [
            [
                "efd9f6ec.8698f8"
            ]
        ]
    },
    {
        "id": "e4f6346c.3bd298",
        "type": "function",
        "z": "b245d3e4.b52de",
        "name": "Read 10-18 on Unit 1 FC3",
        "func": "msg.payload = { input: msg.payload, 'fc': 3, 'unitid': 1, 'address': 10 , 'quantity': 8 }\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "x": 460,
        "y": 660,
        "wires": [
            [
                "e9881aee.c17a28"
            ]
        ]
    },
    {
        "id": "df1fec0c.2da84",
        "type": "function",
        "z": "b245d3e4.b52de",
        "name": "Write 10-18 on Unit 1 FC15",
        "func": "msg.payload = { value: msg.payload, 'fc': 15, 'unitid': 1, 'address': 10 , 'quantity': 9 };\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "x": 460,
        "y": 400,
        "wires": [
            [
                "efd9f6ec.8698f8"
            ]
        ]
    },
    {
        "id": "41d2ae96.73447",
        "type": "inject",
        "z": "b245d3e4.b52de",
        "name": "Get flexible!",
        "topic": "",
        "payload": "",
        "payloadType": "date",
        "repeat": "",
        "crontab": "",
        "once": false,
        "x": 150,
        "y": 660,
        "wires": [
            [
                "e4f6346c.3bd298"
            ]
        ]
    },
    {
        "id": "756b3feb.80035",
        "type": "inject",
        "z": "b245d3e4.b52de",
        "name": "Write wrong multiple!",
        "topic": "",
        "payload": "[1,2,3,4,5,6,7,8,9,10]",
        "payloadType": "json",
        "repeat": "",
        "crontab": "",
        "once": false,
        "x": 180,
        "y": 380,
        "wires": [
            [
                "df1fec0c.2da84"
            ]
        ]
    },
    {
        "id": "7c51a19a.c8593",
        "type": "catch",
        "z": "b245d3e4.b52de",
        "name": "",
        "scope": null,
        "x": 140,
        "y": 180,
        "wires": [
            [
                "1da4afd0.45581",
                "430f76bf.9de2d8",
                "fc74491.2ddc9b8",
                "a26e1cc3.93aa6",
                "27de046e.eb8cbc"
            ]
        ]
    },
    {
        "id": "1da4afd0.45581",
        "type": "debug",
        "z": "b245d3e4.b52de",
        "name": "",
        "active": true,
        "console": "false",
        "complete": "true",
        "x": 390,
        "y": 220,
        "wires": []
    },
    {
        "id": "e9881aee.c17a28",
        "type": "modbus-flex-getter",
        "z": "b245d3e4.b52de",
        "name": "",
        "showStatusActivities": false,
        "server": "f40a5dd6.bcceb",
        "x": 740,
        "y": 640,
        "wires": [
            [
                "adca481f.40b6b8"
            ],
            [
                "68042dd8.05e4c4"
            ]
        ]
    },
    {
        "id": "b20f6052.382e2",
        "type": "modbus-flex-write",
        "z": "b245d3e4.b52de",
        "name": "",
        "showStatusActivities": false,
        "server": "83b1adaf.77ca1",
        "x": 730,
        "y": 540,
        "wires": [
            [
                "bd950e22.12e97"
            ],
            [
                "5598cf99.e6a8f"
            ]
        ]
    },
    {
        "id": "5598cf99.e6a8f",
        "type": "modbus-response",
        "z": "b245d3e4.b52de",
        "name": "",
        "registerShowMax": 20,
        "x": 1050,
        "y": 520,
        "wires": []
    },
    {
        "id": "67778c75.cc80d4",
        "type": "inject",
        "z": "b245d3e4.b52de",
        "name": "Write wrong multiple!",
        "topic": "",
        "payload": "[1,0,1,0,1,0,1,1]",
        "payloadType": "json",
        "repeat": "",
        "crontab": "",
        "once": false,
        "x": 180,
        "y": 500,
        "wires": [
            [
                "d2cef87b.27c7e8"
            ]
        ]
    },
    {
        "id": "d2cef87b.27c7e8",
        "type": "function",
        "z": "b245d3e4.b52de",
        "name": "Write 0-9 on Unit 1 FC16",
        "func": "msg.payload = { value: msg.payload, 'fc': 16, 'unitid': 1, 'address': 0 , 'quantity': 10 };\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "x": 450,
        "y": 520,
        "wires": [
            [
                "b20f6052.382e2"
            ]
        ]
    },
    {
        "id": "aa99a87d.ece4c8",
        "type": "function",
        "z": "b245d3e4.b52de",
        "name": "Write 10 on Unit 1 FC6",
        "func": "msg.payload = { value: msg.payload, 'fc': 6, 'unitid': 1, 'address': 10 , 'quantity': 1 };\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "x": 440,
        "y": 560,
        "wires": [
            [
                "b20f6052.382e2"
            ]
        ]
    },
    {
        "id": "54a5caee.d029f4",
        "type": "inject",
        "z": "b245d3e4.b52de",
        "name": "Write single!",
        "topic": "",
        "payload": "2345",
        "payloadType": "num",
        "repeat": "",
        "crontab": "",
        "once": false,
        "x": 150,
        "y": 580,
        "wires": [
            [
                "aa99a87d.ece4c8"
            ]
        ]
    },
    {
        "id": "bd950e22.12e97",
        "type": "debug",
        "z": "b245d3e4.b52de",
        "name": "",
        "active": false,
        "console": "false",
        "complete": "false",
        "x": 1030,
        "y": 480,
        "wires": []
    },
    {
        "id": "2e70a583.6c1a9a",
        "type": "inject",
        "z": "b245d3e4.b52de",
        "name": "Write single!",
        "topic": "",
        "payload": "true",
        "payloadType": "bool",
        "repeat": "",
        "crontab": "",
        "once": false,
        "x": 150,
        "y": 460,
        "wires": [
            [
                "312d9d7e.a2dd22"
            ]
        ]
    },
    {
        "id": "312d9d7e.a2dd22",
        "type": "function",
        "z": "b245d3e4.b52de",
        "name": "Write 10 on Unit 1 FC5",
        "func": "msg.payload = { value: msg.payload, 'fc': 5, 'unitid': 1, 'address': 10 , 'quantity': 1 };\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "x": 440,
        "y": 440,
        "wires": [
            [
                "efd9f6ec.8698f8"
            ]
        ]
    },
    {
        "id": "1b13e610.a0769a",
        "type": "debug",
        "z": "b245d3e4.b52de",
        "name": "",
        "active": false,
        "console": "false",
        "complete": "payload",
        "x": 710,
        "y": 1180,
        "wires": []
    },
    {
        "id": "d0f15fb1.2b182",
        "type": "debug",
        "z": "b245d3e4.b52de",
        "name": "",
        "active": false,
        "console": "false",
        "complete": "false",
        "x": 710,
        "y": 1220,
        "wires": []
    },
    {
        "id": "7b031f09.d2801",
        "type": "modbus-getter",
        "z": "b245d3e4.b52de",
        "name": "Manual Getter FC1",
        "showStatusActivities": false,
        "dataType": "Coil",
        "adr": "10",
        "quantity": "1",
        "server": "f40a5dd6.bcceb",
        "x": 430,
        "y": 1280,
        "wires": [
            [
                "1b13e610.a0769a"
            ],
            [
                "e3ba535.28229b"
            ],
            [
                "d0f15fb1.2b182"
            ]
        ]
    },
    {
        "id": "e3ba535.28229b",
        "type": "modbus-response",
        "z": "b245d3e4.b52de",
        "name": "",
        "registerShowMax": "20",
        "x": 730,
        "y": 1260,
        "wires": []
    },
    {
        "id": "a4d7661d.c03058",
        "type": "inject",
        "z": "b245d3e4.b52de",
        "name": "Get!",
        "topic": "",
        "payload": "",
        "payloadType": "date",
        "repeat": "1",
        "crontab": "",
        "once": false,
        "x": 230,
        "y": 1280,
        "wires": [
            [
                "7b031f09.d2801"
            ]
        ]
    },
    {
        "id": "a7cff869.4e5928",
        "type": "debug",
        "z": "b245d3e4.b52de",
        "name": "",
        "active": false,
        "console": "false",
        "complete": "false",
        "x": 710,
        "y": 1320,
        "wires": []
    },
    {
        "id": "6cef3bd6.9783f4",
        "type": "debug",
        "z": "b245d3e4.b52de",
        "name": "",
        "active": false,
        "console": "false",
        "complete": "false",
        "x": 710,
        "y": 1360,
        "wires": []
    },
    {
        "id": "77216536.a11d2c",
        "type": "modbus-getter",
        "z": "b245d3e4.b52de",
        "name": "Manual Getter FC2",
        "showStatusActivities": false,
        "dataType": "Input",
        "adr": "0",
        "quantity": "10",
        "server": "f40a5dd6.bcceb",
        "x": 430,
        "y": 1380,
        "wires": [
            [
                "a7cff869.4e5928"
            ],
            [
                "f4515fa0.9429b"
            ],
            [
                "6cef3bd6.9783f4"
            ]
        ]
    },
    {
        "id": "f4515fa0.9429b",
        "type": "modbus-response",
        "z": "b245d3e4.b52de",
        "name": "",
        "registerShowMax": "20",
        "x": 730,
        "y": 1400,
        "wires": []
    },
    {
        "id": "9c213a55.ea7e98",
        "type": "inject",
        "z": "b245d3e4.b52de",
        "name": "Get!",
        "topic": "",
        "payload": "",
        "payloadType": "date",
        "repeat": "2",
        "crontab": "",
        "once": false,
        "x": 230,
        "y": 1380,
        "wires": [
            [
                "77216536.a11d2c"
            ]
        ]
    },
    {
        "id": "f4b85961.f16168",
        "type": "inject",
        "z": "b245d3e4.b52de",
        "name": "Write multiple!",
        "topic": "",
        "payload": "[1,2,3,4,5,6,7,8,9]",
        "payloadType": "json",
        "repeat": "",
        "crontab": "",
        "once": false,
        "x": 150,
        "y": 420,
        "wires": [
            [
                "df1fec0c.2da84"
            ]
        ]
    },
    {
        "id": "f0119936.2e87e8",
        "type": "inject",
        "z": "b245d3e4.b52de",
        "name": "Write multiple!",
        "topic": "",
        "payload": "[1,0,1,0,1,0,1,1,1,1]",
        "payloadType": "json",
        "repeat": "",
        "crontab": "",
        "once": false,
        "x": 150,
        "y": 540,
        "wires": [
            [
                "d2cef87b.27c7e8"
            ]
        ]
    },
    {
        "id": "5b7a21e.168b5e",
        "type": "modbus-server",
        "z": "b245d3e4.b52de",
        "name": "",
        "logEnabled": false,
        "serverPort": 10502,
        "responseDelay": "100",
        "delayUnit": "ms",
        "coilsBufferSize": 1024,
        "holdingBufferSize": 1024,
        "inputBufferSize": 1024,
        "x": 720,
        "y": 100,
        "wires": [
            [
                "f56f68be.fe6098"
            ],
            [
                "f56f68be.fe6098"
            ],
            [
                "f56f68be.fe6098"
            ]
        ]
    },
    {
        "id": "64cca59a.dc295c",
        "type": "modbus-queue-info",
        "z": "b245d3e4.b52de",
        "name": "Read Queue",
        "unitid": "",
        "lowLowLevel": 25,
        "lowLevel": 75,
        "highLevel": 150,
        "highHighLevel": 300,
        "server": "f40a5dd6.bcceb",
        "errorOnHighLevel": false,
        "x": 710,
        "y": 180,
        "wires": [
            [
                "877b3c90.64945"
            ]
        ]
    },
    {
        "id": "430f76bf.9de2d8",
        "type": "function",
        "z": "b245d3e4.b52de",
        "name": "reset Read on High",
        "func": "if(\"high level reached\" === msg.state && \n    msg.unitid === 1 &&\n    msg.error.source.name === \"Read Queue\") {\n    msg.resetQueue = true;\n    return msg;\n}\n",
        "outputs": 1,
        "noerr": 0,
        "x": 430,
        "y": 140,
        "wires": [
            [
                "64cca59a.dc295c"
            ]
        ]
    },
    {
        "id": "fc74491.2ddc9b8",
        "type": "function",
        "z": "b245d3e4.b52de",
        "name": "reset Read on HighHigh",
        "func": "if(\"high high level reached\" === msg.state && \n    msg.unitid === 1 &&\n    msg.error.source.name === \"Read Queue\") {\n    msg.resetQueue = true;\n    return msg;\n}\n",
        "outputs": 1,
        "noerr": 0,
        "x": 450,
        "y": 180,
        "wires": [
            [
                "64cca59a.dc295c"
            ]
        ]
    },
    {
        "id": "877b3c90.64945",
        "type": "debug",
        "z": "b245d3e4.b52de",
        "name": "",
        "active": true,
        "console": "false",
        "complete": "false",
        "x": 1030,
        "y": 220,
        "wires": []
    },
    {
        "id": "a2129454.2ac2e8",
        "type": "inject",
        "z": "b245d3e4.b52de",
        "name": "",
        "topic": "",
        "payload": "",
        "payloadType": "date",
        "repeat": "",
        "crontab": "",
        "once": false,
        "x": 140,
        "y": 100,
        "wires": [
            [
                "5b7a21e.168b5e"
            ]
        ]
    },
    {
        "id": "f56f68be.fe6098",
        "type": "debug",
        "z": "b245d3e4.b52de",
        "name": "",
        "active": true,
        "console": "false",
        "complete": "true",
        "x": 1010,
        "y": 100,
        "wires": []
    },
    {
        "id": "a26e1cc3.93aa6",
        "type": "function",
        "z": "b245d3e4.b52de",
        "name": "reset Write on High",
        "func": "if(\"high level reached\" === msg.state && \n    msg.unitid === 1  &&\n    msg.error.source.name === \"Write Queue\") {\n    msg.resetQueue = true;\n    return msg;\n}\n",
        "outputs": 1,
        "noerr": 0,
        "x": 430,
        "y": 260,
        "wires": [
            [
                "9d1aa0ce.5ab45"
            ]
        ]
    },
    {
        "id": "27de046e.eb8cbc",
        "type": "function",
        "z": "b245d3e4.b52de",
        "name": "reset Write on HighHigh",
        "func": "if(\"high high level reached\" === msg.state && \n    msg.unitid === 1 &&\n    msg.error.source.name === \"Write Queue\") {\n    msg.resetQueue = true;\n    return msg;\n}\n",
        "outputs": 1,
        "noerr": 0,
        "x": 450,
        "y": 300,
        "wires": [
            [
                "9d1aa0ce.5ab45"
            ]
        ]
    },
    {
        "id": "9d1aa0ce.5ab45",
        "type": "modbus-queue-info",
        "z": "b245d3e4.b52de",
        "name": "Write Queue",
        "unitid": "",
        "lowLowLevel": "5",
        "lowLevel": "10",
        "highLevel": "15",
        "highHighLevel": "30",
        "server": "83b1adaf.77ca1",
        "errorOnHighLevel": true,
        "x": 710,
        "y": 260,
        "wires": [
            [
                "877b3c90.64945"
            ]
        ]
    },
    {
        "id": "f40a5dd6.bcceb",
        "type": "modbus-client",
        "z": "b245d3e4.b52de",
        "name": "Local Read VServer",
        "clienttype": "tcp",
        "bufferCommands": true,
        "stateLogEnabled": false,
        "tcpHost": "127.0.0.1",
        "tcpPort": "10502",
        "serialPort": "/dev/ttyS0",
        "serialType": "RTU",
        "serialBaudrate": "9600",
        "serialDatabits": "8",
        "serialStopbits": "1",
        "serialParity": "none",
        "serialConnectionDelay": "100",
        "unit_id": "",
        "commandDelay": "100",
        "clientTimeout": "1000",
        "reconnectTimeout": "5000"
    },
    {
        "id": "83b1adaf.77ca1",
        "type": "modbus-client",
        "z": "",
        "name": "Local Write VServer",
        "clienttype": "tcp",
        "bufferCommands": true,
        "stateLogEnabled": false,
        "tcpHost": "127.0.0.1",
        "tcpPort": "10502",
        "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
    }
]
biancode

Flow Info

created 5 months, 2 weeks ago
updated 1 day ago

Node Types

Core
  • catch (x1)
  • debug (x16)
  • function (x11)
  • inject (x16)
Other

Tags

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