Beruflich Dokumente
Kultur Dokumente
IM-CRC/Alexander Weinhard
Hallo Welt!
5. April 2011
Entwurf
Vertraulich
Open CoDeSys V3.5 and start a new CECC project. Once open right click on application in the
device tree and goto Add Object -> Symbol configuration. Click on Symbol configuration and then
Click OPEN. Symbol configuration will be added to the device tree.
IM-CRC/Alexander Weinhard
Hallo Welt!
5. April 2011
Entwurf
Vertraulich
Double click on Device in the Device tree to access communication settings. Scan the network
to add Available PLCs. The default names will be CECC1, CECC2, etc. It is important to know the
names of the PLCs for the configuration of the OPC server later.
IM-CRC/Alexander Weinhard
Hallo Welt!
5. April 2011
Entwurf
Vertraulich
IM-CRC/Alexander Weinhard
Hallo Welt!
5. April 2011
Entwurf
Vertraulich
Double click on Symbol configuration. You may have to click the refresh button to update the
variables.
IM-CRC/Alexander Weinhard
Hallo Welt!
5. April 2011
Entwurf
Vertraulich
Add the variables that you want to access via the OPC by highlighting them and click the arrow
IM-CRC/Alexander Weinhard
Hallo Welt!
5. April 2011
Entwurf
Vertraulich
Go online and download. Make sure to run the PLC and check the program is running.
IM-CRC/Alexander Weinhard
Hallo Welt!
5. April 2011
Entwurf
Vertraulich
Now we must configure the OPC server. The OPC configurator is not located in the Start menu. It is
located in the program files of CoDeSys V3.5. Navigate to the OPC configurator and run it.
IM-CRC/Alexander Weinhard
Hallo Welt!
5. April 2011
Entwurf
Vertraulich
IM-CRC/Alexander Weinhard
Hallo Welt!
5. April 2011
Entwurf
Vertraulich
IM-CRC/Alexander Weinhard
Hallo Welt!
5. April 2011
Entwurf
Vertraulich
Selection Connection and click edit to change the PLC connection settings
IM-CRC/Alexander Weinhard
Hallo Welt!
5. April 2011
Entwurf
Vertraulich
IM-CRC/Alexander Weinhard
Hallo Welt!
5. April 2011
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.
IM-CRC/Alexander Weinhard
Hallo Welt!
5. April 2011
Entwurf
Vertraulich
IM-CRC/Alexander Weinhard
Hallo Welt!
5. April 2011
Entwurf
Vertraulich
Double click on CoDeSysOPCDA to connect to it. This will start the OPC server and upload the
Sybol configuration file from the PLC. Expand the server tree until you find the tag Count
IM-CRC/Alexander Weinhard
Hallo Welt!
5. April 2011
Entwurf
Vertraulich
To monitor the value of the tag, drag the tag into Groups -> Default.
open the Default folder to see the tags live values.
Make sure the Default folder is active by right clicking on it and selecting Active
IM-CRC/Alexander Weinhard
Hallo Welt!
5. April 2011
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
IM-CRC/Alexander Weinhard
Hallo Welt!
5. April 2011
Entwurf
Vertraulich
IM-CRC/Alexander Weinhard
Hallo Welt!
5. April 2011
Entwurf
Vertraulich
IM-CRC/Alexander Weinhard
Hallo Welt!
5. April 2011
Entwurf
Vertraulich
Open the Data Group and right click on the tag and select Copy Live
IM-CRC/Alexander Weinhard
Hallo Welt!
5. April 2011
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.
IM-CRC/Alexander Weinhard
Hallo Welt!
5. April 2011
Entwurf
Vertraulich
IM-CRC/Alexander Weinhard
Hallo Welt!
5. April 2011
Entwurf
Vertraulich
Go back to the Excel Spreadsheet and you see the value LIVE.
IM-CRC/Alexander Weinhard
Hallo Welt!
5. April 2011
Entwurf
Vertraulich