# Best solution for two-way communication

**URL:** <https://www.wago.community/t/best-solution-for-two-way-communication/590>\
**Category:** CODESYS\
**Created:** [September 11, 2023, 9:03pm UTC](https://www.wago.community/t/best-solution-for-two-way-communication/590 "2023-09-11T21:03:20Z")\
**Posts on this page:** 15\
**Page:** 1

<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:** [September 11, 2023, 9:03pm UTC](https://www.wago.community/t/best-solution-for-two-way-communication/590/1 "2023-09-11T21:03:20Z")

</div>

I was wondering what the best practice is for two-way communication between two Wago’s would be?  
I’m looking into splitting the PLC- and the HMI-program in two separate PLC’s and would need lots of variables with R/W access.  
A Modbus TCP-slave on the PLC?

---

<div class="post-metadata">

**Author:** ![anssikone.fi](https://avatars.discourse-cdn.com/v4/letter/a/ebca7d/32.png) [@anssikone.fi](https://www.wago.community/u/anssikone.fi)\
**Post date:** [September 12, 2023, 5:40pm UTC](https://www.wago.community/t/best-solution-for-two-way-communication/590/2 "2023-09-12T17:40:12Z")

</div>

Use Codesys NVL lists to share data between PLCs.  
Anssi

---

<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:** [September 13, 2023, 6:31am UTC](https://www.wago.community/t/best-solution-for-two-way-communication/590/3 "2023-09-13T06:31:51Z")

</div>

Yes, I’ve tought about that and have been using NVL, but it’s limited in size and not two-way (as per file)

---

<div class="post-metadata">

**Author:** ![anssikone.fi](https://avatars.discourse-cdn.com/v4/letter/a/ebca7d/32.png) [@anssikone.fi](https://www.wago.community/u/anssikone.fi)\
**Post date:** [September 13, 2023, 7:10am UTC](https://www.wago.community/t/best-solution-for-two-way-communication/590/4 "2023-09-13T07:10:00Z")

</div>

Ok,  
NVL is usefull for process live data exchange.  
For parameterizing, Modbus can be suitable. As I can remember, also  
Modbus write multiple registers is limited.  
Also CANOpen SDO is for suitable for parameterizing system if CAN bus in  
use.

How much data bytes included in your “block”? Binary block?  
Is FTP function block familiar for you ?

Long time ago, I’ve used FTP between Wago PLC and Windows Excel.

br  
Anssi

Bjørn Idar Kristiansen via WAGO Open Source Community kirjoitti  
2023-09-13 09:41:

---

<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:** [September 13, 2023, 7:33am UTC](https://www.wago.community/t/best-solution-for-two-way-communication/590/5 "2023-09-13T07:33:27Z")

</div>

Regarding the Modbus I’ve made a “protocol” which compares structures and write changes but it is kind of heavy and was hoping for a simpler solution.  
Well, it’s arrays of data structures so it would be a NVL list per object (considering the size of the structure).

I’ve not used the FTP-FB - not sure if this solution would be suitable. You mean transfering a binary file with values between the two?

---

<div class="post-metadata">

**Author:** ![anssikone.fi](https://avatars.discourse-cdn.com/v4/letter/a/ebca7d/32.png) [@anssikone.fi](https://www.wago.community/u/anssikone.fi)\
**Post date:** [September 13, 2023, 8:10am UTC](https://www.wago.community/t/best-solution-for-two-way-communication/590/6 "2023-09-13T08:10:24Z")

</div>

If your array member fits to one NVL list, try to make a list as follows

nArrayIndex : int ; // Array index  
stcObject : MyDataSetObject ;

Set array index and copy your member object in to stcObject.  
Activate event trigger variable to send NVL list to others.

In receiver side. Copy data from NVL to GVL using nArrayIndex.  
How does it looks like? Multiplexed method. One dataset at time.

Bjørn Idar Kristiansen via WAGO Open Source Community kirjoitti  
2023-09-13 10:43:

---

<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:** [September 13, 2023, 9:35am UTC](https://www.wago.community/t/best-solution-for-two-way-communication/590/7 "2023-09-13T09:35:03Z")

</div>

Sounds like a feasable solution, thanks!  
I will give it a try

---

<div class="post-metadata">

**Author:** ![Alexander\_Landfried](https://sea2.discourse-cdn.com/flex016/user_avatar/www.wago.community/alexander_landfried/32/306_2.png) [@Alexander\_Landfried](https://www.wago.community/u/Alexander_Landfried)\
**Post date:** [September 14, 2023, 12:38pm UTC](https://www.wago.community/t/best-solution-for-two-way-communication/590/8 "2023-09-14T12:38:58Z")

</div>

Since Firmware 24 you can use OPC UA to Exchange Data between PLC‘s

For the HMI / Touchpanels TP600, the OPC Functions are available since FW25. (Visu-Panel and Control Panel)

The Release of FW26 will Include the possiblily to use the Datasource Manager with option „CodesysV3Application“ up to now, you can use the Datasource Manager to Connect a Datasource to a OPC-Server. (Means the plc is an OPC-UA Client)

Otherwise i would recommend to use ModbusTCP to 🙂

---

<div class="post-metadata">

**Author:** ![Greg](https://avatars.discourse-cdn.com/v4/letter/g/71c47a/32.png) [@Greg](https://www.wago.community/u/Greg)\
**Post date:** [September 20, 2023, 8:05pm UTC](https://www.wago.community/t/best-solution-for-two-way-communication/590/9 "2023-09-20T20:05:26Z")

</div>

I tried exchanging some data between two PFC200s with OPCUA but after getting all the symbols on 2nd PFC from 1st PFC (online), there was no live data and all variables with default values (0). Couldn’t figure it out so I just used NV. Fortunatelly it was sufficient for this case. But it’d be great to know how to establish such communications in the future.  
Could you provide some example project for this?

---

<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:** [October 7, 2024, 12:13pm UTC](https://www.wago.community/t/best-solution-for-two-way-communication/590/10 "2024-10-07T12:13:24Z")

</div>

Hi, old topic but a question popped up.  
Do you know if there is a limit in the number of variables in a NVL?  
I found in CS3.5 docs that the size of each variable cannot exceed 255 bytes, but nothing on the list itself - other than

> If the size of the GVL exceeds the maximum length of the network telegram, then the data is split into multiple telegrams. Depending on the configuration, this can lead to data inconsistencies.

---

<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:** [October 15, 2024, 1:41am UTC](https://www.wago.community/t/best-solution-for-two-way-communication/590/11 "2024-10-15T01:41:09Z")

</div>

I think it depend on your GVL configuration. If you use the option “Pack the variables” you need a list which is less than 256 Bytes (MAX 255). If you don’t use the option, each variables need to be less than 256 Bytes. But I’ve haven’t heard about a limitation yet.

---

<div class="post-metadata">

**Author:** ![Andrija](https://avatars.discourse-cdn.com/v4/letter/a/aca169/32.png) [@Andrija](https://www.wago.community/u/Andrija)\
**Post date:** [June 29, 2025, 7:58pm UTC](https://www.wago.community/t/best-solution-for-two-way-communication/590/12 "2025-06-29T19:58:15Z")

</div>

Hi, i got a project where i need to establish communication between 2 PFC, i used NVL as suggested so i am sending and receiving the data, but i also need to set up an alarm if communication is not live. What is the best way to set up check if 2nd PFC is online?

---

<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:** [June 30, 2025, 7:15am UTC](https://www.wago.community/t/best-solution-for-two-way-communication/590/13 "2025-06-30T07:15:24Z")

</div>

Add a counter/ incrementing value in each list - check if the value is updated or not and take actions if the value is not updated in X (milli)seconds.

---

<div class="post-metadata">

**Author:** ![MikePsaltis](https://sea2.discourse-cdn.com/flex016/user_avatar/www.wago.community/mikepsaltis/32/47_2.png) [@MikePsaltis](https://www.wago.community/u/MikePsaltis)\
**Post date:** [October 2, 2025, 6:56pm UTC](https://www.wago.community/t/best-solution-for-two-way-communication/590/14 "2025-10-02T18:56:28Z")

</div>

I made a video on using the CODESYS V3 Application Driver. This is the simplest solution that I have found for PLC to HMI Communication.

[![](https://us1.discourse-cdn.com/flex016/uploads/wago/original/2X/4/41c3ad3dc4a68d687ea8c49087efbca02d2791ca.jpeg "How To : CODESYS V3 Communication Driver | WAGO CC100 PLC & TP600 HMI") ](https://www.youtube.com/watch?v=CGGW91FvGVQ)

---

<div class="post-metadata">

**Author:** ![AdamKosick](https://avatars.discourse-cdn.com/v4/letter/a/cab0a1/32.png) [@AdamKosick](https://www.wago.community/u/AdamKosick)\
**Post date:** [January 5, 2026, 3:30pm UTC](https://www.wago.community/t/best-solution-for-two-way-communication/590/15 "2026-01-05T15:30:10Z")

</div>

Thanks Mike, your video saved the day.

I’m using a Maple HMI and couldn’t get a response from the Wago basic controller.

It ended up that I was missing the Username “admin” and password “wago” from the login credentials on the HMI side and your video showed that you needed them even with the TP600.

Also a couple other notes for others who read this post… for Maple HMI’s when setting up Codesys V3 communications is that it defaults to UDP comms and a port of 1740 whereas Wago uses TCP/IP comms and 11740 as the port.

JohnDitter’s document was also a good tool found in the forum here:

> [@CODESYS V3 Ethernet Driver](https://www.wago.community/t/codesys-v3-ethernet-driver/1239):
>
> The attached document explains how to use the CODESYS V3 Ethernet driver with a WAGO PLC and a compatible HMI. [Using the CODESYS V3 Ethernet driver on a WAGO PLC.pdf](https://www.wago.community/uploads/short-url/q6pyfEvRqXrmyZrzD8Y1dwVu4pK.pdf) (1.4 MB)
