Siemens PLC communication using TCP IP node

Hello Everyone,

I am new to node-red and learning about it using internet.

I have found various information about siemens PLC - node red communication by using S7 comm & modbus TCP nodes but Is it possible to use tcp in/ tcp out/tcp request nodes for Siemens PLC communication?

I am using TSEND_C instruction in TIA portal with below settings

I can see connection is established in PLC and nod red but I can not see the data i am trying to send through TSEND_C instruction in node-red. Can you guys please suggest if i am missing something?

@RAW I have deleted the other topic you started. Please repost the flow here following the guide here: How to share code or flow json

[
    {
        "id": "859a3b1.9af2bc8",
        "type": "tcp request",
        "z": "543af69d.409c98",
        "server": "localhost",
        "port": "1880",
        "out": "immed",
        "splitc": " ",
        "name": "",
        "x": 490,
        "y": 140,
        "wires": [
            [
                "d2c885ce.a925e8"
            ]
        ]
    },
    {
        "id": "d2c885ce.a925e8",
        "type": "debug",
        "z": "543af69d.409c98",
        "name": "",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "false",
        "x": 750,
        "y": 140,
        "wires": []
    },
    {
        "id": "b3650240.f8451",
        "type": "inject",
        "z": "543af69d.409c98",
        "name": "",
        "topic": "",
        "payload": "",
        "payloadType": "date",
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "x": 180,
        "y": 140,
        "wires": [
            [
                "859a3b1.9af2bc8"
            ]
        ]
    },
    {
        "id": "c2d2d24f.9b069",
        "type": "tcp in",
        "z": "543af69d.409c98",
        "name": "",
        "server": "client",
        "host": "localhost",
        "port": "1880",
        "datamode": "stream",
        "datatype": "buffer",
        "newline": "",
        "topic": "",
        "base64": false,
        "x": 440,
        "y": 260,
        "wires": [
            [
                "ff90e5a7.dc5b68"
            ]
        ]
    },
    {
        "id": "ff90e5a7.dc5b68",
        "type": "tcp out",
        "z": "543af69d.409c98",
        "host": "",
        "port": "1880",
        "beserver": "server",
        "base64": false,
        "end": false,
        "name": "",
        "x": 660,
        "y": 260,
        "wires": []
    }
]

Hello, the port that you are listening on in node-red should be the same as the port you configured in the PLC connection. You look to have set this to 1880 where as it should be what you have set up in the plc (from pic this is 2000)

I have a question, why don´t you simply use the s7 node, as you mentioned above?

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