# Codesys 2.3 Node-red Communication

**URL:** <https://www.wago.community/t/codesys-2-3-node-red-communication/930>\
**Category:** Node-RED\
**Tags:** codesys\
**Created:** [May 7, 2024, 8:39pm UTC](https://www.wago.community/t/codesys-2-3-node-red-communication/930 "2024-05-07T20:39:26Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bandras](https://avatars.discourse-cdn.com/v4/letter/b/bcef8e/32.png) [@Bandras](https://www.wago.community/u/Bandras)\
**Post date:** [May 7, 2024, 8:39pm UTC](https://www.wago.community/t/codesys-2-3-node-red-communication/930/1 "2024-05-07T20:39:26Z")

</div>

Dear All!

At first thanks the possibility to connect to the community.  
Maybe my topic is not really the latest technology but I have to solve somehow.  
I would like send bits and words from 750-841 to Node-red which is running on raspberry (and reverse) . The sending is managed (using network variables) but I can not receive data from Node-red. I followed up @WagoKurt’s videos in this topic (ecockpit) but at the end I failed 😕  
Could you give some hints?  
Thank you in advance!

---

<div class="post-metadata">

**Author:** ![WagoIcard](https://sea2.discourse-cdn.com/flex016/user_avatar/www.wago.community/wagoicard/32/1508_2.png) [@WagoIcard](https://www.wago.community/u/WagoIcard)\
**Post date:** [May 8, 2024, 7:52am UTC](https://www.wago.community/t/codesys-2-3-node-red-communication/930/2 "2024-05-08T07:52:50Z")

</div>

Hello, do you have the possibility to do frame capture in the rPI ?  
If so can you check if you have the right NVL number ?  
Also in your project do you have 1 list for receiving and another list for sending ?  
What IP address you have put in the NVL network parameters ?

---

<div class="post-metadata">

**Author:** ![Bandras](https://avatars.discourse-cdn.com/v4/letter/b/bcef8e/32.png) [@Bandras](https://www.wago.community/u/Bandras)\
**Post date:** [May 8, 2024, 7:31pm UTC](https://www.wago.community/t/codesys-2-3-node-red-communication/930/5 "2024-05-08T19:31:08Z")

</div>

Hi!  
I tried to upload some screenshots but the system does not let it. On codesys side I have to table one is for sending List indetifier 1 and a receiving list indetifier 3. I am using port 1202 If I modify any of the variables in codesys sender NVL it changes in node-red. After I make some modification on the data and send back to codesys NVL receiver table. It changes in node-red but nothing changes on the other side. Although I changed the tables but I did not change the ID because I do not know where is it in 2.3 Maybe this is the problem.

---

<div class="post-metadata">

**Author:** ![WagoIcard](https://sea2.discourse-cdn.com/flex016/user_avatar/www.wago.community/wagoicard/32/1508_2.png) [@WagoIcard](https://www.wago.community/u/WagoIcard)\
**Post date:** [May 8, 2024, 11:52pm UTC](https://www.wago.community/t/codesys-2-3-node-red-communication/930/6 "2024-05-08T23:52:22Z")

</div>

what about the ip addresses ?  
Are you using 255.255.255.255 ? or abc.def.ghi.255 ? or abc.def.ghi.jkl ? or multicast ip ?

---

<div class="post-metadata">

**Author:** ![Bandras](https://avatars.discourse-cdn.com/v4/letter/b/bcef8e/32.png) [@Bandras](https://www.wago.community/u/Bandras)\
**Post date:** [May 9, 2024, 5:07pm UTC](https://www.wago.community/t/codesys-2-3-node-red-communication/930/8 "2024-05-09T17:07:55Z")

</div>

![Bemutató1](https://us1.discourse-cdn.com/flex016/uploads/wago/original/1X/afa73b4b28fbbac92b66e8ea12779bd40c471ed6.jpeg)  
These are the setting that I am using int he project

---

<div class="post-metadata">

**Author:** ![quenorha](https://sea2.discourse-cdn.com/flex016/user_avatar/www.wago.community/quenorha/32/429_2.png) [@quenorha](https://www.wago.community/u/quenorha)\
**Post date:** [May 10, 2024, 5:31am UTC](https://www.wago.community/t/codesys-2-3-node-red-communication/930/9 "2024-05-10T05:31:06Z")

</div>

Make sure the NVL port is exposed and there is no firewall blocking it.

---

<div class="post-metadata">

**Author:** ![Bandras](https://avatars.discourse-cdn.com/v4/letter/b/bcef8e/32.png) [@Bandras](https://www.wago.community/u/Bandras)\
**Post date:** [May 11, 2024, 6:57pm UTC](https://www.wago.community/t/codesys-2-3-node-red-communication/930/10 "2024-05-11T18:57:50Z")

</div>

What does it mean to expose NVL port. I try to make communication between PLC and Raspberry. They are on the same network. I also try to make communication my PC (installed node red) and PLC. I created the necessary exception to UDP communication (Incoming and outgoing rules) but I got the same result. On the raspberry there is no firewall. I just install a simple linux on it.

---

<div class="post-metadata">

**Author:** ![bjornidar](https://avatars.discourse-cdn.com/v4/letter/b/5fc32e/32.png) [@bjornidar](https://www.wago.community/u/bjornidar)\
**Post date:** [May 13, 2024, 9:17am UTC](https://www.wago.community/t/codesys-2-3-node-red-communication/930/11 "2024-05-13T09:17:26Z")

</div>

Are you running Node-RED in a Docker-environment on the Raspberry? If so, you need to allow the UDP-ports set up in the NVL in CS2.3.

![nr](https://us1.discourse-cdn.com/flex016/uploads/wago/original/1X/0c24bfe49714ae83569ae175c89e4efb9e66290e.jpeg)

Also, I find the module “node-red-contrib-nvl” better and more up to date than the “node-red-contrib-netvar” which is used in WagoKurt’s tutorial.

---

<div class="post-metadata">

**Author:** ![WagoIcard](https://sea2.discourse-cdn.com/flex016/user_avatar/www.wago.community/wagoicard/32/1508_2.png) [@WagoIcard](https://www.wago.community/u/WagoIcard)\
**Post date:** [May 13, 2024, 11:53pm UTC](https://www.wago.community/t/codesys-2-3-node-red-communication/930/12 "2024-05-13T23:53:05Z")

</div>

if you need to open other container port after having setting everything up, here is a how to for this:

> [@Docker edit container parameter after](https://www.wago.community/t/docker-edit-container-parameter-after/749):
>
> Have you ever created a container avec after some testing found out you forgot to do some port forwarding ? Here is how to fix this without having to recreate the container: Get the container ID: docker ps -a Stop the container: docker stop [container name] Stop the docker: /etc/init.d/dockerd stop (or for generic linux: systemctl stop docker) Edit the container config.v2.json file, found at home/docker/containers/[container ID]/config.v2.json Within the ExposedPorts section, eit…

---

<div class="post-metadata">

**Author:** ![Bandras](https://avatars.discourse-cdn.com/v4/letter/b/bcef8e/32.png) [@Bandras](https://www.wago.community/u/Bandras)\
**Post date:** [May 14, 2024, 6:05pm UTC](https://www.wago.community/t/codesys-2-3-node-red-communication/930/13 "2024-05-14T18:05:26Z")

</div>

No. I am not using docker. Should I?

---

<div class="post-metadata">

**Author:** ![bjornidar](https://avatars.discourse-cdn.com/v4/letter/b/5fc32e/32.png) [@bjornidar](https://www.wago.community/u/bjornidar)\
**Post date:** [May 14, 2024, 6:45pm UTC](https://www.wago.community/t/codesys-2-3-node-red-communication/930/14 "2024-05-14T18:45:23Z")

</div>

I find it easier to manage, but you don’t have to…

Have you tried the library I mentioned?  
You can copy/paste the content of the NVL file directly into the node, enter the list id and connect it to the UDP listener.

---

<div class="post-metadata">

**Author:** ![Bandras](https://avatars.discourse-cdn.com/v4/letter/b/bcef8e/32.png) [@Bandras](https://www.wago.community/u/Bandras)\
**Post date:** [May 17, 2024, 7:34pm UTC](https://www.wago.community/t/codesys-2-3-node-red-communication/930/15 "2024-05-17T19:34:36Z")

</div>

Sorry for my late respond. Yes I tried it and it is working now. Thanks for the hint!
