# Read/Write data from Omron (NJ501-1400) PLC into node-red

**URL:** <https://discourse.nodered.org/t/read-write-data-from-omron-nj501-1400-plc-into-node-red/10066>\
**Category:** Industrial\
**Created:** [12 April 2019 13:03 UTC](https://discourse.nodered.org/t/read-write-data-from-omron-nj501-1400-plc-into-node-red/10066 "2019-04-12T13:03:32Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shiekh](https://avatars.discourse-cdn.com/v4/letter/s/3da27b/32.png) [@Shiekh](https://discourse.nodered.org/u/Shiekh)\
**Post date:** [12 April 2019 13:03 UTC](https://discourse.nodered.org/t/read-write-data-from-omron-nj501-1400-plc-into-node-red/10066/1 "2019-04-12T13:03:32Z")

</div>

Hi,

I need to connect Omron (NJ501-1400) PLC with the node-red. Is there some node (like node-red-contrib-s7 for Siemens PLC) to communicate with the Omron PLC ? What could be the most suitable way to establish connection?

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![ukmoose](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ukmoose/32/13_2.png) [@ukmoose](https://discourse.nodered.org/u/ukmoose)\
**Post date:** [12 April 2019 13:08 UTC](https://discourse.nodered.org/t/read-write-data-from-omron-nj501-1400-plc-into-node-red/10066/2 "2019-04-12T13:08:32Z")

</div>

Try using the forum search ( the magnifying glass) for the word "Omron"

---

<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:** [13 April 2019 07:01 UTC](https://discourse.nodered.org/t/read-write-data-from-omron-nj501-1400-plc-into-node-red/10066/3 "2019-04-13T07:01:27Z")

</div>

Depending on the firmware level and version of NJ, you may well have OPCUA built in.

If so, I'd recommend using the IIOT nodes.

If not, then there isn't a great deal of FINS or EtherNet/IP type nodes I'm afraid.

You could always use write some ladder with socket services in the PLC and use the TCP nodes as a last option.

2 other options...  
1.  
There are some MQTT function blocks available for the NJ / NX PLCs. I've used them and they work.

1. 

The NJ PLC is a mighty fast PLC and it would be capable of running logic to implement MODBUS TCP. There may be some

---

<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:** [13 April 2019 07:07 UTC](https://discourse.nodered.org/t/read-write-data-from-omron-nj501-1400-plc-into-node-red/10066/4 "2019-04-13T07:07:49Z")

</div>

Some links...

> **[NX1/NJ5 controller with OPC UA: Open communication from machine to IT system](https://industrial.omron.eu/en/solutions/product-solutions/nj5-controller-with-opc-ua)**
>
> NX1/NJ5 controller with OPC UA: Open communication from machine to IT system

Modbus...  
[https://www.myomron.com/index.php?action=kb&article=1245](https://www.myomron.com/index.php?action=kb&article=1245)

MQTT...  
take a look at this [project](https://drive.google.com/open?id=13WQ1zX5TM3U6tSprdahh6M9cBbZ-GJGz). It has MQTT Client connect, pub and sub FBs in a library.

---

<div class="post-metadata">

**Author:** ![Shiekh](https://avatars.discourse-cdn.com/v4/letter/s/3da27b/32.png) [@Shiekh](https://discourse.nodered.org/u/Shiekh)\
**Post date:** [15 April 2019 07:16 UTC](https://discourse.nodered.org/t/read-write-data-from-omron-nj501-1400-plc-into-node-red/10066/5 "2019-04-15T07:16:13Z")

</div>

Thanks you very much for the detailed answer. I will see and try different options!

---

<div class="post-metadata">

**Author:** ![Shiekh](https://avatars.discourse-cdn.com/v4/letter/s/3da27b/32.png) [@Shiekh](https://discourse.nodered.org/u/Shiekh)\
**Post date:** [24 May 2019 13:46 UTC](https://discourse.nodered.org/t/read-write-data-from-omron-nj501-1400-plc-into-node-red/10066/6 "2019-05-24T13:46:44Z")

</div>

Hi Steve,

Today i read and write some tags from/to Omron (NJ501-1400 Firmware version 1.19) by using node-red-contrib-opcua node through OPC UA. It works for me.

---

<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:** [24 May 2019 17:46 UTC](https://discourse.nodered.org/t/read-write-data-from-omron-nj501-1400-plc-into-node-red/10066/7 "2019-05-24T17:46:07Z")

</div>

Glad I could help.

To help others in the future, it would be really good if you could indicate which node(s) you used, maybe export & post a an example flow and perhaps even some screenshots?

Cheers, Steve.

---

<div class="post-metadata">

**Author:** ![Ondrej](https://avatars.discourse-cdn.com/v4/letter/o/df705f/32.png) [@Ondrej](https://discourse.nodered.org/u/Ondrej)\
**Post date:** [25 June 2020 07:52 UTC](https://discourse.nodered.org/t/read-write-data-from-omron-nj501-1400-plc-into-node-red/10066/8 "2020-06-25T07:52:58Z")

</div>

Hello,  
Im trying to make connection between Omron NJ501-1400 and rasberry pi trough Node-Red  
node-red-contrib-opcua node. But I have some problems with certificates. OPC UA server from PLC keep rejecting client certificate. Have you solved this? Or can you give me an advice how to do that?

---

<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 June 2020 08:24 UTC](https://discourse.nodered.org/t/read-write-data-from-omron-nj501-1400-plc-into-node-red/10066/9 "2020-06-25T08:24:22Z")

</div>

@Ondrej I cant help you on the OPCUA certificate issue but if you are needing to get data from the PLC, you could try using FINS...

> **[Steve-Mcl/node-red-contrib-omron-fins](https://github.com/Steve-Mcl/node-red-contrib-omron-fins)**
>
> A Node-RED node to directly interface with OMRON PLCs over FINS Ethernet protocol - Steve-Mcl/node-red-contrib-omron-fins

---

<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 June 2020 09:12 UTC](https://discourse.nodered.org/t/read-write-data-from-omron-nj501-1400-plc-into-node-red/10066/10 "2020-06-25T09:12:30Z")

</div>

I must also add - for the NX and NJ series PLCs you might be better off using MQTT directly.

There are FBs (Function Blocks) available for...

- reading and writing JSON
- publishing and subscribing to MQTT

Of course I must also point out that going down the MQTT route requires you to add FB libraries and LADDER/ST to the PLC in order to generate the MQTT messages - whereas the OPCUA/FINS method requires no ladder to read/write values.

I use both methods depending on the situation.

---

<div class="post-metadata">

**Author:** ![machadotiago](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/machadotiago/32/23776_2.png) [@machadotiago](https://discourse.nodered.org/u/machadotiago)\
**Post date:** [25 June 2020 19:10 UTC](https://discourse.nodered.org/t/read-write-data-from-omron-nj501-1400-plc-into-node-red/10066/11 "2020-06-25T19:10:25Z")

</div>

As far as I remember, this P/N has Ethernet/IP protocol built in, if yes you can simply use the [https://flows.nodered.org/node/node-red-contrib-cip-ethernet-ip](https://flows.nodered.org/node/node-red-contrib-cip-ethernet-ip) node

---

<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:** [24 August 2020 19:10 UTC](https://discourse.nodered.org/t/read-write-data-from-omron-nj501-1400-plc-into-node-red/10066/12 "2020-08-24T19:10:29Z")

</div>

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