Automation and Drives
Open Process Control (WinLC (WinLC RTX V4.x V4.x as examp example) le) OPC client e.g. OPC Scout OPC interface Search Search addr ess space
Read access
OPC interface
OPC server WinAC Configuration tool
Group
Items from
WinAC WinAC Symbol File Configurator
Add res s space
address space
Symbol file
It em
Created by client
It em
Configuration tool
It em
Simatic manager
WinLC Var ia iab le le
Var ia iab le le
Var ia iab l e
Drivers PROFIBUS DP
PROFIBUS PROFIBUS DP field devices SITRAIN IK-PBSYS / Open Process Control
Page 1
Co n t en t s
03/2007 © Siemens AG 2007 - Subject to change without prior notice
Pag e
Overview Overview of OPC server server WinAC ............ ................. .......... ........... ........... .......... ........... ............ ............ ........... .......... ........... ........... .......... ........... ............ ........... .......... .....
2
Configuring Configuring hardware hardware in STEP 7 (example) (example) ........... ................ .......... .......... .......... ........... ............ ........... .......... ........... ............ ........... ........... ........... .......... .....
3
Creating Creating a symbol symbol table in the the S7 project project ........... ................ .......... .......... .......... ........... ............ ........... .......... .......... ........... ........... ........... ............ ............ .......... ....
4
Creating Creating a PC station station in the STEP 7 project project ........... ................ .......... .......... .......... ........... ........... .......... ........... ............ ............ ............ ........... .......... ......... ......
5
Renaming Renaming the PC station station
.......... ................ ............ ............ ........... .......... ........... ........... .......... ........... ........... .......... ........... ........... .......... ........... ............ ........... .......... .......... .......
6
Renami Renaming ng the compon component ent config configura urator tor (CoCo) (CoCo) ...... ......... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...
7
PC statio station n hardwa hardware re config configura uratio tion n (OPC (OPC server server)) ...... ......... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...
8
PC station station hardware hardware configurati configuration on (WinLC) (WinLC) ........... ................ .......... ........... ............ ........... .......... .......... .......... ........... ........... .......... ........... ............ ........... ....... Matching Matching with the component component configurat configurator or ........... ................ .......... ........... ........... .......... .......... .......... ........... ........... .......... .......... ........... ............ ........... ....... ..
9 10
Creating Creating an S7 connection connection in NetPro NetPro (1) ........... ................ .......... ........... ........... .......... .......... ........... ........... .......... ........... ........... ........... ............ ........... .......... .......
11
Creating Creating an S7 connection connection in NetPro NetPro (2) ........... ................ .......... ........... ........... .......... .......... ........... ........... .......... ........... ........... ........... ............ ........... .......... .......
12
Downloading Downloading the PC configurati configuration on
........... ................ .......... .......... .......... ........... ............ ............ ............ ............ ........... ........... ........... .......... .......... .......... .......... ........ ...
13
Setting Setting the access access point point for S7ONLI S7ONLINE NE ........... ................. ........... ........... ........... .......... .......... .......... .......... ........... ............ ........... .......... ........... ............ .......... ...... .. Loading Loading the configurat configuration ion (WinLC RTX system) system) ........... ................. ........... ........... ........... .......... .......... .......... ........... ............ ............ ............ ........... ........ ...
14 15
Downloading Downloading the PC PC station station ........... ................ .......... .......... .......... ........... ............ ............ ............ ............ ........... ........... ........... .......... .......... .......... .......... .......... ........... ........ ..
16
Configurati Configuration on console console (OPC settings) settings) .......... ................ ............ ............ ........... .......... .......... .......... .......... ........... ............ ............ ............ ........... .......... ......... ......... .....
17
Properties Properties of the OPC server ........... ................ .......... .......... ........... ........... ........... ........... ........... ........... ........... ........... ........... ........... ........... ........... ........... .......... .......... ........ ..
18
Configuring Configuring symbols symbols ........... ................ .......... .......... ........... ........... .......... .......... ........... ............ ............ ........... .......... ........... ............ ........... ........... ........... .......... .......... .......... ......... ....
19
Loading a station ....................................................................... .............................................................................................................. ......................................................... ..................
20
Editing Editing symbol symbol files ........... ................ .......... .......... ........... ........... .......... .......... ........... ............ ............ ........... .......... ........... ............ ........... ........... ........... .......... .......... ........... ............ ......
21
Configuring Configuring a symbol symbol file
........... ................ .......... .......... ........... ........... .......... .......... ........... ............ ............ ........... .......... ........... ............ ........... ........... .......... ......... .......... ....... ..
22
Accepting symbols for OPC ........................................... ....................................................................................... ................................................................... .........................
23
OPC Navigator Navigator
24
........... ................ .......... .......... ........... ............ ........... .......... .......... ........... ........... .......... ........... ............ ............ ........... .......... ........... ............ ........... .......... ........... ........... .....
OPC Scout: Scout: Access Access to addressed addressed items Summary Summary
........... ................ .......... ........... ........... .......... ........... ........... .......... ........... ........... .......... ........... ............ ............ ......... ...
25
........... ................ .......... .......... ........... ........... ........... ........... ........... ............ ........... .......... .......... ........... ............ ........... .......... ........... ............ ............ ........... .......... .......... .......... ......... ....
26
SITRAIN trainin training g for Automation and Industrial Solutions
Page 1
IK-PBSYS Open Process Process Control Control
Automation and Drives
Overview of OPC server WinAC
OPC client e.g. OPC Scout OPC interface Read access
Search Search addr ess space OPC interface
Configuration tool WinAC WinAC Symbol Symbol File Configurator
OPC server WinAC
Group
Items from Add ress space
address space
Symbol file
It em
Created by client
It em
Configuration tool
It em
Simatic manager
WinLC Var ia iab le le
Var ia iab le le
Var ia iab le le
Drivers PROFIBUS DP
PROFIBUS PROFIBUS DP field devices
SITRAIN IK-PBSYS / Open Process Control
Su m m a r y
Page 2
03/2007 © Siemens AG 2007 - Subject to change without prior notice
Co n f i g u r i n g en v i r o n men t : The OPC server configuration comprises the address space configuration and the logic controller (WinLC) configuration. The symbol file for the address space is used to define which absolute data areas in the WinLC will be used and which names will will be used by the OPC client to access data in the WinLC. This symbol file is created with the Symbol File Configurator. The hardware configuration and the control program for the WinLC are created with the Simatic Simatic Manager. Manager. 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.
SITRAIN trainin training g for Automation and Industrial Solutions
Page 2
IK-PBSYS Open Process Process Control Control
Automation and Drives
Configuring hardware in STEP 7 (example)
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.
SITRAIN training for Automation and Industrial Solutions
Page 3
IK-PBSYS Open Process Control
Automation and Drives
Creating a symbol table in the S7 project
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 training for Automation and Industrial Solutions
Page 4
IK-PBSYS Open Process Control
Automation and Drives
Creating a PC station in the STEP 7 project
SITRAIN IK-PBSYS / Open Process Control
Page 5
03/2007 © Siemens AG 2007 - Subject to change without prior notice
Notes
SITRAIN training for Automation and Industrial Solutions
Page 5
IK-PBSYS Open Process Control
Automation and Drives
Renaming the PC station
PC station after renaming "My OPC station"
Standard name for a new PC station
SITRAIN IK-PBSYS / Open Process Control
Page 6
03/2007 © Siemens AG 2007 - Subject to change without prior notice
Notes
SITRAIN training for Automation and Industrial Solutions
Page 6
IK-PBSYS Open Process Control
Automation and Drives
Renaming the component configurator (CoCo)
"CoCo" is always displayed here (double click to open)
Name must match the name of the PC station
Button for changing the station name
SITRAIN IK-PBSYS / Open Process Control
Page 7
03/2007 © Siemens AG 2007 - Subject to change without prior notice
Notes
SITRAIN training for Automation and Industrial Solutions
Page 7
IK-PBSYS Open Process Control
Automation and Drives
PC station hardware configuration (OPC server)
The OPC server position can be freely selected.
Select an OPC server and drag it to the "rack". SITRAIN IK-PBSYS / Open Process Control
Note
Page 8
03/2007 © Siemens AG 2007 - Subject to change without prior notice
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 training for Automation and Industrial Solutions
Page 8
IK-PBSYS Open Process Control
Automation and Drives
PC station hardware configuration (WinLC)
Select the correct version of WinLC RTX
SITRAIN IK-PBSYS / Open Process Control
Page 9
03/2007 © Siemens AG 2007 - Subject to change without prior notice
Notes
SITRAIN training for Automation and Industrial Solutions
Page 9
IK-PBSYS Open Process Control
Automation and Drives
Matching with the component configurator
The entries in the HW Config must have the same indices as those in the CoCo
Status messages
Adding components
SITRAIN IK-PBSYS / Open Process Control
Note
Page 10
03/2007 © Siemens AG 2007 - Subject to change without prior notice
The entries in the hardware configuration must have the same indices as those in the component configurator.
SITRAIN training for Automation and Industrial Solutions
Page 10
IK-PBSYS Open Process Control
Automation and Drives
Creating an S7 connection in NetPro (1)
OPC server
New connections are configured on the OPC server
SITRAIN IK-PBSYS / Open Process Control
Notes
Page 11
03/2007 © Siemens AG 2007 - Subject to change without prior notice
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.
SITRAIN training for Automation and Industrial Solutions
Page 11
IK-PBSYS Open Process Control
Automation and Drives
Creating an S7 connection in NetPro (2) 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 training for Automation and Industrial Solutions
Page 12
IK-PBSYS Open Process Control
Automation and Drives
Downloading the PC configuration The component configurator "CoCo" cannot be accessed online: Is access point S7ONLINE set to "PC Internal"? Is the name of the PC station correctly entered in the "CoCo"? WinLC RTX already started?
SITRAIN IK-PBSYS / Open Process Control
Note
Page 13
03/2007 © Siemens AG 2007 - Subject to change without prior notice
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 training for Automation and Industrial Solutions
Page 13
IK-PBSYS Open Process Control
Automation and Drives
Setting the access point for S7ONLINE Load "CoCo": Set interface PC Internal (local)
Set access points PG/PC interface as alternative
"CoCo" correctly loaded (yellow arrow)
SITRAIN IK-PBSYS / Open Process Control
Page 14
03/2007 © Siemens AG 2007 - Subject to change without prior notice
Notes
SITRAIN training for Automation and Industrial Solutions
Page 14
IK-PBSYS Open Process Control
Automation and Drives
Loading the configuration (WinLC RTX system)
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 commandStart 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 theS7ONLINE application must be switched over with menu commandsCPU 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)).
SITRAIN training for Automation and Industrial Solutions
Page 15
IK-PBSYS Open Process Control
Automation and Drives
Downloading the PC station Component correctly configured
Status irrelevant for WinLC
Component has been started and is ready to run
S7 connection is configured. No data can be exchanged with the WinLC without a connection. SITRAIN IK-PBSYS / Open Process Control
Note
Page 16
No yellow or red "LEDs" must be alight on the WinLC status display.
03/2007 © Siemens AG 2007 - Subject to change without prior notice
You can check S7 variables using variable tables.
SITRAIN training for Automation and Industrial Solutions
Page 16
IK-PBSYS Open Process Control
Automation and Drives
Configuration console (OPC settings)
SITRAIN IK-PBSYS / Open Process Control
Page 17
03/2007 © Siemens AG 2007 - Subject to change without prior notice
Notes
SITRAIN training for Automation and Industrial Solutions
Page 17
IK-PBSYS Open Process Control
Automation and Drives
Properties of the OPC server Properties of the OPC server
OPC server
Configuring a symbol file
SITRAIN IK-PBSYS / Open Process Control
Page 18
03/2007 © Siemens AG 2007 - Subject to change without prior notice
The Symbol File Configurator 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 d irectly by the OPC Server without using a symbol file. Using the Symbol File Configurator, a symbolic name is assigned to a runtime name.
SITRAIN training for Automation and Industrial Solutions
Page 18
IK-PBSYS Open Process Control
Automation and Drives
Configuring symbols
SITRAIN IK-PBSYS / Open Process Control
Using symbols
Page 19
03/2007 © Siemens AG 2007 - Subject to change without prior notice
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. - Al l: 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.
SITRAIN training for Automation and Industrial Solutions
Page 19
IK-PBSYS Open Process Control
Automation and Drives
Loading a station
SITRAIN IK-PBSYS / Open Process Control
Page 20
03/2007 © Siemens AG 2007 - Subject to change without prior notice
Notes
SITRAIN training for Automation and Industrial Solutions
Page 20
IK-PBSYS Open Process Control
Automation and Drives
Editing symbol files
Edit symbol files Manage symbol files
SITRAIN IK-PBSYS / Open Process Control
Using symbols
Page 21
03/2007 © Siemens AG 2007 - Subject to change without prior notice
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.
SITRAIN training for Automation and Industrial Solutions
Page 21
IK-PBSYS Open Process Control
Automation and Drives
Configuring a symbol file
Save a symbol file (<>.sti)
Data blocks are automatically extracted. For this reason, only the DB need be specified in the symbol table.
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 training for Automation and Industrial Solutions
Page 22
IK-PBSYS Open Process Control
Automation and Drives
Accepting symbols for OPC
SITRAIN IK-PBSYS / Open Process Control
Page 23
03/2007 © Siemens AG 2007 - Subject to change without prior notice
Notes
SITRAIN training for Automation and Industrial Solutions
Page 23
IK-PBSYS Open Process Control
Automation and Drives
OPC Navigator
WinAC is not started.
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 training for Automation and Industrial Solutions
Page 24
IK-PBSYS Open Process Control
Automation and Drives
OPC Scout: Access to addressed items
SITRAIN IK-PBSYS / Open Process Control
Check
Page 25
03/2007 © Siemens AG 2007 - Subject to change without prior notice
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.
SITRAIN training for Automation and Industrial Solutions
Page 25
IK-PBSYS Open Process Control
Automation and Drives
Summary
OPC client
e.g. OPC Scout
OPC interface Read access
Search addr ess space OPC interface
Configuration tool WinAC Symbol File Configurator
OPC server WinAC
Group
Items from Add ress space
address space
Symbol file
Item
Created by client
Item
Configuration tool
Item
Simatic manager
WinLC Var iab le
Var iab le
Var iab le
Drivers PROFIBUS DP
PROFIBUS DP field devices
SITRAIN IK-PBSYS / Open Process Control
Summary
Page 26
03/2007 © Siemens AG 2007 - Subject to change without prior notice
Configuring environment: The OPC server configuration comprises the address space configuration and the logic controller (WinLC) configuration. The symbol file for the address space is used to define which absolute data areas in the WinLC will be used and which names will be used by the OPC client to access data in the WinLC. This symbol file is created with the Symbol File Configurator. The hardware configuration and the control program for the WinLC are created with the Simatic Manager. 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.
SITRAIN training for Automation and Industrial Solutions
Page 26
IK-PBSYS Open Process Control