# Read Variables OMRON NJ101 or NJ301

**URL:** <https://discourse.nodered.org/t/read-variables-omron-nj101-or-nj301/30600>\
**Category:** Industrial\
**Created:** [23 July 2020 10:47 UTC](https://discourse.nodered.org/t/read-variables-omron-nj101-or-nj301/30600 "2020-07-23T10:47:42Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ARP](https://avatars.discourse-cdn.com/v4/letter/a/d26b3c/32.png) [@ARP](https://discourse.nodered.org/u/ARP)\
**Post date:** [23 July 2020 10:47 UTC](https://discourse.nodered.org/t/read-variables-omron-nj101-or-nj301/30600/1 "2020-07-23T10:47:42Z")

</div>

How can I read data from an NJ301 or NJ101 OMRON PLC from node-red?

I am trying to use the "FINS Read" node of [https://flows.nodered.org/node/node-red-contrib-omron-fins](https://flows.nodered.org/node/node-red-contrib-omron-fins).

In the GitHub description [https://github.com/Steve-Mcl/node-red-contrib-omron-fins](https://github.com/Steve-Mcl/node-red-contrib-omron-fins) says it works for NJ, but when trying to read a variable I get:

"Response is NG! endCode: 2108, endCodeDescription:Write Not Possible: Cannot change."

How should the node and the PLC be configured?  
I attach the OMRON configuration. For the NODE-RED I followed the specifications in the webpages

 ![ConfigOMRON_FINS](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/6/4/644a131c2c4463c95d73e9c56689eae4d9c58b63.png)  
 ![ConfigOMRON_GlobalVar](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/9/6/96903456efa25ce5e4fc80151ce83b7279ace6d4.png)

---

<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:** [23 July 2020 18:46 UTC](https://discourse.nodered.org/t/read-variables-omron-nj101-or-nj301/30600/2 "2020-07-23T18:46:27Z")

</div>

show me your connection setup.

Also, refer to the [read.me](https://github.com/Steve-Mcl/node-red-contrib-omron-fins/blob/master/README.md) - it shows you the necessary steps to make it work with an NJ/NX

In particular - you need to add global variables with the `AT` address set.

---

<div class="post-metadata">

**Author:** ![ARP](https://avatars.discourse-cdn.com/v4/letter/a/d26b3c/32.png) [@ARP](https://discourse.nodered.org/u/ARP)\
**Post date:** [25 July 2020 10:26 UTC](https://discourse.nodered.org/t/read-variables-omron-nj101-or-nj301/30600/3 "2020-07-25T10:26:20Z")

</div>

Thank you for your reply,

You can see how the global variable is set in an image of the first message, with address: %E0\_9000.

I attach the images of the setup in node-red

 ![FINS_connection](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/3/6/367e37163e9c2faf339eb2b934eddf173c8e1f05.png) ![FINS_read](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/6/a/6a504df66f4d3b62e1cf9f965367bea0b38940ee.png)

---

<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:** [25 July 2020 11:29 UTC](https://discourse.nodered.org/t/read-variables-omron-nj101-or-nj301/30600/4 "2020-07-25T11:29:52Z")

</div>

looks ok 🤔

Can you answer a few things...

- can you ping the PLC from the node-red machine?
- can you verify the IP of your node-red machine is definitely 192.168.250.100?
- what is the subnet mask of your node-red machine?
- what is the subnet mask of your PLC?
- is there a firewall between node-red machine and PLC?
- are the PLC and SYSMAC Studio projects synchronised?

things to try...  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/b/5/b58f9c19d58f4f7d24da9ac31ec48c014bd6999c.png)

things to read...  
I helped another user who had similar difficulties setting up in [this issue](https://github.com/Steve-Mcl/node-red-contrib-omron-fins/issues/3) - perhaps that would be some help?

---

<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:** [23 September 2020 11:29 UTC](https://discourse.nodered.org/t/read-variables-omron-nj101-or-nj301/30600/5 "2020-09-23T11:29:54Z")

</div>

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