12 Apendix Open Process Control
12 Apendix Open Process Control
OPC interface
Drivers
PROFIBUS DP
SITRAIN
IK-PBSYS / Open Process Control Page 1 03/2007
Siemens AG 2007 - Subject to change without prior notice
Contents Page
Overview of OPC server WinAC ........................................................................................................ 2
Configuring hardware in STEP 7 (example) ...................................................................................... 3
Creating a symbol table in the S7 project ........................................................................................... 4
Creating a PC station in the STEP 7 project ...................................................................................... 5
Renaming the PC station .................................................................................................................. 6
Renaming the component configurator (CoCo) ................................................................................. 7
PC station hardware configuration (OPC server) .............................................................................. 8
PC station hardware configuration (WinLC) ....................................................................................... 9
Matching with the component configurator ....................................................................................... 10
Creating an S7 connection in NetPro (1) ............................................................................................ 11
Creating an S7 connection in NetPro (2) ............................................................................................ 12
Downloading the PC configuration .................................................................................................... 13
Setting the access point for S7ONLINE ............................................................................................. 14
Loading the configuration (WinLC RTX system) ................................................................................ 15
Downloading the PC station .............................................................................................................. 16
Configuration console (OPC settings) ................................................................................................ 17
Properties of the OPC server .............................................................................................................. 18
Configuring symbols .......................................................................................................................... 19
Loading a station ................................................................................................................................ 20
Editing symbol files ............................................................................................................................. 21
Configuring a symbol file .................................................................................................................. 22
Accepting symbols for OPC ............................................................................................................... 23
OPC Navigator .................................................................................................................................. 24
OPC Scout: Access to addressed items .......................................................................................... 25
Summary ........................................................................................................................................... 26
Drivers
PROFIBUS DP
SITRAIN
IK-PBSYS / Open Process Control Page 2 03/2007
Siemens AG 2007 - Subject to change without prior notice
Runtime environment:
In runtime, an OPC client can search the address space of the OPC server and
set up groups to which it can add items from the address space. These items can
then be used to perform read and write operations.
03/2007
Siemens AG 2007 - Subject to change without prior notice
Procedure 1.The hardware must be configured with distributed I/Os in the STEP 7
configuration. This is loaded to the Logic Controller WinLC RTX.
2.For WinAC Basic V4.0, a PC station must be configured. The logic controller
must be inserted in this station in the hardware configuration.
WinLC V4.0 is stored in the hardware catalog under heading
SIMATIC PC Station Controller.
3.The PROFIBUS DP master is created by the logic controller and the CP. The
DP master must be configured with the DP slaves.
03/2007
Siemens AG 2007 - Subject to change without prior notice
Symbols When symbolic addressing is used in the STEP 7 program, the address space of
the OPC server can be generated from the symbolic information (see
"Configuring a symbol file").
SITRAIN
IK-PBSYS / Open Process Control Page 5 03/2007
Siemens AG 2007 - Subject to change without prior notice
Notes
PC station after
renaming
"My OPC station"
SITRAIN
IK-PBSYS / Open Process Control Page 6 03/2007
Siemens AG 2007 - Subject to change without prior notice
Notes
"CoCo" is always
displayed here
(double click to open)
SITRAIN
IK-PBSYS / Open Process Control Page 7 03/2007
Siemens AG 2007 - Subject to change without prior notice
Notes
SITRAIN
IK-PBSYS / Open Process Control Page 8 03/2007
Siemens AG 2007 - Subject to change without prior notice
Note If you do not know which version of OPC server is installed, it is always better to
select the latest version.
When you are loading the configuration, wait to see whether an error message is
displayed which will indicate which version of OPC server is installed. It might
then be necessary to select another OPC server version.
SITRAIN
IK-PBSYS / Open Process Control Page 9 03/2007
Siemens AG 2007 - Subject to change without prior notice
Notes
Adding components
SITRAIN
IK-PBSYS / Open Process Control Page 10 03/2007
Siemens AG 2007 - Subject to change without prior notice
Note The entries in the hardware configuration must have the same indices as those in
the component configurator.
SITRAIN
IK-PBSYS / Open Process Control Page 11 03/2007
Siemens AG 2007 - Subject to change without prior notice
Notes New connections are configured on the OPC server To do this, select the OPC
server and use the menu to insert the appropriate S7 connection.
Connection name
All accessible
nodes
No choice of a different
interface. This is predefined
for WinLC.
S7 connection
SITRAIN
IK-PBSYS / Open Process Control Page 12 03/2007
Siemens AG 2007 - Subject to change without prior notice
Notes
SITRAIN
IK-PBSYS / Open Process Control Page 13 03/2007
Siemens AG 2007 - Subject to change without prior notice
Note If the component configurator cannot be accessed online, the following settings
should be checked:
- Is access point S7online set to "PC internal"?
- Is the name of the PC station correctly entered in the component configurator?
- The WinLC RTX must be started
SITRAIN
IK-PBSYS / Open Process Control Page 14 03/2007
Siemens AG 2007 - Subject to change without prior notice
Notes
PG/PC interface
PC internal (local)
03/2007
Siemens AG 2007 - Subject to change without prior notice
Procedure 1.To load the configuration, WinLC must be started with menu command Start
Simatic PC Based Control Windows Logic Controller .
2.The configuration can now be loaded from the SIMATIC Manager to the WinLC
RTX.
Note Before the configuration can be downloaded, the access point of the S7ONLINE
application must be switched over with menu commands CPU Set PG/PC
interface on the operator panel.
In this dialog, you must switch the access point from "S7ONLINE" to "PC internal
(local)".
If you wish to access external equipment via the MPI, S7ONLINE must be
switched back to the MPI interface (e.g. CP5611 (MPI)).
Component
correctly configured
SITRAIN
IK-PBSYS / Open Process Control Page 16 03/2007
Siemens AG 2007 - Subject to change without prior notice
SITRAIN
IK-PBSYS / Open Process Control Page 17 03/2007
Siemens AG 2007 - Subject to change without prior notice
Notes
Properties of the
OPC server
OPC server
SITRAIN
IK-PBSYS / Open Process Control Page 18 03/2007
Siemens AG 2007 - Subject to change without prior notice
An OPC client normally accesses process variables using Item IDs that contain
address information. It is, however, also possible to access the variables using
symbolic names that can be structured hierarchically.
Instead of working with names which depend on protocol or device, it is possible
to set up a symbolic name space which corresponds, for example, to a plant
structure. Symbolic names can be used with any type of protocol. In addition to
creating your own name space, you can also transfer symbol names from
SIMATIC STEP 7.
The Symbol File Configurator creates files for the SIMATIC NET OPC server
which contain symbol name definitions. You will need the Symbol File
Configurator to set up a symbolic name space and to transfer symbolic names
from SIMATIC STEP 7.
OPC ItemID The OPC ItemID is the process variable identifier used by the OPC Server.
An ItemID is transferred by the OPC client to the OPC Server to identify a
process variable and is unique for the OPC Server. It is either a symbolic name or
a runtime name.
Symbolic name A symbolic name is an OPC Item ID that has been generated by the Symbol File
Configurator. In a hierarchically structured name space, a symbolic name is made
up of the names of the hierarchical levels and the actual symbol.
Example: Plant_Packing.Conveyor1.Limit_Switch
Runtime name A runtime name is an OPC ItemID which contains protocol and address
information for assignment purposes and which is accepted directly by the OPC
Server without using a symbol file. Using the Symbol File Configurator, a
symbolic name is assigned to a runtime name.
Configuring symbols
SITRAIN
IK-PBSYS / Open Process Control Page 19 03/2007
Siemens AG 2007 - Subject to change without prior notice
Using symbols You can decide whether to transfer symbols from the symbol tables configured in
STEP 7 to the system data for the OPC server. This must be done if user
applications (OPC clients) are to access symbolic variables over the OPC server.
The symbol tables used are those of the CPUs for which S7 connections are
configured for the OPC server. This process includes only those symbols which
refer to data blocks (DB).
- None: No symbols from STEP 7 will be transferred to the system data for
the OPC server. The access rights configured under access protection for the
OPC Items apply.
- All: All relevant symbols from STEP 7 are transferred to the system
data for the OPC server. The access rights for all symbolic access operations
to the assigned variables are set to Read/ Write (RW) by this selection. They
have priority over the access rights for the OPC_Items assigned in the access
protection area.
- Selected: Selected symbols from STEP 7 are transferred to the system data
for the OPC server. By selecting the "Edit" button, you can open the "Use
symbols" dialog in which you can select and configure symbols.
Loading a station
SITRAIN
IK-PBSYS / Open Process Control Page 20 03/2007
Siemens AG 2007 - Subject to change without prior notice
Notes
Edit
symbol files
Manage
symbol files
SITRAIN
IK-PBSYS / Open Process Control Page 21 03/2007
Siemens AG 2007 - Subject to change without prior notice
Using symbols You can decide whether to transfer symbols from the symbol tables configured in
STEP 7 to the system data for the OPC server. This is necessary if user
applications (OPC clients) are to access symbolic variables over the OPC server.
Save a symbol
file (<>.sti)
03/2007
Siemens AG 2007 - Subject to change without prior notice
OPC server As soon as the configuration has been loaded to the WinLC, the data in the PLC
can be accessed via the OPC server. However, it is only possible to use absolute
addresses (M1.0, I2.3). Neither is it possible to browse in the server's address
space. In other words, anyone who uses an OPC client application must know the
absolute addresses.
Symbol file To overcome this shortcoming, a symbol file can be generated from the symbolic
information of the STEP 7 program. This file provides the OPC server with a
symbolic address space.
Address space The STEP7 projects can be browsed to locate the control program written for
WinAC in the SIMATIC Program(s). This program contains the symbolic
information required to set up the OPC server's address space.
To be able to display the STEP7 project in this dialog, it must already have been
opened at least once on the computer with the STEP7 Manager.
1.To generate the symbol file, select menu commands Start Simatic
PC Based Control Computing TagFile Configurator (Symbol File
Configurator).
2.A new symbol file is created with menu commands File New .
3.To select a STEP 7 program containing the symbolic information, activate menu
commands Insert New symbol .
SITRAIN
IK-PBSYS / Open Process Control Page 23 03/2007
Siemens AG 2007 - Subject to change without prior notice
Notes
OPC Navigator
Accept selected
"Items"
03/2007
Siemens AG 2007 - Subject to change without prior notice
OPC Scout The SIMATIC NET's OPC Scout application can be used to check the WinAC
OPC server. This server can be checked provided that the Logic Controller has
started correctly.
1.You can open the OPC Scout in the start menu by selecting menu commands
Simatic SIMATIC NET OPC Server OPC Scout
2.When you double click on "OPCServer.SIMATIC.NET", a window opens in
which you can create a new group.
In this example, it will be named "Test". The group is set up when you click on
OK.
3.To add new ITEMS to this group, you need only double click on the group
"Test".
SITRAIN
IK-PBSYS / Open Process Control Page 25 03/2007
Siemens AG 2007 - Subject to change without prior notice
Check If the items have been successfully added to the group, the process values for the
relevant items are displayed in the "Values" column.
The "Quality" column indicates whether the OPC server is supplying accurate
values.
Quality = good means that the values are o.k. Quality = bad means that there is a
server problem.
Summary
Drivers
PROFIBUS DP
SITRAIN
IK-PBSYS / Open Process Control Page 26 03/2007
Siemens AG 2007 - Subject to change without prior notice
Runtime environment:
In runtime, an OPC client can search the address space of the OPC server and
set up groups to which it can add items from the address space. These items can
then be used to perform read and write operations.