8/19/2019 How to Get Data From Festo Codesys V3.5 Controllers via OPC
1/23
8/19/2019 How to Get Data From Festo Codesys V3.5 Controllers via OPC
2/23
IM-CRC/Alexander Weinhard Hallo Welt! 5. April 2011 geändert: 7. April 2011, LPK Entwurf Vertraulich
Open CoDeSys V3.5 and start a new CECC project. Once open right click on “application” in thedevice tree and goto Add Object -> Symbol configuration. Click on Symbol configuration and thenClick “OPEN”. “Symbol configuration “ will be added to the device tree.
8/19/2019 How to Get Data From Festo Codesys V3.5 Controllers via OPC
3/23
IM-CRC/Alexander Weinhard Hallo Welt! 5. April 2011 geändert: 7. April 2011, LPK Entwurf Vertraulich
Double click on “Device” in the Device tree to access communication settings. Scan the networkto add Available PLC’s. The default names will be CECC1, CECC2, etc. It is important to know thenames of the PLC’s for the configuration of the OPC server later.
The name of the PLC can be changed
by right clicking on the PLC and
selecting Network properties.
8/19/2019 How to Get Data From Festo Codesys V3.5 Controllers via OPC
4/23
IM-CRC/Alexander Weinhard Hallo Welt! 5. April 2011 geändert: 7. April 2011, LPK Entwurf Vertraulich
In POU “PLC_PRG” write a simple program.
8/19/2019 How to Get Data From Festo Codesys V3.5 Controllers via OPC
5/23
IM-CRC/Alexander Weinhard Hallo Welt! 5. April 2011 geändert: 7. April 2011, LPK Entwurf Vertraulich
Double click on Symbol configuration. You may have to click the refresh button to update thevariables.
8/19/2019 How to Get Data From Festo Codesys V3.5 Controllers via OPC
6/23
IM-CRC/Alexander Weinhard Hallo Welt! 5. April 2011 geändert: 7. April 2011, LPK Entwurf Vertraulich
Add the variables that you want to access via the OPC by highlighting them and click the arrow
The variables listed here
are the variables that will
be accessible by the OPC
server.
Click this icon to change
between Read-Only,
Write-Only or Read &
Write.
8/19/2019 How to Get Data From Festo Codesys V3.5 Controllers via OPC
7/23IM-CRC/Alexander Weinhard Hallo Welt! 5. April 2011 geändert: 7. April 2011, LPK Entwurf Vertraulich
Go online and download. Make sure to run the PLC and check the program is running.
8/19/2019 How to Get Data From Festo Codesys V3.5 Controllers via OPC
8/23IM-CRC/Alexander Weinhard Hallo Welt! 5. April 2011 geändert: 7. April 2011, LPK Entwurf Vertraulich
Now we must configure the OPC server. The OPC configurator is not located in the “Start menu”. It islocated in the program files of CoDeSys V3.5. Navigate to the OPC configurator and run it.
8/19/2019 How to Get Data From Festo Codesys V3.5 Controllers via OPC
9/23IM-CRC/Alexander Weinhard Hallo Welt! 5. April 2011 geändert: 7. April 2011, LPK Entwurf Vertraulich
Right click on “Server” and select “Append PLC”
8/19/2019 How to Get Data From Festo Codesys V3.5 Controllers via OPC
10/23IM-CRC/Alexander Weinhard Hallo Welt! 5. April 2011 geändert: 7. April 2011, LPK Entwurf Vertraulich
Leave the default settings for “PLC1” as they are.
8/19/2019 How to Get Data From Festo Codesys V3.5 Controllers via OPC
11/23IM-CRC/Alexander Weinhard Hallo Welt! 5. April 2011 geändert: 7. April 2011, LPK Entwurf Vertraulich
Selection Connection and click edit to change the PLC connection settings
Enter the name of the PLC to be accessed here.
This should be the same name as shown in the
Communication settings in CoDeSys V3.5.
8/19/2019 How to Get Data From Festo Codesys V3.5 Controllers via OPC
12/23IM-CRC/Alexander Weinhard Hallo Welt! 5. April 2011 geändert: 7. April 2011, LPK Entwurf Vertraulich
Click OK and DON’T FORGET TO SAVE. NOT SAVE AS…
You can now exit the Configurator. The OPC server will automatically open in the background assoon as an OPC client wants to access it.
8/19/2019 How to Get Data From Festo Codesys V3.5 Controllers via OPC
13/23IM-CRC/Alexander Weinhard Hallo Welt! 5. April 2011 geändert: 7. April 2011, LPK Entwurf Vertraulich
We will now test the OPC server using a simple client called dOPC explorer http://www.dopc.kassl.de/
Download and run dOPC.
http://www.dopc.kassl.de/http://www.dopc.kassl.de/
8/19/2019 How to Get Data From Festo Codesys V3.5 Controllers via OPC
14/23IM-CRC/Alexander Weinhard Hallo Welt! 5. April 2011 geändert: 7. April 2011, LPK Entwurf Vertraulich
Right click on “OPC Server” and select “New Server Ins”.
Choose CoDeSysOPCDA from available servers.
8/19/2019 How to Get Data From Festo Codesys V3.5 Controllers via OPC
15/23IM-CRC/Alexander Weinhard Hallo Welt! 5. April 2011 geändert: 7. April 2011, LPK Entwurf Vertraulich
Double click on CoDeSysOPCDA to connect to it. This will start the OPC server and upload theSybol configuration file from the PLC. Expand the server tree until you find the tag “Count”
8/19/2019 How to Get Data From Festo Codesys V3.5 Controllers via OPC
16/23
8/19/2019 How to Get Data From Festo Codesys V3.5 Controllers via OPC
17/23IM-CRC/Alexander Weinhard Hallo Welt! 5. April 2011 geändert: 7. April 2011, LPK Entwurf Vertraulich
We will now configure Rensen OPC office link to show tag values in excel.
Open Rensen OPC office link. All available OPC servers will appear including CoDeSysOPCDA
8/19/2019 How to Get Data From Festo Codesys V3.5 Controllers via OPC
18/23IM-CRC/Alexander Weinhard Hallo Welt! 5. April 2011 geändert: 7. April 2011, LPK Entwurf Vertraulich
Make sure CoDeSysOPCDA is highlighted and add a new data group.
New Data group
8/19/2019 How to Get Data From Festo Codesys V3.5 Controllers via OPC
19/23IM-CRC/Alexander Weinhard Hallo Welt! 5. April 2011 geändert: 7. April 2011, LPK Entwurf Vertraulich
Expand the CoDeSysOPCDA tree to locate the tag “Count”.
Drag the tag into the data group you just created.
8/19/2019 How to Get Data From Festo Codesys V3.5 Controllers via OPC
20/23IM-CRC/Alexander Weinhard Hallo Welt! 5. April 2011 geändert: 7. April 2011, LPK Entwurf Vertraulich
Open the Data Group and right click on the tag and select “ Copy Live”
8/19/2019 How to Get Data From Festo Codesys V3.5 Controllers via OPC
21/23IM-CRC/Alexander Weinhard Hallo Welt! 5. April 2011 geändert: 7. April 2011, LPK Entwurf Vertraulich
Open up a new excel spreadsheet. Select a cell and right click on it. Select paste special.
Under “Paste link” select “Unicode Text” and click OK.
8/19/2019 How to Get Data From Festo Codesys V3.5 Controllers via OPC
22/23IM-CRC/Alexander Weinhard Hallo Welt! 5. April 2011 geändert: 7. April 2011, LPK Entwurf Vertraulich
Go back to Rensen OPC Office Link.
Highlight the Data Group and select the “ Start sampling” button.
8/19/2019 How to Get Data From Festo Codesys V3.5 Controllers via OPC
23/23
Go back to the Excel Spreadsheet and you see the value LIVE.
Top Related