# Read Omron CJ2M PLC using RS485 (serial ; NOT FINS)

**URL:** https://discourse.nodered.org/t/read-omron-cj2m-plc-using-rs485-serial-not-fins/76538
**Category:** Industrial
**Tags:** node-red-dashboard, function-node
**Created:** [14 March 2023 07:44 UTC](https://discourse.nodered.org/t/read-omron-cj2m-plc-using-rs485-serial-not-fins/76538 "2023-03-14T07:44:48Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![jagades](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/jagades/32/75744_2.png) [@jagades](https://discourse.nodered.org/u/jagades)
#### Post date: [14 March 2023 07:44 UTC](https://discourse.nodered.org/t/read-omron-cj2m-plc-using-rs485-serial-not-fins/76538/1 "2023-03-14T07:44:48Z")

</div>

Hi. I am getting a list of error messages when using Omron C-mode response. Need help on this.

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/7/0/70576d29b23469c8d74400b2e434f0499d48710c.png)

Below is my flow:

```auto
[
    {
        "id": "cfea0554f6f26498",
        "type": "tab",
        "label": "Flow 3",
        "disabled": false,
        "info": "",
        "env": []
    },
    {
        "id": "b026669094492a69",
        "type": "C-Mode Command",
        "z": "cfea0554f6f26498",
        "name": "CP2E",
        "plcSeries": "CSJP",
        "hostNumber": "1",
        "headerCode": "RD",
        "p1": "20",
        "p2": "1",
        "p3": "",
        "x": 310,
        "y": 140,
        "wires": [
            [
                "c1a4dbfe61b7aeee"
            ]
        ]
    },
    {
        "id": "09145cf523d6f79f",
        "type": "C-Mode Response",
        "z": "cfea0554f6f26498",
        "name": "",
        "x": 650,
        "y": 100,
        "wires": [
            [
                "c6b0c58683bdf2fd"
            ]
        ]
    },
    {
        "id": "b7aa09c6bb45d34b",
        "type": "inject",
        "z": "cfea0554f6f26498",
        "name": "",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "1",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "",
        "payloadType": "date",
        "x": 150,
        "y": 120,
        "wires": [
            [
                "b026669094492a69"
            ]
        ]
    },
    {
        "id": "c6b0c58683bdf2fd",
        "type": "debug",
        "z": "cfea0554f6f26498",
        "name": "debug 10",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "payload",
        "targetType": "msg",
        "statusVal": "",
        "statusType": "auto",
        "x": 780,
        "y": 180,
        "wires": []
    },
    {
        "id": "c1a4dbfe61b7aeee",
        "type": "serial request",
        "z": "cfea0554f6f26498",
        "name": "",
        "serial": "5f558d3bfc5eee56",
        "x": 460,
        "y": 120,
        "wires": [
            [
                "09145cf523d6f79f"
            ]
        ]
    },
    {
        "id": "5f558d3bfc5eee56",
        "type": "serial-port",
        "serialport": "COM11",
        "serialbaud": "9600",
        "databits": "7",
        "parity": "even",
        "stopbits": "2",
        "waitfor": "",
        "dtr": "none",
        "rts": "none",
        "cts": "none",
        "dsr": "none",
        "newline": "\\n",
        "bin": "false",
        "out": "char",
        "addchar": "",
        "responsetimeout": "10000"
    }
]

```

---

<div class="post-metadata">

### Author: ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)
#### Post date: [14 March 2023 08:11 UTC](https://discourse.nodered.org/t/read-omron-cj2m-plc-using-rs485-serial-not-fins/76538/2 "2023-03-14T08:11:35Z")

</div>

Place a debug node on the output of the serial request node - What response do you see from the PLC?

---

<div class="post-metadata">

### Author: ![jagades](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/jagades/32/75744_2.png) [@jagades](https://discourse.nodered.org/u/jagades)
#### Post date: [15 March 2023 01:17 UTC](https://discourse.nodered.org/t/read-omron-cj2m-plc-using-rs485-serial-not-fins/76538/3 "2023-03-15T01:17:20Z")

</div>

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/4/5/450542f30ecc35cbcfe7f1a9072c69d85f376d2a.png)  
This is what I see, now the buffer parser is also showing an error

---

<div class="post-metadata">

### Author: ![jagades](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/jagades/32/75744_2.png) [@jagades](https://discourse.nodered.org/u/jagades)
#### Post date: [15 March 2023 01:31 UTC](https://discourse.nodered.org/t/read-omron-cj2m-plc-using-rs485-serial-not-fins/76538/4 "2023-03-15T01:31:34Z")

</div>

![Recording #11](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/7/d/7db61d04e1b42e60ffe56fb23725306a85751c83.gif)

---

<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: [14 May 2023 01:31 UTC](https://discourse.nodered.org/t/read-omron-cj2m-plc-using-rs485-serial-not-fins/76538/5 "2023-05-14T01:31:56Z")

</div>

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