Node-REDとPLCの連携_その2_CODE

22nd September 2021 at 11:07pm
[
    {
        "id": "2e62a1bb596cf15a",
        "type": "inject",
        "z": "b3393683208de635",
        "name": "",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "0.1",
        "crontab": "",
        "once": true,
        "onceDelay": 0.1,
        "topic": "",
        "payloadType": "date",
        "x": 320,
        "y": 160,
        "wires": [
            [
                "d6414f71410301ff",
                "af0a509658db49b5"
            ]
        ]
    },
    {
        "id": "d6414f71410301ff",
        "type": "MC Read",
        "z": "b3393683208de635",
        "name": "",
        "topic": "",
        "connection": "9844a8592ebaeb58",
        "address": "M0",
        "addressType": "str",
        "outputFormat": 0,
        "errorHandling": "throw",
        "outputs": 1,
        "x": 520,
        "y": 160,
        "wires": [
            [
                "cd74f93cf021908f"
            ]
        ]
    },
    {
        "id": "cd74f93cf021908f",
        "type": "ui_text",
        "z": "b3393683208de635",
        "group": "da28ed897f0a418c",
        "order": 0,
        "width": 0,
        "height": 0,
        "name": "",
        "label": "M0",
        "format": "{{msg.payload}}",
        "layout": "row-spread",
        "x": 670,
        "y": 160,
        "wires": []
    },
    {
        "id": "33ddf551954f7cc9",
        "type": "ui_text",
        "z": "b3393683208de635",
        "group": "da28ed897f0a418c",
        "order": 1,
        "width": 0,
        "height": 0,
        "name": "",
        "label": "D0",
        "format": "{{msg.payload}}",
        "layout": "row-spread",
        "x": 670,
        "y": 220,
        "wires": []
    },
    {
        "id": "af0a509658db49b5",
        "type": "MC Read",
        "z": "b3393683208de635",
        "name": "",
        "topic": "",
        "connection": "9844a8592ebaeb58",
        "address": "D0",
        "addressType": "str",
        "outputFormat": 0,
        "errorHandling": "throw",
        "outputs": 1,
        "x": 520,
        "y": 220,
        "wires": [
            [
                "33ddf551954f7cc9"
            ]
        ]
    },
    {
        "id": "9844a8592ebaeb58",
        "type": "MC Protocol Connection",
        "name": "hoge",
        "host": "192.168.0.1",
        "port": "4000",
        "protocol": "UDP",
        "frame": "4E",
        "plcType": "Q",
        "ascii": false,
        "PLCStation": "",
        "PCStation": "",
        "PLCModuleNo": "",
        "network": "",
        "octalInputOutput": false,
        "timeout": "1000"
    },
    {
        "id": "da28ed897f0a418c",
        "type": "ui_group",
        "name": "デフォルト",
        "tab": "193f7413a392b1b1",
        "order": 1,
        "disp": true,
        "width": "6",
        "collapse": false
    },
    {
        "id": "193f7413a392b1b1",
        "type": "ui_tab",
        "name": "ホーム",
        "icon": "dashboard",
        "disabled": false,
        "hidden": false
    }
]