# Omron CJ2M CPU33 Connected! Cannot read data

**URL:** https://discourse.nodered.org/t/omron-cj2m-cpu33-connected-cannot-read-data/51604
**Category:** Industrial
**Created:** [28 September 2021 07:54 UTC](https://discourse.nodered.org/t/omron-cj2m-cpu33-connected-cannot-read-data/51604 "2021-09-28T07:54:52Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![DonCube](https://avatars.discourse-cdn.com/v4/letter/d/c37758/32.png) [@DonCube](https://discourse.nodered.org/u/DonCube)
#### Post date: [28 September 2021 07:54 UTC](https://discourse.nodered.org/t/omron-cj2m-cpu33-connected-cannot-read-data/51604/1 "2021-09-28T07:54:52Z")

</div>

![232](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/a/e/ae5328a46063b3a844d3a7c2132e3fb38fc14210.jpeg)  
when i run the flow, it is connected to the plc but when i try to read data, timeout occur.  
Anyone have encounter this issue? Your help is highly appreciated..

---

<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: [28 September 2021 08:04 UTC](https://discourse.nodered.org/t/omron-cj2m-cpu33-connected-cannot-read-data/51604/2 "2021-09-28T08:04:58Z")

</div>

It is likely the FINS parameters are incorrect on the config node or your PLC or the PLC routing table.

Did you follow the info on the [readme](https://flows.nodered.org/node/node-red-contrib-omron-fins)?

Also, read through the [closed issues](https://github.com/Steve-Mcl/node-red-contrib-omron-fins/issues?q=is%3Aissue+is%3Aclosed) on github

If you still have an issue, let me know your PLC settings (IP address+subnet mask, TCP or UDP, port number, FINS Node Number setting on front dials, Routing table details AND a screenshot of the config node settings)

---

<div class="post-metadata">

### Author: ![DonCube](https://avatars.discourse-cdn.com/v4/letter/d/c37758/32.png) [@DonCube](https://discourse.nodered.org/u/DonCube)
#### Post date: [29 September 2021 07:09 UTC](https://discourse.nodered.org/t/omron-cj2m-cpu33-connected-cannot-read-data/51604/3 "2021-09-29T07:09:08Z")

</div>

![finudp](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/9/b/9be1353f39bcbca48d73baa4e92cdaa0b98505ad.jpeg)  
 ![plcsr](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/e/1/e10f5ec198265870388f01bb06be8d03bfcd428b.jpeg)

---

<div class="post-metadata">

### Author: ![DonCube](https://avatars.discourse-cdn.com/v4/letter/d/c37758/32.png) [@DonCube](https://discourse.nodered.org/u/DonCube)
#### Post date: [29 September 2021 07:09 UTC](https://discourse.nodered.org/t/omron-cj2m-cpu33-connected-cannot-read-data/51604/4 "2021-09-29T07:09:49Z")

</div>

![raspi](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/a/5/a5892ae23140420b176cd8aa58ede52b1ce5e68d.jpeg)  
 ![tcpip](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/7/7/77c1e3a5528d4bafcbea8f522011b8de52b0bd86.jpeg)

---

<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: [29 September 2021 07:15 UTC](https://discourse.nodered.org/t/omron-cj2m-cpu33-connected-cannot-read-data/51604/5 "2021-09-29T07:15:29Z")

</div>

You have protocol set incorrectly. Should be UDP

---

<div class="post-metadata">

### Author: ![DonCube](https://avatars.discourse-cdn.com/v4/letter/d/c37758/32.png) [@DonCube](https://discourse.nodered.org/u/DonCube)
#### Post date: [29 September 2021 07:16 UTC](https://discourse.nodered.org/t/omron-cj2m-cpu33-connected-cannot-read-data/51604/6 "2021-09-29T07:16:35Z")

</div>

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/f/b/fb0e00e0a090f7c23117c2feb894e44801d2b509.png)  
I want to read the D03552, 32bit and this error occur

---

<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: [29 September 2021 07:18 UTC](https://discourse.nodered.org/t/omron-cj2m-cpu33-connected-cannot-read-data/51604/7 "2021-09-29T07:18:05Z")

</div>

32bit is 2 WORDs. You are only asking for 1 WORD

Did you change connection protocol to UDP?

---

<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: [29 September 2021 07:19 UTC](https://discourse.nodered.org/t/omron-cj2m-cpu33-connected-cannot-read-data/51604/8 "2021-09-29T07:19:49Z")

</div>

For 32bit numbers, set the output to Buffer & use buffer parser to convert to 32bit.

I'm sure there is a demo in the import examples (CTRL+I)

---

<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: [29 September 2021 07:20 UTC](https://discourse.nodered.org/t/omron-cj2m-cpu33-connected-cannot-read-data/51604/9 "2021-09-29T07:20:53Z")

</div>

Lastly, what are the node number dials on the front of the PLC set to? Show me a photo of the 2 node number dials.

---

<div class="post-metadata">

### Author: ![DonCube](https://avatars.discourse-cdn.com/v4/letter/d/c37758/32.png) [@DonCube](https://discourse.nodered.org/u/DonCube)
#### Post date: [29 September 2021 07:24 UTC](https://discourse.nodered.org/t/omron-cj2m-cpu33-connected-cannot-read-data/51604/10 "2021-09-29T07:24:34Z")

</div>

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/5/2/52440b64bc43897360d3e5f266f517a612097061.png)  
i got this error when i change to udp, what do i need to set in the PLC side? i use CX one programmer

---

<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: [29 September 2021 07:51 UTC](https://discourse.nodered.org/t/omron-cj2m-cpu33-connected-cannot-read-data/51604/11 "2021-09-29T07:51:33Z")

</div>

Is your version of fins node up to date?

I seem to remember a bug.

Also, what version of nodejs is on your node-red machine?

---

<div class="post-metadata">

### Author: ![DonCube](https://avatars.discourse-cdn.com/v4/letter/d/c37758/32.png) [@DonCube](https://discourse.nodered.org/u/DonCube)
#### Post date: [29 September 2021 07:52 UTC](https://discourse.nodered.org/t/omron-cj2m-cpu33-connected-cannot-read-data/51604/12 "2021-09-29T07:52:10Z")

</div>

Steve, how can i find the node number?

---

<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: [29 September 2021 07:52 UTC](https://discourse.nodered.org/t/omron-cj2m-cpu33-connected-cannot-read-data/51604/13 "2021-09-29T07:52:48Z")

</div>

Physical rotary dials on front of plc. Take photo. Show me.

---

<div class="post-metadata">

### Author: ![DonCube](https://avatars.discourse-cdn.com/v4/letter/d/c37758/32.png) [@DonCube](https://discourse.nodered.org/u/DonCube)
#### Post date: [29 September 2021 07:54 UTC](https://discourse.nodered.org/t/omron-cj2m-cpu33-connected-cannot-read-data/51604/14 "2021-09-29T07:54:35Z")

</div>

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/d/5/d5647a75fdc113b10fb1f8397aa7691fd80c13f1.png)

---

<div class="post-metadata">

### Author: ![DonCube](https://avatars.discourse-cdn.com/v4/letter/d/c37758/32.png) [@DonCube](https://discourse.nodered.org/u/DonCube)
#### Post date: [29 September 2021 07:57 UTC](https://discourse.nodered.org/t/omron-cj2m-cpu33-connected-cannot-read-data/51604/15 "2021-09-29T07:57:36Z")

</div>

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/4/c/4cab5aa196d5cbc93ecd42a9dc2f85f533cb5d2f.png)

---

<div class="post-metadata">

### Author: ![DonCube](https://avatars.discourse-cdn.com/v4/letter/d/c37758/32.png) [@DonCube](https://discourse.nodered.org/u/DonCube)
#### Post date: [29 September 2021 08:25 UTC](https://discourse.nodered.org/t/omron-cj2m-cpu33-connected-cannot-read-data/51604/16 "2021-09-29T08:25:40Z")

</div>

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/5/9/5934c51207eb9432caf5a28d32630298ed133d66.jpeg)  
his is the dial setup

---

<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: [29 September 2021 08:28 UTC](https://discourse.nodered.org/t/omron-cj2m-cpu33-connected-cannot-read-data/51604/17 "2021-09-29T08:28:57Z")

</div>

You mode number is set incorrectly. It should be the same as the last octet of the IP address.

2 options...

- change dials to read `0 B`  
Or
- Change PLC IP to `a.b.c.10` to match current node number setting.

Then power off/on plc.

---

<div class="post-metadata">

### Author: ![DonCube](https://avatars.discourse-cdn.com/v4/letter/d/c37758/32.png) [@DonCube](https://discourse.nodered.org/u/DonCube)
#### Post date: [29 September 2021 08:29 UTC](https://discourse.nodered.org/t/omron-cj2m-cpu33-connected-cannot-read-data/51604/18 "2021-09-29T08:29:44Z")

</div>

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/4/6/46b4f493591d172596a4c0f85af51fbd62b3d461.png)

---

<div class="post-metadata">

### Author: ![DonCube](https://avatars.discourse-cdn.com/v4/letter/d/c37758/32.png) [@DonCube](https://discourse.nodered.org/u/DonCube)
#### Post date: [29 September 2021 08:30 UTC](https://discourse.nodered.org/t/omron-cj2m-cpu33-connected-cannot-read-data/51604/19 "2021-09-29T08:30:19Z")

</div>

Ok i will try it, on production line..

---

<div class="post-metadata">

### Author: ![DonCube](https://avatars.discourse-cdn.com/v4/letter/d/c37758/32.png) [@DonCube](https://discourse.nodered.org/u/DonCube)
#### Post date: [30 September 2021 03:32 UTC](https://discourse.nodered.org/t/omron-cj2m-cpu33-connected-cannot-read-data/51604/20 "2021-09-30T03:32:11Z")

</div>

Steve, i have already change the dials to 0B and still i cannot read data. I have observe also that when i Inject using the UDP connect error is occur see image below..but when i use TCP it tell that it is connected. What can i change in the PLC setting?

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/1/b/1b992aa82c8ade8759a0734f97eae43cd26396a9.png)

Do i need to change something in this setting?

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/1/3/132e1bf9e030228c1ba744142294ef48183946a0.png)

[Next page](https://discourse.nodered.org/t/omron-cj2m-cpu33-connected-cannot-read-data/51604.md?page=2)
