# Issues with node-red-contrib-modbus

**URL:** <https://discourse.nodered.org/t/issues-with-node-red-contrib-modbus/79318>\
**Category:** Industrial\
**Tags:** modbus\
**Created:** [20 June 2023 13:27 UTC](https://discourse.nodered.org/t/issues-with-node-red-contrib-modbus/79318 "2023-06-20T13:27:45Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![colin0031](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin0031/32/85027_2.png) [@colin0031](https://discourse.nodered.org/u/colin0031)\
**Post date:** [20 June 2023 13:27 UTC](https://discourse.nodered.org/t/issues-with-node-red-contrib-modbus/79318/1 "2023-06-20T13:27:45Z")

</div>

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.

```auto
[
    {
        "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
    }
]

```

---

<div class="post-metadata">

**Author:** ![rrabbit454](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/rrabbit454/32/74694_2.png) [@rrabbit454](https://discourse.nodered.org/u/rrabbit454)\
**Post date:** [17 July 2023 21:00 UTC](https://discourse.nodered.org/t/issues-with-node-red-contrib-modbus/79318/2 "2023-07-17T21:00:27Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![colin0031](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin0031/32/85027_2.png) [@colin0031](https://discourse.nodered.org/u/colin0031)\
**Post date:** [18 July 2023 14:29 UTC](https://discourse.nodered.org/t/issues-with-node-red-contrib-modbus/79318/3 "2023-07-18T14:29:46Z")

</div>

Hi it started working normally after few days.

Have no idea what happened. Thanks a lot.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [16 September 2023 14:30 UTC](https://discourse.nodered.org/t/issues-with-node-red-contrib-modbus/79318/4 "2023-09-16T14:30:24Z")

</div>

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