Status node not working

Hi,
I am not able to get status from Status node. Output is always "undefined".
My nodered flow is as below:

[
    {
        "id": "8ba35e7a5a5f4383",
        "type": "modbus-read",
        "z": "12ee9b8b0c05cf74",
        "name": "",
        "topic": "",
        "showStatusActivities": false,
        "logIOActivities": false,
        "showErrors": false,
        "unitid": "",
        "dataType": "HoldingRegister",
        "adr": "256",
        "quantity": "2",
        "rate": "1",
        "rateUnit": "s",
        "delayOnStart": false,
        "startDelayTime": "",
        "server": "a03e31eb585a8108",
        "useIOFile": false,
        "ioFile": "",
        "useIOForPayload": false,
        "emptyMsgOnFail": false,
        "x": 450,
        "y": 300,
        "wires": [
            [
                "d18b5ad337dbe8a2"
            ],
            []
        ]
    },
    {
        "id": "d18b5ad337dbe8a2",
        "type": "debug",
        "z": "12ee9b8b0c05cf74",
        "name": "",
        "active": false,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "false",
        "statusVal": "",
        "statusType": "auto",
        "x": 730,
        "y": 300,
        "wires": []
    },
    {
        "id": "a2acd8b071117f8e",
        "type": "status",
        "z": "12ee9b8b0c05cf74",
        "name": "",
        "scope": [
            "8ba35e7a5a5f4383"
        ],
        "x": 460,
        "y": 400,
        "wires": [
            [
                "4080e3c66de9f037"
            ]
        ]
    },
    {
        "id": "4080e3c66de9f037",
        "type": "debug",
        "z": "12ee9b8b0c05cf74",
        "name": "",
        "active": false,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "false",
        "statusVal": "",
        "statusType": "auto",
        "x": 670,
        "y": 400,
        "wires": []
    },
    {
        "id": "a03e31eb585a8108",
        "type": "modbus-client",
        "name": "",
        "clienttype": "tcp",
        "bufferCommands": true,
        "stateLogEnabled": false,
        "queueLogEnabled": false,
        "tcpHost": "192.168.100.45",
        "tcpPort": "502",
        "tcpType": "DEFAULT",
        "serialPort": "/dev/ttyUSB",
        "serialType": "RTU-BUFFERD",
        "serialBaudrate": "9600",
        "serialDatabits": "8",
        "serialStopbits": "1",
        "serialParity": "none",
        "serialConnectionDelay": "100",
        "unit_id": 1,
        "commandDelay": 1,
        "clientTimeout": 1000,
        "reconnectOnTimeout": true,
        "reconnectTimeout": 2000,
        "parallelUnitIdsAllowed": true
    }
]

Please support on how to get the status. In this example, I am trying to get status of modbus read node, but Status node is not working in general for any node.
Node Red Version: Node-RED v2.2.2

node-red-contrib-modbus version : 5.14.0

Admin edit: added missing ] on the end of the flow, somehow it was missing, which prevented the flow from being imported.

Set your debug node to Output Full Message and have a look at what is in the message.

1 Like

Thanks a lot Colin. All the information is available at different attributes other than payload. it works well. Thanks again.

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