CODESYS V3 Ethernet Driver

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 (1.4 MB)

5 Likes

This is very good guide. I was trying same this today, but did not get success. Will try your guide next week. I was missing to tick “Link Always” also have not downloaded the program to PLC after creating Symbol Configuration.

I am trying with Webaccess/HMI runtime.

Thank you for the write-up!

How would you go forward changing persistent variables with this method (as set points are usually stored in PersistentVars and this cannot be accessed in “Symbol configurator”)?

PersistentVars can be included in the export file. For example, create some persistent data:

Check the “Link always” option:

Check the variables in the Symbol Configuration:

Compile the project and then the persistent variables appear in the export file:

Do you have an example using a maple HMI? It seems to be the same process but the maple HMI reports that there is no device response from the Wago controller. I am using TCP/IP codesys V3 driver on port 11740.

Update - Resolved:

So a couple of gotcha’s.

  1. The biggest being that you need to add login credentials. The default being Username “admin” and password “wago”.

  2. The other gotcha (for me) was that I renamed my application on the plc. When I did that I had to rebuild and then import the new tag list (XML file) back into the HMI and retag everything because tags are referenced by format “Application.TagList.Tag”

Mike Psaltis has a good video on how to setup Codesys V3 here:

https://youtu.be/CGGW91FvGVQ

1 Like