Write data to plc using s7 comm

Can I minimize this Flow to be in one flow:

[
    {
        "id": "854bd5d297c3580f",
        "type": "s7comm write",
        "z": "9d4d11fb464940c4",
        "connection": "9f73cf0bb98275cb",
        "payload": "{\"S7_Type\":\"DB\",\"S7_DBnum\":\"1010\",\"S7_Datatype\":\"DI\",\"S7_Offset\":\"106\",\"S7_BitOffset\":\"0\",\"S7_Quantity\":\"1\",\"S7_Name\":\"JOB\"}",
        "s7Name": "JOB",
        "topic": "",
        "name": "PROGRAM",
        "signalSetted": false,
        "x": 670,
        "y": 320,
        "wires": [
            []
        ]
    },
    {
        "id": "82f73117a7bfd407",
        "type": "s7comm write",
        "z": "9d4d11fb464940c4",
        "connection": "9f73cf0bb98275cb",
        "payload": "{\"S7_Type\":\"DB\",\"S7_DBnum\":\"1010\",\"S7_Datatype\":\"DI\",\"S7_Offset\":\"106\",\"S7_BitOffset\":\"0\",\"S7_Quantity\":\"1\",\"S7_Name\":\"JOB\"}",
        "s7Name": "JOB",
        "topic": "",
        "name": "JOB",
        "signalSetted": false,
        "x": 650,
        "y": 380,
        "wires": [
            []
        ]
    },
    {
        "id": "e0868309fa5adf09",
        "type": "s7comm write",
        "z": "9d4d11fb464940c4",
        "connection": "9f73cf0bb98275cb",
        "payload": "{\"S7_Type\":\"DB\",\"S7_DBnum\":\"1010\",\"S7_Datatype\":\"CHAR\",\"S7_Offset\":\"130\",\"S7_BitOffset\":\"0\",\"S7_Quantity\":\"1\",\"S7_Name\":\"JOB_CODE\"}",
        "s7Name": "JOB_CODE",
        "topic": "",
        "name": "JOB_CODE",
        "signalSetted": false,
        "x": 670,
        "y": 440,
        "wires": [
            []
        ]
    },
    {
        "id": "2afbc11059ad53c7",
        "type": "function",
        "z": "9d4d11fb464940c4",
        "name": "PORGRAM",
        "func": "msg.payload = {  \"value\":125 }\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 510,
        "y": 320,
        "wires": [
            [
                "854bd5d297c3580f"
            ]
        ]
    },
    {
        "id": "c3df54979d701f33",
        "type": "function",
        "z": "9d4d11fb464940c4",
        "name": "JOB",
        "func": "msg.payload = { \"value\": 343 }\n\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 510,
        "y": 380,
        "wires": [
            [
                "82f73117a7bfd407"
            ]
        ]
    },
    {
        "id": "75e401bb11f870c8",
        "type": "function",
        "z": "9d4d11fb464940c4",
        "name": "JOB CODE",
        "func": "msg.payload = {\n    \"value\": 'F'\n}\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 510,
        "y": 440,
        "wires": [
            [
                "e0868309fa5adf09"
            ]
        ]
    },
    {
        "id": "39d9b6516dd05e97",
        "type": "inject",
        "z": "9d4d11fb464940c4",
        "name": "",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "",
        "payloadType": "date",
        "x": 240,
        "y": 420,
        "wires": [
            [
                "2afbc11059ad53c7",
                "c3df54979d701f33",
                "75e401bb11f870c8"
            ]
        ]
    },
    {
        "id": "9f73cf0bb98275cb",
        "type": "s7comm",
        "ip": "172.31.51.13",
        "port": "102",
        "rack": "0",
        "slot": "4",
        "payload": [
            {
                "S7_Type": "DB",
                "S7_DBnum": "1010",
                "S7_Datatype": "DI",
                "S7_Offset": "102",
                "S7_BitOffset": "0",
                "S7_Quantity": "1",
                "S7_Name": "PROGRAM"
            },
            {
                "S7_Type": "DB",
                "S7_DBnum": "1010",
                "S7_Datatype": "DI",
                "S7_Offset": "106",
                "S7_BitOffset": "0",
                "S7_Quantity": "1",
                "S7_Name": "JOB"
            },
            {
                "S7_Type": "DB",
                "S7_DBnum": "1010",
                "S7_Datatype": "CHAR",
                "S7_Offset": "130",
                "S7_BitOffset": "0",
                "S7_Quantity": "1",
                "S7_Name": "JOB_CODE"
            }
        ]
    }
]

Make a subflow?? Or what do you like todo?

What do you really mean?

Are you wanting to write all values in one network transmission (for data consistency improvements)?

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.