Step 7 example for Data-exchange between CoDeSys Devices and Siemens S7 (S7-1200) devices: https://sourceforge.net/projects/easynetvars/files/NetVarsStep7/
Implementation Guide: https://sourceforge.net/projects/easynetvars/files/Implementation-Guide.pdf/download
Library (.DLL) for Data Exchange between CoDeSys Devices and .NET Applications via Network-Variables
- Read and Write Operations CoDeSys to .NET
- Method to create .GVL-File to import in CoDeSys (necessary to create Receive Network Variable List)
Example Step 7 Program for Data-Exchange between CoDeSys and Siemens S7 (S7-1200) Devices available.
With the help of Network-variables, a very simple communication between two CoDeSys based Devices can be established without any programming effort. Just a little parametrization work.
The goal of this project is to extend this to the communication between CoDeSys devices, and .NET implementations.
Since the communication is established with the help of UDP broadcast messages, existing connections between two devices can be "monitored".
|The communication between various devices via Network-variables is established with the help of UDP Broadcast or Multicast messages.
Messages sent from a PLC can be received from any other Device.
The Messages from different devices are distinguished by the List identifier (CobID).
|The example configuration at the right shows a Network Variable List (sender) in CoDeSys.
Make sure that "Pack variables" is checked.
The most important setting is the "List identifier".
|AppropriateC# program to read values from CoDeSys device.|
|And the result...|