Code Sysop C
Code Sysop C
Code Sysop C
Version 1.0
Customer :
HH order number :
Machine type :
Machine number :
CoDeSys OPC-Server
Cleared
Customer
Version history
Version Date Description Author
1. Preface
Both, the delivered CoDeSys Gateway (OPC-) Server and the OPC-Client must be installed on
the same PC / Laptop.
2. Setup
After successful installation of the CoDeSys OPC-Server Software Package move to the
OPC-Configurator as shown in Figure 1 and start it.
Figure 1
Select File from the taskbar and mark “Single PLC” as your choice as shown in Figure 2
Figure 2
Figure 3
Create a new config file by clicking on New in the same drop-down menu as shown in Figure 4
Figure 4
Figure 5
Figure 6
By clicking on PLC, the following screen will be presented – please configure your OPC-Server
as shown in Figure 7 :
Figure 7
Next step : Click on “Connection” and hit the Edit-Button to get to the follwoing screen
(Figure 8) :
Figure 8
Figure 9
Fill in the correct IP-address of the PLC (overwrite localhost) and hit “Enter” on your key-
board ! (Do NOT just click on OK, otherwise the changes will have no effect !) – see Figure 10 :
Figure 10
No need to make any other changes ! Now – click OK and you´re all done !
Your OPC-Server is now ready for use and you can exit the setup program.
Next step is to set up your own OPC-Client and establish a connection with the OPC-Server !
3. OPC-Client Configuration
(We use the ELAU-DiagnosticOPCClient.exe in this example !)
Remember : OPC-Server and OPC-Client are running on the same machine !
Figure 11
The next screen shows an active connection and lets you define some “Private groups”
As illustrated in Figure 12
Figure 12
Figure 13
The newly created group appears in the “Private Groups”-box a shown in Figure 14
Figure 14
Right-Click the “TEST”-Group and select “Add all items” from the pulldown menu.
(Figure 14)
Figure 14
All the variables (and therefore values) available on the PLC will be shown underneath the
“TEST”-Group (Figure 15)
Figure 15
Select a variable of your choice, right-click and read it´s value as shown below :
Figure 16
4. OPC-Server DCOM-Configuration
http://www.opcactivex.com/Support/DCOM_Config/DCOM_XP/dcom_xp.html
This article will simply outline the steps to configure DCOM. If you would like to know and understand the
reasons WHY some of these settings are so, then please read:
The DCOM Configuration utility does not have an associated icon in either the Windows Control Panel,
nor the Windows START button.. so you have to start it manually:
This will load the Windows "Component Services", which is shown below:
This particular screen is not 100% identical to that of Windows NT, 2000 as there are more options in
some areas, and fewer options in others...
Once in this Properties screen, do click on the "Default Properties" tab first.
The next step is to click on the "Default COM Security" tab, which is shown below:
There are only 2 buttons in this screen, whereas there are 3 in Windows NT and 2000 Operating Sys-
tems.
Click on the "Edit Default" button within the "Access Permissions" area and make sure that the following
accounts exist with the "Allow Access" permissions:
· Everyone
· Interactive
· System
· Network
Locate OPCEnum, and then open it's properties by simply right-clicking on it, and choosing "Properties"
from the menu.
General Tab
Location Tab
Security Tab
Launch Permissions:
Select the option "Use Default".
Access Permissions:
Select the option "Use Default".
Configuration Permissions:
Select the option "Customize",
and then click the "Edit" button.
Identity Tab
Last Step - Configuring DCOM Security Options for the OPC Server, for
Windows XP & 2003 Operating Systems
This step should only be followed if your computer has an OPC Server on it that you wish to allow OPC
Clients to connect to.
At the "Component Services" window, click on or expand the "DCOM Config" node and locate your OPC
Server from the list.
When you have found your OPC Server in this list, simply right-click on it and open it's properties. Then
follow the same steps as those listed for configuring OPCENUM
After completing the above configuration steps you should be able to access all variables on the
Target-PLC with your OPC-Client.
OPCEnum