Issues with node-red-contrib-modbus

Hello,

I would like to ask if somebody else started facing problems with modbus node.

I am using modbus node for controlling relay on moxa IO box, which was working fine for more than a year. Now it happens to see that 50 % of the time moxa is not getting an input signal when I trigger with inject node(boolean value) on first click and it gets the signal which when i push it one more time.

I am using more than one IO box, And its the same thing happening so problem is not with device.

Flow attached. Would be great if anyone knows the solution.

[
    {
        "id": "25525bc063305b54",
        "type": "modbus-write",
        "z": "b4025e3a89e49fec",
        "name": "Agilox_smalldoor",
        "showStatusActivities": false,
        "showErrors": true,
        "showWarnings": true,
        "unitid": "",
        "dataType": "Coil",
        "adr": "00001",
        "quantity": "1",
        "server": "82eb44ba90c0f8ed",
        "emptyMsgOnFail": false,
        "keepMsgProperties": false,
        "delayOnStart": false,
        "startDelayTime": "",
        "x": 770,
        "y": 300,
        "wires": [
            [
                "aed8dcb025510f5a"
            ],
            []
        ]
    },
    {
        "id": "2558cb68abf2d267",
        "type": "inject",
        "z": "b4025e3a89e49fec",
        "name": "",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "false",
        "payloadType": "bool",
        "x": 590,
        "y": 300,
        "wires": [
            [
                "25525bc063305b54",
                "e48392b210fdacfb"
            ]
        ]
    },
    {
        "id": "e48392b210fdacfb",
        "type": "debug",
        "z": "b4025e3a89e49fec",
        "name": "",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "false",
        "statusVal": "",
        "statusType": "auto",
        "x": 820,
        "y": 240,
        "wires": []
    },
    {
        "id": "aed8dcb025510f5a",
        "type": "debug",
        "z": "b4025e3a89e49fec",
        "name": "",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "false",
        "statusVal": "",
        "statusType": "auto",
        "x": 950,
        "y": 300,
        "wires": []
    },
    {
        "id": "82eb44ba90c0f8ed",
        "type": "modbus-client",
        "name": "Latest_mechanical_side_room",
        "clienttype": "tcp",
        "bufferCommands": true,
        "stateLogEnabled": false,
        "queueLogEnabled": false,
        "failureLogEnabled": false,
        "tcpHost": "",
        "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
    }
]

So you using exacly the same configuration for over a year?
Or you add some devices recently? Maybe another client?
Did yopu check the ethernet/lan network?

Hi it started working normally after few days.

Have no idea what happened. Thanks a lot.

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