[
    {
        "id": "f61f253edb541a70",
        "type": "tab",
        "label": "MODBUS_RTU_MASTER",
        "disabled": false,
        "info": "",
        "env": []
    },
    {
        "id": "7c19322c260826ba",
        "type": "group",
        "z": "f61f253edb541a70",
        "name": "FC5: Write Single Coil & FC15: Write Multiple (Digital OUT)",
        "style": {
            "stroke": "#000000",
            "fill": "#bfdbef",
            "label": true,
            "color": "#000000",
            "fill-opacity": "0.4"
        },
        "nodes": [
            "c7db686ca83da289",
            "546098d6e3348331",
            "1bd602c2a6affadf",
            "d4b05feb2d42c43a",
            "9dd0c6fb37253346",
            "9b1f53d2fe500206",
            "fe0754912a1a3786",
            "9492a6830e3df163",
            "778945bb728dbeaa",
            "0261c998d07e63a8",
            "614439e0b93a9aec",
            "e81f296e8b29332c",
            "4623b9c0351bbf9a",
            "1445f2717ba3941c",
            "ef0c4732ee5b0b92",
            "fdd56c639288870d",
            "719086dc3da5e1fb",
            "ba9034671c5c7ee8",
            "6c891fa3c1fde222",
            "3fa5a7b28aafc06f",
            "38e100044c673b24",
            "66b387eed5e91e9e",
            "9cc0711c0f74c78c",
            "e54329238d4d97f9"
        ],
        "x": 54,
        "y": 239,
        "w": 732,
        "h": 642
    },
    {
        "id": "c796f3e99ba958a0",
        "type": "group",
        "z": "f61f253edb541a70",
        "name": "FC1: Read Coil Status (Digital OUT)",
        "style": {
            "stroke": "#000000",
            "fill": "#addb7b",
            "fill-opacity": "0.52",
            "label": true,
            "color": "#000000"
        },
        "nodes": [
            "8358855fd9ceab81",
            "2c683139fa0e130d",
            "3b13274db5a4d819"
        ],
        "x": 54,
        "y": 79,
        "w": 732,
        "h": 142
    },
    {
        "id": "0c8e77883fdb4439",
        "type": "group",
        "z": "f61f253edb541a70",
        "name": "FC2: Read Input Status (Digital IN)",
        "style": {
            "label": true,
            "stroke": "#000000",
            "color": "#000000",
            "fill": "#ffdf7f",
            "fill-opacity": "0.61"
        },
        "nodes": [
            "a40dc2aa904625f9",
            "e287c2432228a4c2",
            "dc8bee361d5beecc"
        ],
        "x": 54,
        "y": 899,
        "w": 732,
        "h": 142
    },
    {
        "id": "6dee899b2503907c",
        "type": "group",
        "z": "f61f253edb541a70",
        "name": "FC4: Read Input Registers (Analog IN)",
        "style": {
            "stroke": "#000000",
            "label": true,
            "color": "#000000",
            "fill": "#b797cf",
            "fill-opacity": "0.36"
        },
        "nodes": [
            "d9b8f3d92048a56c",
            "2f0fd1f88368cbdf",
            "e37189782b760dbc"
        ],
        "x": 814,
        "y": 899,
        "w": 732,
        "h": 142
    },
    {
        "id": "952982a10d0d7621",
        "type": "group",
        "z": "f61f253edb541a70",
        "name": "FC3: Read Holding Registers (Analog OUT)",
        "style": {
            "stroke": "#000000",
            "label": true,
            "color": "#000000",
            "fill": "#92d04f",
            "fill-opacity": "0.36"
        },
        "nodes": [
            "21417d08ea2a23f0",
            "2b261a3e62604272",
            "e1cbaa631a640af3"
        ],
        "x": 814,
        "y": 79,
        "w": 732,
        "h": 142
    },
    {
        "id": "f504e608a0870772",
        "type": "group",
        "z": "f61f253edb541a70",
        "name": "FC6: Write Single Register & FC16: Write Multiple Registers (Analog OUT)",
        "style": {
            "label": true,
            "stroke": "#000000",
            "fill": "#7fb7df",
            "fill-opacity": "0.26",
            "color": "#000000"
        },
        "nodes": [
            "0fe2d1763c5463ef",
            "97266a97a21e9f4e",
            "931015dd57605a14",
            "810cf65b01b6a982",
            "a7d68ea7e694babd",
            "20b1aa59364277ef",
            "6e5faae7b5a1e178",
            "ded31a31046960c3",
            "2a7fa64372b64323",
            "f1106af8e358bcd2",
            "1f562830383669fd",
            "45ef7c1b559f1a66",
            "17ff1c1782010331",
            "37bc33fdc6308c19",
            "aad0d04ce33eac36",
            "09750834e8b5ecb6",
            "a1b7cd92bb74d3c9",
            "b481d2109b40490c",
            "077f5978508d676c",
            "aa690928ca21f55d",
            "4386c51d8dd86c89",
            "be5e1890a9554f75"
        ],
        "x": 814,
        "y": 239,
        "w": 732,
        "h": 642
    },
    {
        "id": "c7db686ca83da289",
        "type": "inject",
        "z": "f61f253edb541a70",
        "g": "7c19322c260826ba",
        "name": "ALL_TRUE",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "[true,true,true,true,true]",
        "payloadType": "jsonata",
        "x": 170,
        "y": 800,
        "wires": [
            [
                "9492a6830e3df163"
            ]
        ]
    },
    {
        "id": "1bd602c2a6affadf",
        "type": "inject",
        "z": "f61f253edb541a70",
        "g": "7c19322c260826ba",
        "name": "",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "true",
        "payloadType": "bool",
        "x": 190,
        "y": 280,
        "wires": [
            [
                "546098d6e3348331"
            ]
        ]
    },
    {
        "id": "d4b05feb2d42c43a",
        "type": "inject",
        "z": "f61f253edb541a70",
        "g": "7c19322c260826ba",
        "name": "",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "false",
        "payloadType": "bool",
        "x": 190,
        "y": 320,
        "wires": [
            [
                "546098d6e3348331"
            ]
        ]
    },
    {
        "id": "9b1f53d2fe500206",
        "type": "inject",
        "z": "f61f253edb541a70",
        "g": "7c19322c260826ba",
        "name": "",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "true",
        "payloadType": "bool",
        "x": 190,
        "y": 380,
        "wires": [
            [
                "9dd0c6fb37253346"
            ]
        ]
    },
    {
        "id": "fe0754912a1a3786",
        "type": "inject",
        "z": "f61f253edb541a70",
        "g": "7c19322c260826ba",
        "name": "",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "false",
        "payloadType": "bool",
        "x": 190,
        "y": 420,
        "wires": [
            [
                "9dd0c6fb37253346"
            ]
        ]
    },
    {
        "id": "778945bb728dbeaa",
        "type": "inject",
        "z": "f61f253edb541a70",
        "g": "7c19322c260826ba",
        "name": "ALL_FALSE",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "[false,false,false,false,false]",
        "payloadType": "jsonata",
        "x": 170,
        "y": 840,
        "wires": [
            [
                "9492a6830e3df163"
            ]
        ]
    },
    {
        "id": "614439e0b93a9aec",
        "type": "inject",
        "z": "f61f253edb541a70",
        "g": "7c19322c260826ba",
        "name": "",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "true",
        "payloadType": "bool",
        "x": 190,
        "y": 480,
        "wires": [
            [
                "0261c998d07e63a8"
            ]
        ]
    },
    {
        "id": "e81f296e8b29332c",
        "type": "inject",
        "z": "f61f253edb541a70",
        "g": "7c19322c260826ba",
        "name": "",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "false",
        "payloadType": "bool",
        "x": 190,
        "y": 520,
        "wires": [
            [
                "0261c998d07e63a8"
            ]
        ]
    },
    {
        "id": "1445f2717ba3941c",
        "type": "inject",
        "z": "f61f253edb541a70",
        "g": "7c19322c260826ba",
        "name": "",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "true",
        "payloadType": "bool",
        "x": 190,
        "y": 580,
        "wires": [
            [
                "4623b9c0351bbf9a"
            ]
        ]
    },
    {
        "id": "ef0c4732ee5b0b92",
        "type": "inject",
        "z": "f61f253edb541a70",
        "g": "7c19322c260826ba",
        "name": "",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "false",
        "payloadType": "bool",
        "x": 190,
        "y": 620,
        "wires": [
            [
                "4623b9c0351bbf9a"
            ]
        ]
    },
    {
        "id": "2c683139fa0e130d",
        "type": "debug",
        "z": "f61f253edb541a70",
        "g": "c796f3e99ba958a0",
        "name": "debug 11",
        "active": false,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "false",
        "statusVal": "",
        "statusType": "auto",
        "x": 640,
        "y": 180,
        "wires": []
    },
    {
        "id": "dc8bee361d5beecc",
        "type": "debug",
        "z": "f61f253edb541a70",
        "g": "0c8e77883fdb4439",
        "name": "debug 12",
        "active": false,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "false",
        "statusVal": "",
        "statusType": "auto",
        "x": 640,
        "y": 1000,
        "wires": []
    },
    {
        "id": "e37189782b760dbc",
        "type": "debug",
        "z": "f61f253edb541a70",
        "g": "6dee899b2503907c",
        "name": "debug 13",
        "active": false,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "false",
        "statusVal": "",
        "statusType": "auto",
        "x": 1400,
        "y": 1000,
        "wires": []
    },
    {
        "id": "e1cbaa631a640af3",
        "type": "debug",
        "z": "f61f253edb541a70",
        "g": "952982a10d0d7621",
        "name": "debug 14",
        "active": false,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "false",
        "statusVal": "",
        "statusType": "auto",
        "x": 1400,
        "y": 180,
        "wires": []
    },
    {
        "id": "97266a97a21e9f4e",
        "type": "inject",
        "z": "f61f253edb541a70",
        "g": "f504e608a0870772",
        "name": "",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "4095",
        "payloadType": "num",
        "x": 910,
        "y": 280,
        "wires": [
            [
                "0fe2d1763c5463ef"
            ]
        ]
    },
    {
        "id": "931015dd57605a14",
        "type": "inject",
        "z": "f61f253edb541a70",
        "g": "f504e608a0870772",
        "name": "",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "1024",
        "payloadType": "num",
        "x": 910,
        "y": 360,
        "wires": [
            [
                "0fe2d1763c5463ef"
            ]
        ]
    },
    {
        "id": "a7d68ea7e694babd",
        "type": "inject",
        "z": "f61f253edb541a70",
        "g": "f504e608a0870772",
        "name": "AValues",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "[255,500,300]",
        "payloadType": "jsonata",
        "x": 910,
        "y": 800,
        "wires": [
            [
                "be5e1890a9554f75"
            ]
        ]
    },
    {
        "id": "20b1aa59364277ef",
        "type": "inject",
        "z": "f61f253edb541a70",
        "g": "f504e608a0870772",
        "name": "0Values",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "[0,0,0]",
        "payloadType": "jsonata",
        "x": 910,
        "y": 840,
        "wires": [
            [
                "810cf65b01b6a982"
            ]
        ]
    },
    {
        "id": "6e5faae7b5a1e178",
        "type": "inject",
        "z": "f61f253edb541a70",
        "g": "f504e608a0870772",
        "name": "",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "2048",
        "payloadType": "num",
        "x": 910,
        "y": 320,
        "wires": [
            [
                "0fe2d1763c5463ef"
            ]
        ]
    },
    {
        "id": "ded31a31046960c3",
        "type": "inject",
        "z": "f61f253edb541a70",
        "g": "f504e608a0870772",
        "name": "",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "512",
        "payloadType": "num",
        "x": 910,
        "y": 400,
        "wires": [
            [
                "0fe2d1763c5463ef"
            ]
        ]
    },
    {
        "id": "2a7fa64372b64323",
        "type": "inject",
        "z": "f61f253edb541a70",
        "g": "f504e608a0870772",
        "name": "",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "0",
        "payloadType": "num",
        "x": 910,
        "y": 440,
        "wires": [
            [
                "0fe2d1763c5463ef"
            ]
        ]
    },
    {
        "id": "17ff1c1782010331",
        "type": "inject",
        "z": "f61f253edb541a70",
        "g": "f504e608a0870772",
        "name": "",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "1000",
        "payloadType": "num",
        "x": 910,
        "y": 500,
        "wires": [
            [
                "45ef7c1b559f1a66"
            ]
        ]
    },
    {
        "id": "37bc33fdc6308c19",
        "type": "inject",
        "z": "f61f253edb541a70",
        "g": "f504e608a0870772",
        "name": "",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "200",
        "payloadType": "num",
        "x": 910,
        "y": 540,
        "wires": [
            [
                "45ef7c1b559f1a66"
            ]
        ]
    },
    {
        "id": "aad0d04ce33eac36",
        "type": "inject",
        "z": "f61f253edb541a70",
        "g": "f504e608a0870772",
        "name": "",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "0",
        "payloadType": "num",
        "x": 910,
        "y": 580,
        "wires": [
            [
                "45ef7c1b559f1a66"
            ]
        ]
    },
    {
        "id": "fdd56c639288870d",
        "type": "modbus-response",
        "z": "f61f253edb541a70",
        "g": "7c19322c260826ba",
        "name": "",
        "registerShowMax": 20,
        "x": 670,
        "y": 500,
        "wires": []
    },
    {
        "id": "719086dc3da5e1fb",
        "type": "modbus-response",
        "z": "f61f253edb541a70",
        "g": "7c19322c260826ba",
        "name": "",
        "registerShowMax": 20,
        "x": 670,
        "y": 820,
        "wires": []
    },
    {
        "id": "ba9034671c5c7ee8",
        "type": "modbus-response",
        "z": "f61f253edb541a70",
        "g": "7c19322c260826ba",
        "name": "",
        "registerShowMax": 20,
        "x": 670,
        "y": 600,
        "wires": []
    },
    {
        "id": "6c891fa3c1fde222",
        "type": "modbus-response",
        "z": "f61f253edb541a70",
        "g": "7c19322c260826ba",
        "name": "",
        "registerShowMax": 20,
        "x": 670,
        "y": 400,
        "wires": []
    },
    {
        "id": "3b13274db5a4d819",
        "type": "modbus-response",
        "z": "f61f253edb541a70",
        "g": "c796f3e99ba958a0",
        "name": "",
        "registerShowMax": 20,
        "x": 670,
        "y": 120,
        "wires": []
    },
    {
        "id": "e287c2432228a4c2",
        "type": "modbus-response",
        "z": "f61f253edb541a70",
        "g": "0c8e77883fdb4439",
        "name": "",
        "registerShowMax": "20",
        "x": 670,
        "y": 940,
        "wires": []
    },
    {
        "id": "2f0fd1f88368cbdf",
        "type": "modbus-response",
        "z": "f61f253edb541a70",
        "g": "6dee899b2503907c",
        "name": "",
        "registerShowMax": 20,
        "x": 1430,
        "y": 940,
        "wires": []
    },
    {
        "id": "2b261a3e62604272",
        "type": "modbus-response",
        "z": "f61f253edb541a70",
        "g": "952982a10d0d7621",
        "name": "",
        "registerShowMax": 20,
        "x": 1430,
        "y": 120,
        "wires": []
    },
    {
        "id": "f1106af8e358bcd2",
        "type": "modbus-response",
        "z": "f61f253edb541a70",
        "g": "f504e608a0870772",
        "name": "",
        "registerShowMax": 20,
        "x": 1430,
        "y": 820,
        "wires": []
    },
    {
        "id": "1f562830383669fd",
        "type": "modbus-response",
        "z": "f61f253edb541a70",
        "g": "f504e608a0870772",
        "name": "",
        "registerShowMax": 20,
        "x": 1430,
        "y": 360,
        "wires": []
    },
    {
        "id": "09750834e8b5ecb6",
        "type": "modbus-response",
        "z": "f61f253edb541a70",
        "g": "f504e608a0870772",
        "name": "",
        "registerShowMax": 20,
        "x": 1430,
        "y": 540,
        "wires": []
    },
    {
        "id": "8358855fd9ceab81",
        "type": "modbus-read",
        "z": "f61f253edb541a70",
        "g": "c796f3e99ba958a0",
        "name": "",
        "topic": "",
        "showStatusActivities": false,
        "logIOActivities": false,
        "showErrors": false,
        "showWarnings": true,
        "unitid": "31",
        "dataType": "Coil",
        "adr": "0",
        "quantity": "5",
        "rate": "1",
        "rateUnit": "s",
        "delayOnStart": false,
        "startDelayTime": "",
        "server": "a0cecbb6e2cd25e8",
        "useIOFile": false,
        "ioFile": "",
        "useIOForPayload": false,
        "emptyMsgOnFail": false,
        "x": 170,
        "y": 160,
        "wires": [
            [
                "3b13274db5a4d819"
            ],
            [
                "2c683139fa0e130d"
            ]
        ]
    },
    {
        "id": "a40dc2aa904625f9",
        "type": "modbus-read",
        "z": "f61f253edb541a70",
        "g": "0c8e77883fdb4439",
        "name": "",
        "topic": "",
        "showStatusActivities": false,
        "logIOActivities": false,
        "showErrors": false,
        "showWarnings": true,
        "unitid": "31",
        "dataType": "Input",
        "adr": "0",
        "quantity": "7",
        "rate": "1",
        "rateUnit": "s",
        "delayOnStart": false,
        "startDelayTime": "",
        "server": "a0cecbb6e2cd25e8",
        "useIOFile": false,
        "ioFile": "",
        "useIOForPayload": false,
        "emptyMsgOnFail": false,
        "x": 170,
        "y": 980,
        "wires": [
            [
                "e287c2432228a4c2"
            ],
            [
                "dc8bee361d5beecc"
            ]
        ]
    },
    {
        "id": "d9b8f3d92048a56c",
        "type": "modbus-read",
        "z": "f61f253edb541a70",
        "g": "6dee899b2503907c",
        "name": "",
        "topic": "",
        "showStatusActivities": false,
        "logIOActivities": false,
        "showErrors": false,
        "showWarnings": true,
        "unitid": "31",
        "dataType": "InputRegister",
        "adr": "0",
        "quantity": "6",
        "rate": "1",
        "rateUnit": "s",
        "delayOnStart": false,
        "startDelayTime": "",
        "server": "a0cecbb6e2cd25e8",
        "useIOFile": false,
        "ioFile": "",
        "useIOForPayload": false,
        "emptyMsgOnFail": false,
        "x": 930,
        "y": 980,
        "wires": [
            [
                "2f0fd1f88368cbdf"
            ],
            [
                "e37189782b760dbc"
            ]
        ]
    },
    {
        "id": "21417d08ea2a23f0",
        "type": "modbus-read",
        "z": "f61f253edb541a70",
        "g": "952982a10d0d7621",
        "name": "",
        "topic": "",
        "showStatusActivities": false,
        "logIOActivities": false,
        "showErrors": false,
        "showWarnings": true,
        "unitid": "31",
        "dataType": "HoldingRegister",
        "adr": "0",
        "quantity": "3",
        "rate": "1",
        "rateUnit": "s",
        "delayOnStart": false,
        "startDelayTime": "",
        "server": "a0cecbb6e2cd25e8",
        "useIOFile": false,
        "ioFile": "",
        "useIOForPayload": false,
        "emptyMsgOnFail": false,
        "x": 930,
        "y": 160,
        "wires": [
            [
                "2b261a3e62604272"
            ],
            [
                "e1cbaa631a640af3"
            ]
        ]
    },
    {
        "id": "546098d6e3348331",
        "type": "modbus-write",
        "z": "f61f253edb541a70",
        "g": "7c19322c260826ba",
        "name": "",
        "showStatusActivities": true,
        "showErrors": true,
        "showWarnings": true,
        "unitid": "31",
        "dataType": "Coil",
        "adr": "0",
        "quantity": "1",
        "server": "a0cecbb6e2cd25e8",
        "emptyMsgOnFail": false,
        "keepMsgProperties": false,
        "delayOnStart": false,
        "startDelayTime": "",
        "x": 420,
        "y": 300,
        "wires": [
            [],
            [
                "e54329238d4d97f9"
            ]
        ]
    },
    {
        "id": "9dd0c6fb37253346",
        "type": "modbus-write",
        "z": "f61f253edb541a70",
        "g": "7c19322c260826ba",
        "name": "",
        "showStatusActivities": true,
        "showErrors": true,
        "showWarnings": true,
        "unitid": "31",
        "dataType": "Coil",
        "adr": "1",
        "quantity": "1",
        "server": "a0cecbb6e2cd25e8",
        "emptyMsgOnFail": false,
        "keepMsgProperties": false,
        "delayOnStart": false,
        "startDelayTime": "",
        "x": 420,
        "y": 400,
        "wires": [
            [],
            [
                "6c891fa3c1fde222"
            ]
        ]
    },
    {
        "id": "9492a6830e3df163",
        "type": "modbus-write",
        "z": "f61f253edb541a70",
        "g": "7c19322c260826ba",
        "name": "",
        "showStatusActivities": true,
        "showErrors": true,
        "showWarnings": true,
        "unitid": "31",
        "dataType": "MCoils",
        "adr": "0",
        "quantity": "5",
        "server": "a0cecbb6e2cd25e8",
        "emptyMsgOnFail": false,
        "keepMsgProperties": false,
        "delayOnStart": false,
        "startDelayTime": "",
        "x": 420,
        "y": 820,
        "wires": [
            [],
            [
                "719086dc3da5e1fb"
            ]
        ]
    },
    {
        "id": "0261c998d07e63a8",
        "type": "modbus-write",
        "z": "f61f253edb541a70",
        "g": "7c19322c260826ba",
        "name": "",
        "showStatusActivities": true,
        "showErrors": true,
        "showWarnings": true,
        "unitid": "31",
        "dataType": "Coil",
        "adr": "2",
        "quantity": "1",
        "server": "a0cecbb6e2cd25e8",
        "emptyMsgOnFail": false,
        "keepMsgProperties": false,
        "delayOnStart": false,
        "startDelayTime": "",
        "x": 420,
        "y": 500,
        "wires": [
            [],
            [
                "fdd56c639288870d"
            ]
        ]
    },
    {
        "id": "4623b9c0351bbf9a",
        "type": "modbus-write",
        "z": "f61f253edb541a70",
        "g": "7c19322c260826ba",
        "name": "",
        "showStatusActivities": true,
        "showErrors": true,
        "showWarnings": true,
        "unitid": "31",
        "dataType": "Coil",
        "adr": "3",
        "quantity": "1",
        "server": "a0cecbb6e2cd25e8",
        "emptyMsgOnFail": false,
        "keepMsgProperties": false,
        "delayOnStart": false,
        "startDelayTime": "",
        "x": 420,
        "y": 600,
        "wires": [
            [],
            [
                "ba9034671c5c7ee8"
            ]
        ]
    },
    {
        "id": "0fe2d1763c5463ef",
        "type": "modbus-write",
        "z": "f61f253edb541a70",
        "g": "f504e608a0870772",
        "name": "",
        "showStatusActivities": true,
        "showErrors": true,
        "showWarnings": true,
        "unitid": "31",
        "dataType": "HoldingRegister",
        "adr": "0",
        "quantity": "1",
        "server": "a0cecbb6e2cd25e8",
        "emptyMsgOnFail": false,
        "keepMsgProperties": false,
        "delayOnStart": false,
        "startDelayTime": "",
        "x": 1140,
        "y": 360,
        "wires": [
            [],
            [
                "1f562830383669fd"
            ]
        ]
    },
    {
        "id": "810cf65b01b6a982",
        "type": "modbus-write",
        "z": "f61f253edb541a70",
        "g": "f504e608a0870772",
        "name": "",
        "showStatusActivities": true,
        "showErrors": true,
        "showWarnings": true,
        "unitid": "31",
        "dataType": "MHoldingRegisters",
        "adr": "0",
        "quantity": "3",
        "server": "a0cecbb6e2cd25e8",
        "emptyMsgOnFail": false,
        "keepMsgProperties": false,
        "delayOnStart": false,
        "startDelayTime": "",
        "x": 1140,
        "y": 840,
        "wires": [
            [],
            [
                "f1106af8e358bcd2"
            ]
        ]
    },
    {
        "id": "45ef7c1b559f1a66",
        "type": "modbus-write",
        "z": "f61f253edb541a70",
        "g": "f504e608a0870772",
        "name": "",
        "showStatusActivities": true,
        "showErrors": true,
        "showWarnings": true,
        "unitid": "31",
        "dataType": "HoldingRegister",
        "adr": "1",
        "quantity": "1",
        "server": "a0cecbb6e2cd25e8",
        "emptyMsgOnFail": false,
        "keepMsgProperties": false,
        "delayOnStart": false,
        "startDelayTime": "",
        "x": 1140,
        "y": 540,
        "wires": [
            [],
            [
                "09750834e8b5ecb6"
            ]
        ]
    },
    {
        "id": "3fa5a7b28aafc06f",
        "type": "inject",
        "z": "f61f253edb541a70",
        "g": "7c19322c260826ba",
        "name": "",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "true",
        "payloadType": "bool",
        "x": 190,
        "y": 680,
        "wires": [
            [
                "9cc0711c0f74c78c"
            ]
        ]
    },
    {
        "id": "38e100044c673b24",
        "type": "inject",
        "z": "f61f253edb541a70",
        "g": "7c19322c260826ba",
        "name": "",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "false",
        "payloadType": "bool",
        "x": 190,
        "y": 720,
        "wires": [
            [
                "9cc0711c0f74c78c"
            ]
        ]
    },
    {
        "id": "66b387eed5e91e9e",
        "type": "modbus-response",
        "z": "f61f253edb541a70",
        "g": "7c19322c260826ba",
        "name": "",
        "registerShowMax": 20,
        "x": 670,
        "y": 700,
        "wires": []
    },
    {
        "id": "9cc0711c0f74c78c",
        "type": "modbus-write",
        "z": "f61f253edb541a70",
        "g": "7c19322c260826ba",
        "name": "",
        "showStatusActivities": true,
        "showErrors": true,
        "showWarnings": true,
        "unitid": "31",
        "dataType": "Coil",
        "adr": "4",
        "quantity": "1",
        "server": "a0cecbb6e2cd25e8",
        "emptyMsgOnFail": false,
        "keepMsgProperties": false,
        "delayOnStart": false,
        "startDelayTime": "",
        "x": 420,
        "y": 700,
        "wires": [
            [],
            [
                "66b387eed5e91e9e"
            ]
        ]
    },
    {
        "id": "f6528f2733fc08dc",
        "type": "comment",
        "z": "f61f253edb541a70",
        "name": "Modbus TCP master (client) example for RPI PLC 21 ",
        "info": "",
        "x": 250,
        "y": 40,
        "wires": []
    },
    {
        "id": "e54329238d4d97f9",
        "type": "modbus-response",
        "z": "f61f253edb541a70",
        "g": "7c19322c260826ba",
        "name": "",
        "registerShowMax": 20,
        "x": 670,
        "y": 300,
        "wires": []
    },
    {
        "id": "a1b7cd92bb74d3c9",
        "type": "inject",
        "z": "f61f253edb541a70",
        "g": "f504e608a0870772",
        "name": "",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "1000",
        "payloadType": "num",
        "x": 910,
        "y": 640,
        "wires": [
            [
                "4386c51d8dd86c89"
            ]
        ]
    },
    {
        "id": "b481d2109b40490c",
        "type": "inject",
        "z": "f61f253edb541a70",
        "g": "f504e608a0870772",
        "name": "",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "200",
        "payloadType": "num",
        "x": 910,
        "y": 680,
        "wires": [
            [
                "4386c51d8dd86c89"
            ]
        ]
    },
    {
        "id": "077f5978508d676c",
        "type": "inject",
        "z": "f61f253edb541a70",
        "g": "f504e608a0870772",
        "name": "",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "0",
        "payloadType": "num",
        "x": 910,
        "y": 720,
        "wires": [
            [
                "4386c51d8dd86c89"
            ]
        ]
    },
    {
        "id": "aa690928ca21f55d",
        "type": "modbus-response",
        "z": "f61f253edb541a70",
        "g": "f504e608a0870772",
        "name": "",
        "registerShowMax": 20,
        "x": 1430,
        "y": 680,
        "wires": []
    },
    {
        "id": "4386c51d8dd86c89",
        "type": "modbus-write",
        "z": "f61f253edb541a70",
        "g": "f504e608a0870772",
        "name": "",
        "showStatusActivities": true,
        "showErrors": true,
        "showWarnings": true,
        "unitid": "31",
        "dataType": "HoldingRegister",
        "adr": "2",
        "quantity": "1",
        "server": "a0cecbb6e2cd25e8",
        "emptyMsgOnFail": false,
        "keepMsgProperties": false,
        "delayOnStart": false,
        "startDelayTime": "",
        "x": 1140,
        "y": 680,
        "wires": [
            [],
            [
                "aa690928ca21f55d"
            ]
        ]
    },
    {
        "id": "be5e1890a9554f75",
        "type": "function",
        "z": "f61f253edb541a70",
        "g": "f504e608a0870772",
        "name": "genRandomVals",
        "func": "// Genera un número aleatorio entre 0 y 4095\nfunction getRandomInt(max) {\n    return Math.floor(Math.random() * max);\n}\n\n// Crea una lista de 3 números aleatorios\nlet randomNumbers = [];\nfor (let i = 0; i < 3; i++) {\n    randomNumbers.push(getRandomInt(4096));\n}\n\n// Asigna la lista al payload del mensaje\nmsg.payload = randomNumbers;\n\n// Devuelve el mensaje\nreturn msg;\n",
        "outputs": 1,
        "timeout": 0,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 1080,
        "y": 780,
        "wires": [
            [
                "810cf65b01b6a982"
            ]
        ]
    },
    {
        "id": "a0cecbb6e2cd25e8",
        "type": "modbus-client",
        "name": "ModbusRTU",
        "clienttype": "serial",
        "bufferCommands": true,
        "stateLogEnabled": false,
        "queueLogEnabled": false,
        "failureLogEnabled": true,
        "tcpHost": "10.10.10.20",
        "tcpPort": "502",
        "tcpType": "DEFAULT",
        "serialPort": "/dev/ttyUSB",
        "serialType": "RTU-BUFFERD",
        "serialBaudrate": "9600",
        "serialDatabits": "8",
        "serialStopbits": "1",
        "serialParity": "even",
        "serialConnectionDelay": "100",
        "serialAsciiResponseStartDelimiter": "0x3A",
        "unit_id": "1",
        "commandDelay": "1",
        "clientTimeout": "1000",
        "reconnectOnTimeout": true,
        "reconnectTimeout": "2000",
        "parallelUnitIdsAllowed": true,
        "showErrors": false,
        "showWarnings": true,
        "showLogs": true
    }
]