[
    {
        "id": "ae85bb136e04b23a",
        "type": "tab",
        "label": "MODBUS_TCP_MASTER",
        "disabled": false,
        "info": "",
        "env": []
    },
    {
        "id": "13c648b1fe57a7af",
        "type": "group",
        "z": "ae85bb136e04b23a",
        "name": "FC5: Write Single Coil & FC15: Write Multiple (Digital OUT)",
        "style": {
            "stroke": "#000000",
            "fill": "#bfdbef",
            "label": true,
            "color": "#000000",
            "fill-opacity": "0.4"
        },
        "nodes": [
            "8a2a1f1f8780c32d",
            "0df9c4b2eec0b531",
            "c056fcf70a25bc57",
            "c0f2128bb6cd12eb",
            "2e58281cd9cdf309",
            "a4db0fa68f66149e",
            "93dd51ee89458b23",
            "928ef4b4840db433",
            "60293e19076ba1ed",
            "13e503e5a329959b",
            "805e6edcfdeb58c1",
            "a632ff55dfb5d407",
            "795758fb59aa2c97",
            "b44691e0ffca002a",
            "83afd9e8eb5ba01d",
            "ee67fcfc137f2032",
            "f0d24c78171dcf50",
            "d288dcd8b561a7b9",
            "21b4186b9e07cde4",
            "44173d374eda3eb5",
            "8d8c2572e8beb71b",
            "8a293ec99fb96676",
            "3e81ae85bb571592",
            "ae42579ee72e50cb"
        ],
        "x": 54,
        "y": 239,
        "w": 812,
        "h": 642
    },
    {
        "id": "2974aecf47c204f6",
        "type": "group",
        "z": "ae85bb136e04b23a",
        "name": "FC1: Read Coil Status (Digital OUT)",
        "style": {
            "stroke": "#000000",
            "fill": "#addb7b",
            "fill-opacity": "0.52",
            "label": true,
            "color": "#000000"
        },
        "nodes": [
            "e46e1927bda78f98",
            "bd71c32c377d23c0",
            "53484d0d5096c3d1"
        ],
        "x": 54,
        "y": 79,
        "w": 812,
        "h": 142
    },
    {
        "id": "7edd8d5acf19acb3",
        "type": "group",
        "z": "ae85bb136e04b23a",
        "name": "FC2: Read Input Status (Digital IN)",
        "style": {
            "label": true,
            "stroke": "#000000",
            "color": "#000000",
            "fill": "#ffdf7f",
            "fill-opacity": "0.61"
        },
        "nodes": [
            "63a738437f59a0b6",
            "3c40c9a91eca8ec9",
            "18b1d730be6bdd88"
        ],
        "x": 54,
        "y": 899,
        "w": 812,
        "h": 142
    },
    {
        "id": "185ddb9725ad0df8",
        "type": "group",
        "z": "ae85bb136e04b23a",
        "name": "FC4: Read Input Registers (Analog IN)",
        "style": {
            "stroke": "#000000",
            "label": true,
            "color": "#000000",
            "fill": "#b797cf",
            "fill-opacity": "0.36"
        },
        "nodes": [
            "ef4301e891622bf0",
            "7043538ef18ce0b9",
            "f12c8f9d4caf9183"
        ],
        "x": 874,
        "y": 899,
        "w": 812,
        "h": 142
    },
    {
        "id": "76ecf552f8aee944",
        "type": "group",
        "z": "ae85bb136e04b23a",
        "name": "FC3: Read Holding Registers (Analog OUT)",
        "style": {
            "stroke": "#000000",
            "label": true,
            "color": "#000000",
            "fill": "#92d04f",
            "fill-opacity": "0.36"
        },
        "nodes": [
            "96e30e2a1b0c4ac5",
            "020a5b4754485bfb",
            "8de3fbe8aff4a22f"
        ],
        "x": 874,
        "y": 79,
        "w": 812,
        "h": 142
    },
    {
        "id": "083d06963a6bcb15",
        "type": "group",
        "z": "ae85bb136e04b23a",
        "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": [
            "d9c6cb03c3e91c15",
            "a8747366431bbb35",
            "c6a4cefd55659122",
            "13c7fd1d5fb7022e",
            "a276947ba945ab86",
            "312e6a6092bd834c",
            "c41c832c3005e88d",
            "18089c3f454dfe33",
            "bc85f7b043c565dd",
            "3fc052f42f048ec6",
            "566d579a0a23213e",
            "5491117c99ffe05f",
            "abb405b712b00386",
            "ff17c95fbcabbecd",
            "6393b10ea0853e81",
            "2941c48c09d9e170",
            "ed7a6f56dfcca362",
            "175e1f085f4f6b24",
            "77d795fdee3c7094",
            "9ac32d241d183f95",
            "06639f4def7e3e4a",
            "50f02c45b04b7ef8"
        ],
        "x": 874,
        "y": 239,
        "w": 812,
        "h": 642
    },
    {
        "id": "8a2a1f1f8780c32d",
        "type": "inject",
        "z": "ae85bb136e04b23a",
        "g": "13c648b1fe57a7af",
        "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": [
            [
                "928ef4b4840db433"
            ]
        ]
    },
    {
        "id": "c056fcf70a25bc57",
        "type": "inject",
        "z": "ae85bb136e04b23a",
        "g": "13c648b1fe57a7af",
        "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": [
            [
                "0df9c4b2eec0b531"
            ]
        ]
    },
    {
        "id": "c0f2128bb6cd12eb",
        "type": "inject",
        "z": "ae85bb136e04b23a",
        "g": "13c648b1fe57a7af",
        "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": [
            [
                "0df9c4b2eec0b531"
            ]
        ]
    },
    {
        "id": "a4db0fa68f66149e",
        "type": "inject",
        "z": "ae85bb136e04b23a",
        "g": "13c648b1fe57a7af",
        "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": [
            [
                "2e58281cd9cdf309"
            ]
        ]
    },
    {
        "id": "93dd51ee89458b23",
        "type": "inject",
        "z": "ae85bb136e04b23a",
        "g": "13c648b1fe57a7af",
        "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": [
            [
                "2e58281cd9cdf309"
            ]
        ]
    },
    {
        "id": "60293e19076ba1ed",
        "type": "inject",
        "z": "ae85bb136e04b23a",
        "g": "13c648b1fe57a7af",
        "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": [
            [
                "928ef4b4840db433"
            ]
        ]
    },
    {
        "id": "805e6edcfdeb58c1",
        "type": "inject",
        "z": "ae85bb136e04b23a",
        "g": "13c648b1fe57a7af",
        "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": [
            [
                "13e503e5a329959b"
            ]
        ]
    },
    {
        "id": "a632ff55dfb5d407",
        "type": "inject",
        "z": "ae85bb136e04b23a",
        "g": "13c648b1fe57a7af",
        "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": [
            [
                "13e503e5a329959b"
            ]
        ]
    },
    {
        "id": "b44691e0ffca002a",
        "type": "inject",
        "z": "ae85bb136e04b23a",
        "g": "13c648b1fe57a7af",
        "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": [
            [
                "795758fb59aa2c97"
            ]
        ]
    },
    {
        "id": "83afd9e8eb5ba01d",
        "type": "inject",
        "z": "ae85bb136e04b23a",
        "g": "13c648b1fe57a7af",
        "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": [
            [
                "795758fb59aa2c97"
            ]
        ]
    },
    {
        "id": "bd71c32c377d23c0",
        "type": "debug",
        "z": "ae85bb136e04b23a",
        "g": "2974aecf47c204f6",
        "name": "debug 11",
        "active": false,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "false",
        "statusVal": "",
        "statusType": "auto",
        "x": 760,
        "y": 180,
        "wires": []
    },
    {
        "id": "18b1d730be6bdd88",
        "type": "debug",
        "z": "ae85bb136e04b23a",
        "g": "7edd8d5acf19acb3",
        "name": "debug 12",
        "active": false,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "false",
        "statusVal": "",
        "statusType": "auto",
        "x": 760,
        "y": 1000,
        "wires": []
    },
    {
        "id": "f12c8f9d4caf9183",
        "type": "debug",
        "z": "ae85bb136e04b23a",
        "g": "185ddb9725ad0df8",
        "name": "debug 13",
        "active": false,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "false",
        "statusVal": "",
        "statusType": "auto",
        "x": 1580,
        "y": 1000,
        "wires": []
    },
    {
        "id": "8de3fbe8aff4a22f",
        "type": "debug",
        "z": "ae85bb136e04b23a",
        "g": "76ecf552f8aee944",
        "name": "debug 14",
        "active": false,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "false",
        "statusVal": "",
        "statusType": "auto",
        "x": 1580,
        "y": 180,
        "wires": []
    },
    {
        "id": "a8747366431bbb35",
        "type": "inject",
        "z": "ae85bb136e04b23a",
        "g": "083d06963a6bcb15",
        "name": "",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "4095",
        "payloadType": "num",
        "x": 970,
        "y": 280,
        "wires": [
            [
                "d9c6cb03c3e91c15"
            ]
        ]
    },
    {
        "id": "c6a4cefd55659122",
        "type": "inject",
        "z": "ae85bb136e04b23a",
        "g": "083d06963a6bcb15",
        "name": "",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "1024",
        "payloadType": "num",
        "x": 970,
        "y": 360,
        "wires": [
            [
                "d9c6cb03c3e91c15"
            ]
        ]
    },
    {
        "id": "a276947ba945ab86",
        "type": "inject",
        "z": "ae85bb136e04b23a",
        "g": "083d06963a6bcb15",
        "name": "AValues",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "[255,500,300]",
        "payloadType": "jsonata",
        "x": 970,
        "y": 800,
        "wires": [
            [
                "50f02c45b04b7ef8"
            ]
        ]
    },
    {
        "id": "312e6a6092bd834c",
        "type": "inject",
        "z": "ae85bb136e04b23a",
        "g": "083d06963a6bcb15",
        "name": "0Values",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "[0,0,0]",
        "payloadType": "jsonata",
        "x": 970,
        "y": 840,
        "wires": [
            [
                "13c7fd1d5fb7022e"
            ]
        ]
    },
    {
        "id": "c41c832c3005e88d",
        "type": "inject",
        "z": "ae85bb136e04b23a",
        "g": "083d06963a6bcb15",
        "name": "",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "2048",
        "payloadType": "num",
        "x": 970,
        "y": 320,
        "wires": [
            [
                "d9c6cb03c3e91c15"
            ]
        ]
    },
    {
        "id": "18089c3f454dfe33",
        "type": "inject",
        "z": "ae85bb136e04b23a",
        "g": "083d06963a6bcb15",
        "name": "",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "512",
        "payloadType": "num",
        "x": 970,
        "y": 400,
        "wires": [
            [
                "d9c6cb03c3e91c15"
            ]
        ]
    },
    {
        "id": "bc85f7b043c565dd",
        "type": "inject",
        "z": "ae85bb136e04b23a",
        "g": "083d06963a6bcb15",
        "name": "",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "0",
        "payloadType": "num",
        "x": 970,
        "y": 440,
        "wires": [
            [
                "d9c6cb03c3e91c15"
            ]
        ]
    },
    {
        "id": "abb405b712b00386",
        "type": "inject",
        "z": "ae85bb136e04b23a",
        "g": "083d06963a6bcb15",
        "name": "",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "1000",
        "payloadType": "num",
        "x": 970,
        "y": 500,
        "wires": [
            [
                "5491117c99ffe05f"
            ]
        ]
    },
    {
        "id": "ff17c95fbcabbecd",
        "type": "inject",
        "z": "ae85bb136e04b23a",
        "g": "083d06963a6bcb15",
        "name": "",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "200",
        "payloadType": "num",
        "x": 970,
        "y": 540,
        "wires": [
            [
                "5491117c99ffe05f"
            ]
        ]
    },
    {
        "id": "6393b10ea0853e81",
        "type": "inject",
        "z": "ae85bb136e04b23a",
        "g": "083d06963a6bcb15",
        "name": "",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "0",
        "payloadType": "num",
        "x": 970,
        "y": 580,
        "wires": [
            [
                "5491117c99ffe05f"
            ]
        ]
    },
    {
        "id": "ee67fcfc137f2032",
        "type": "modbus-response",
        "z": "ae85bb136e04b23a",
        "g": "13c648b1fe57a7af",
        "name": "",
        "registerShowMax": 20,
        "x": 750,
        "y": 500,
        "wires": []
    },
    {
        "id": "f0d24c78171dcf50",
        "type": "modbus-response",
        "z": "ae85bb136e04b23a",
        "g": "13c648b1fe57a7af",
        "name": "",
        "registerShowMax": 20,
        "x": 750,
        "y": 820,
        "wires": []
    },
    {
        "id": "d288dcd8b561a7b9",
        "type": "modbus-response",
        "z": "ae85bb136e04b23a",
        "g": "13c648b1fe57a7af",
        "name": "",
        "registerShowMax": 20,
        "x": 750,
        "y": 600,
        "wires": []
    },
    {
        "id": "21b4186b9e07cde4",
        "type": "modbus-response",
        "z": "ae85bb136e04b23a",
        "g": "13c648b1fe57a7af",
        "name": "",
        "registerShowMax": 20,
        "x": 750,
        "y": 400,
        "wires": []
    },
    {
        "id": "53484d0d5096c3d1",
        "type": "modbus-response",
        "z": "ae85bb136e04b23a",
        "g": "2974aecf47c204f6",
        "name": "",
        "registerShowMax": 20,
        "x": 510,
        "y": 120,
        "wires": []
    },
    {
        "id": "3c40c9a91eca8ec9",
        "type": "modbus-response",
        "z": "ae85bb136e04b23a",
        "g": "7edd8d5acf19acb3",
        "name": "",
        "registerShowMax": "20",
        "x": 670,
        "y": 940,
        "wires": []
    },
    {
        "id": "7043538ef18ce0b9",
        "type": "modbus-response",
        "z": "ae85bb136e04b23a",
        "g": "185ddb9725ad0df8",
        "name": "",
        "registerShowMax": 20,
        "x": 1490,
        "y": 940,
        "wires": []
    },
    {
        "id": "020a5b4754485bfb",
        "type": "modbus-response",
        "z": "ae85bb136e04b23a",
        "g": "76ecf552f8aee944",
        "name": "",
        "registerShowMax": 20,
        "x": 1310,
        "y": 120,
        "wires": []
    },
    {
        "id": "3fc052f42f048ec6",
        "type": "modbus-response",
        "z": "ae85bb136e04b23a",
        "g": "083d06963a6bcb15",
        "name": "",
        "registerShowMax": 20,
        "x": 1570,
        "y": 820,
        "wires": []
    },
    {
        "id": "566d579a0a23213e",
        "type": "modbus-response",
        "z": "ae85bb136e04b23a",
        "g": "083d06963a6bcb15",
        "name": "",
        "registerShowMax": 20,
        "x": 1570,
        "y": 360,
        "wires": []
    },
    {
        "id": "2941c48c09d9e170",
        "type": "modbus-response",
        "z": "ae85bb136e04b23a",
        "g": "083d06963a6bcb15",
        "name": "",
        "registerShowMax": 20,
        "x": 1570,
        "y": 540,
        "wires": []
    },
    {
        "id": "e46e1927bda78f98",
        "type": "modbus-read",
        "z": "ae85bb136e04b23a",
        "g": "2974aecf47c204f6",
        "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": [
            [
                "53484d0d5096c3d1"
            ],
            [
                "bd71c32c377d23c0"
            ]
        ]
    },
    {
        "id": "63a738437f59a0b6",
        "type": "modbus-read",
        "z": "ae85bb136e04b23a",
        "g": "7edd8d5acf19acb3",
        "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": [
            [
                "3c40c9a91eca8ec9"
            ],
            [
                "18b1d730be6bdd88"
            ]
        ]
    },
    {
        "id": "ef4301e891622bf0",
        "type": "modbus-read",
        "z": "ae85bb136e04b23a",
        "g": "185ddb9725ad0df8",
        "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": 990,
        "y": 980,
        "wires": [
            [
                "7043538ef18ce0b9"
            ],
            [
                "f12c8f9d4caf9183"
            ]
        ]
    },
    {
        "id": "96e30e2a1b0c4ac5",
        "type": "modbus-read",
        "z": "ae85bb136e04b23a",
        "g": "76ecf552f8aee944",
        "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": 990,
        "y": 160,
        "wires": [
            [
                "020a5b4754485bfb"
            ],
            [
                "8de3fbe8aff4a22f"
            ]
        ]
    },
    {
        "id": "0df9c4b2eec0b531",
        "type": "modbus-write",
        "z": "ae85bb136e04b23a",
        "g": "13c648b1fe57a7af",
        "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": [
            [],
            [
                "ae42579ee72e50cb"
            ]
        ]
    },
    {
        "id": "2e58281cd9cdf309",
        "type": "modbus-write",
        "z": "ae85bb136e04b23a",
        "g": "13c648b1fe57a7af",
        "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": [
            [],
            [
                "21b4186b9e07cde4"
            ]
        ]
    },
    {
        "id": "928ef4b4840db433",
        "type": "modbus-write",
        "z": "ae85bb136e04b23a",
        "g": "13c648b1fe57a7af",
        "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": [
            [],
            [
                "f0d24c78171dcf50"
            ]
        ]
    },
    {
        "id": "13e503e5a329959b",
        "type": "modbus-write",
        "z": "ae85bb136e04b23a",
        "g": "13c648b1fe57a7af",
        "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": [
            [],
            [
                "ee67fcfc137f2032"
            ]
        ]
    },
    {
        "id": "795758fb59aa2c97",
        "type": "modbus-write",
        "z": "ae85bb136e04b23a",
        "g": "13c648b1fe57a7af",
        "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": [
            [],
            [
                "d288dcd8b561a7b9"
            ]
        ]
    },
    {
        "id": "d9c6cb03c3e91c15",
        "type": "modbus-write",
        "z": "ae85bb136e04b23a",
        "g": "083d06963a6bcb15",
        "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": 1200,
        "y": 360,
        "wires": [
            [],
            [
                "566d579a0a23213e"
            ]
        ]
    },
    {
        "id": "13c7fd1d5fb7022e",
        "type": "modbus-write",
        "z": "ae85bb136e04b23a",
        "g": "083d06963a6bcb15",
        "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": 1340,
        "y": 820,
        "wires": [
            [],
            [
                "3fc052f42f048ec6"
            ]
        ]
    },
    {
        "id": "5491117c99ffe05f",
        "type": "modbus-write",
        "z": "ae85bb136e04b23a",
        "g": "083d06963a6bcb15",
        "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": 1200,
        "y": 540,
        "wires": [
            [],
            [
                "2941c48c09d9e170"
            ]
        ]
    },
    {
        "id": "44173d374eda3eb5",
        "type": "inject",
        "z": "ae85bb136e04b23a",
        "g": "13c648b1fe57a7af",
        "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": [
            [
                "3e81ae85bb571592"
            ]
        ]
    },
    {
        "id": "8d8c2572e8beb71b",
        "type": "inject",
        "z": "ae85bb136e04b23a",
        "g": "13c648b1fe57a7af",
        "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": [
            [
                "3e81ae85bb571592"
            ]
        ]
    },
    {
        "id": "8a293ec99fb96676",
        "type": "modbus-response",
        "z": "ae85bb136e04b23a",
        "g": "13c648b1fe57a7af",
        "name": "",
        "registerShowMax": 20,
        "x": 750,
        "y": 700,
        "wires": []
    },
    {
        "id": "3e81ae85bb571592",
        "type": "modbus-write",
        "z": "ae85bb136e04b23a",
        "g": "13c648b1fe57a7af",
        "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": [
            [],
            [
                "8a293ec99fb96676"
            ]
        ]
    },
    {
        "id": "d8b90df8f928c1a8",
        "type": "comment",
        "z": "ae85bb136e04b23a",
        "name": "Modbus TCP master (client) example for RPI PLC 21 ",
        "info": "",
        "x": 250,
        "y": 40,
        "wires": []
    },
    {
        "id": "ae42579ee72e50cb",
        "type": "modbus-response",
        "z": "ae85bb136e04b23a",
        "g": "13c648b1fe57a7af",
        "name": "",
        "registerShowMax": 20,
        "x": 750,
        "y": 300,
        "wires": []
    },
    {
        "id": "ed7a6f56dfcca362",
        "type": "inject",
        "z": "ae85bb136e04b23a",
        "g": "083d06963a6bcb15",
        "name": "",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "1000",
        "payloadType": "num",
        "x": 970,
        "y": 640,
        "wires": [
            [
                "06639f4def7e3e4a"
            ]
        ]
    },
    {
        "id": "175e1f085f4f6b24",
        "type": "inject",
        "z": "ae85bb136e04b23a",
        "g": "083d06963a6bcb15",
        "name": "",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "200",
        "payloadType": "num",
        "x": 970,
        "y": 680,
        "wires": [
            [
                "06639f4def7e3e4a"
            ]
        ]
    },
    {
        "id": "77d795fdee3c7094",
        "type": "inject",
        "z": "ae85bb136e04b23a",
        "g": "083d06963a6bcb15",
        "name": "",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "0",
        "payloadType": "num",
        "x": 970,
        "y": 720,
        "wires": [
            [
                "06639f4def7e3e4a"
            ]
        ]
    },
    {
        "id": "9ac32d241d183f95",
        "type": "modbus-response",
        "z": "ae85bb136e04b23a",
        "g": "083d06963a6bcb15",
        "name": "",
        "registerShowMax": 20,
        "x": 1570,
        "y": 680,
        "wires": []
    },
    {
        "id": "06639f4def7e3e4a",
        "type": "modbus-write",
        "z": "ae85bb136e04b23a",
        "g": "083d06963a6bcb15",
        "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": 1200,
        "y": 680,
        "wires": [
            [],
            [
                "9ac32d241d183f95"
            ]
        ]
    },
    {
        "id": "50f02c45b04b7ef8",
        "type": "function",
        "z": "ae85bb136e04b23a",
        "g": "083d06963a6bcb15",
        "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": 1120,
        "y": 800,
        "wires": [
            [
                "13c7fd1d5fb7022e"
            ]
        ]
    },
    {
        "id": "a0cecbb6e2cd25e8",
        "type": "modbus-client",
        "name": "",
        "clienttype": "tcp",
        "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": "none",
        "serialConnectionDelay": "100",
        "serialAsciiResponseStartDelimiter": "0x3A",
        "unit_id": "1",
        "commandDelay": "1",
        "clientTimeout": "1000",
        "reconnectOnTimeout": true,
        "reconnectTimeout": "2000",
        "parallelUnitIdsAllowed": true,
        "showErrors": false,
        "showWarnings": true,
        "showLogs": true
    }
]