# Any PLC (Ethernet communication) to Raspberry PI using NODE-RED

**URL:** https://discourse.nodered.org/t/any-plc-ethernet-communication-to-raspberry-pi-using-node-red/13568
**Category:** Industrial
**Created:** [22 July 2019 18:13 UTC](https://discourse.nodered.org/t/any-plc-ethernet-communication-to-raspberry-pi-using-node-red/13568 "2019-07-22T18:13:16Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![bycadirao](https://avatars.discourse-cdn.com/v4/letter/b/9d8465/32.png) [@bycadirao](https://discourse.nodered.org/u/bycadirao)
#### Post date: [22 July 2019 18:13 UTC](https://discourse.nodered.org/t/any-plc-ethernet-communication-to-raspberry-pi-using-node-red/13568/1 "2019-07-22T18:13:16Z")

</div>

Hi Friends,  
Could you please share the step by step procedure to configure Codesys PLC (through Ethernet connection to Raspberry PI) using Node-red.

---

<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: [22 July 2019 18:26 UTC](https://discourse.nodered.org/t/any-plc-ethernet-communication-to-raspberry-pi-using-node-red/13568/2 "2019-07-22T18:26:23Z")

</div>

Does codesys have a built in OPCUA server? Then install node-red-contrib-iiot-opcua

Does it do modbus? The install the modbus nodes and give it a try.

---

<div class="post-metadata">

### Author: ![bycadirao](https://avatars.discourse-cdn.com/v4/letter/b/9d8465/32.png) [@bycadirao](https://discourse.nodered.org/u/bycadirao)
#### Post date: [23 July 2019 03:12 UTC](https://discourse.nodered.org/t/any-plc-ethernet-communication-to-raspberry-pi-using-node-red/13568/3 "2019-07-23T03:12:40Z")

</div>

Thanks for the response.  
Yes codesys has OPC UA server and the same(PC) is connected to Raspberry PI through Ethernet. hence "install node-red-contrib-iiot-opcua" needs to be installed on Raspberry PI.  
hope my understanding is correct.  
Do you have any document which explain step by step procedure to configure codesys OPCUA using "install node-red-contrib-iiot-opcua"

---

<div class="post-metadata">

### Author: ![pawel256](https://avatars.discourse-cdn.com/v4/letter/p/f04885/32.png) [@pawel256](https://discourse.nodered.org/u/pawel256)
#### Post date: [23 July 2019 05:40 UTC](https://discourse.nodered.org/t/any-plc-ethernet-communication-to-raspberry-pi-using-node-red/13568/4 "2019-07-23T05:40:18Z")

</div>

Maybe MQTT is better solution?🙂 Codesys has MQTT driver.

I often use Modbus protocol for PLC  
Codesys configure [https://www.youtube.com/watch?v=MZrp2kNA0go](https://www.youtube.com/watch?v=MZrp2kNA0go)  
node red configure [https://www.youtube.com/watch?v=fV78MQks6BI](https://www.youtube.com/watch?v=fV78MQks6BI)

---

<div class="post-metadata">

### Author: ![bycadirao](https://avatars.discourse-cdn.com/v4/letter/b/9d8465/32.png) [@bycadirao](https://discourse.nodered.org/u/bycadirao)
#### Post date: [16 March 2020 10:10 UTC](https://discourse.nodered.org/t/any-plc-ethernet-communication-to-raspberry-pi-using-node-red/13568/5 "2020-03-16T10:10:52Z")

</div>

> [@pawel256](#):
>
> Codesys

Hi,  
I am also looking for the solution to connect any PLC to Python/Node Red do you have any solution ? PLease let me know

---

<div class="post-metadata">

### Author: ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)
#### Post date: [16 March 2020 10:48 UTC](https://discourse.nodered.org/t/any-plc-ethernet-communication-to-raspberry-pi-using-node-red/13568/6 "2020-03-16T10:48:09Z")

</div>

Did you look at the other posts in the thread that suggest ways this may be done?

---

<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: [16 March 2020 21:47 UTC](https://discourse.nodered.org/t/any-plc-ethernet-communication-to-raspberry-pi-using-node-red/13568/7 "2020-03-16T21:47:31Z")

</div>

> [@bycadirao](#):
>
> looking for the solution to connect any PLC

What is "any PLC"? Omron? Siemens? AB? ETC ETC ETC ETC

Did you try OPCUA? did you try MQTT?

Have you tried anything?

---

<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: [15 May 2020 21:47 UTC](https://discourse.nodered.org/t/any-plc-ethernet-communication-to-raspberry-pi-using-node-red/13568/8 "2020-05-15T21:47:36Z")

</div>

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