Simatic Net Industrial Communication Commissioning PC Stations - Manual and Quick Start
Simatic Net Industrial Communication Commissioning PC Stations - Manual and Quick Start
Simatic Net Industrial Communication Commissioning PC Stations - Manual and Quick Start
___________________
Preface
Welcome to Advanced PC
1
___________________
Configuration
SIMATIC NET
Industrial Communication
Commissioning PC Stations Manual and Quick Start
Configuration Manual
Release 06/2011
C79000-G8976-C156-14
2
___________________
Getting started
3
___________________
Examples
4
___________________
Tools
A
___________________
FAQs
B
___________________
References and literature
Legal information
Legal information
Warning notice system
This manual contains notices you have to observe in order to ensure your personal safety, as well as to prevent
damage to property. The notices referring to your personal safety are highlighted in the manual by a safety alert
symbol, notices referring only to property damage have no safety alert symbol. These notices shown below are
graded according to the degree of danger.
DANGER
indicates that death or severe personal injury will result if proper precautions are not taken.
WARNING
indicates that death or severe personal injury may result if proper precautions are not taken.
CAUTION
with a safety alert symbol, indicates that minor personal injury can result if proper precautions are not taken.
CAUTION
without a safety alert symbol, indicates that property damage can result if proper precautions are not taken.
NOTICE
indicates that an unintended result or situation can occur if the relevant information is not taken into account.
If more than one degree of danger is present, the warning notice representing the highest degree of danger will
be used. A notice warning of injury to persons with a safety alert symbol may also include a warning relating to
property damage.
Qualified Personnel
The product/system described in this documentation may be operated only by personnel qualified for the specific
task in accordance with the relevant documentation, in particular its warning notices and safety instructions.
Qualified personnel are those who, based on their training and experience, are capable of identifying risks and
avoiding potential hazards when working with these products/systems.
Trademarks
All names identified by are registered trademarks of Siemens AG. The remaining trademarks in this publication
may be trademarks whose use by third parties for their own purposes could violate the rights of the owner.
Disclaimer of Liability
We have reviewed the contents of this publication to ensure consistency with the hardware and software
described. Since variance cannot be precluded entirely, we cannot guarantee full consistency. However, the
information in this publication is reviewed regularly and any necessary corrections are included in subsequent
editions.
Siemens AG
Industry Sector
Postfach 48 48
90026 NRNBERG
GERMANY
C79000-G8976-C156-14
06/2011
Preface
This manual
supports you when commissioning your SIMATIC NET PC modules in a PC station and
helps you to use them successfully.
introduces all the tools made available by the SIMATIC NET software for solving your
communication tasks.
along with the OPC documentation on the SIMATIC NET PC / Windows CD answers your
questions on all aspects of communication:
0DQXDO
&RPPLVVLRQLQJ
3&6WDWLRQV
&RPPLVVLRQLQJ
)ROORZWKHVWHSVEHORZ
*HQHUDOLQIRU
PDWLRQRQWKH
3&WRROV
)XQFWLRQVRI
1&03&
23&VHUYHU
SURMHFWHQJLQHHULQJ
23&DSSOLFDWLRQZLWK
FRPPXQLFDWLRQYLD
(WKHUQHW
23&DSSOLFDWLRQZLWK
DFFHVVWR'3PDVWHU
V\VWHP
352),1(7
DSSOLFDWLRQ
6103
23&'RFXPHQWDWLRQ
,QGXVWULDO
&RPPXQLFDWLRQZLWK
3*3&
"
3URMHFWHQJLQHHULQJ
&RPPLVVLRQLQJ
<RXZLOOILQGMXVWZKDW\RXQHHG
IRUHYHU\XVHFDVHKHUH
23&IURP$WR=
GHWDLOHG23&
GHVFULSWLRQ
H[WHQVLYHVDPSOH
SURJUDPV
([DPSOHV
Note
Variants in the descriptions
The activities described in this manual depend on the operating system you are using.
For Windows 7 and Windows Server 2008 R2, the default display setting is used.
Preface
References /.../
References to other manuals and documentation are indicated by numbers in slashes /.../.
These numbers refer to the titles of manuals listed in the References section at the end of
the manual.
Contents
Preface ...................................................................................................................................................... 3
1
1.2
1.3
1.4
1.4.1
1.4.2
1.4.3
"Configured mode".......................................................................................................................23
Steps in project engineering ........................................................................................................24
Steps for initial configuration........................................................................................................29
Case a) Initial configuration using remote configuration with STEP 7 / NCM PC .......................30
Case b) Initial configuration with XDB file....................................................................................34
Case c) Initial configuration using the Station Configuration Editor.............................................37
2.2
2.2.1
2.2.2
2.3
2.3.1
2.3.2
2.3.2.1
2.3.3
2.3.3.1
2.3.3.2
2.3.3.3
2.4
2.4.1
2.4.2
2.4.3
2.4.4
2.4.5
2.4.5.1
2.4.5.2
2.5
2.5.1
2.5.2
2.5.2.1
2.5.2.2
Contents
2.5.2.3
2.5.2.4
2.5.2.5
2.5.2.6
2.5.2.7
2.5.3
2.5.4
2.6
Examples................................................................................................................................................. 99
3.1
3.1.1
3.1.2
3.1.3
3.1.3.1
3.1.3.2
3.1.4
3.1.5
3.1.5.1
3.1.5.2
3.2
3.2.1
3.2.2
3.2.3
3.2.4
3.2.4.1
3.2.4.2
3.2.5
3.2.5.1
3.2.5.2
3.3
3.3.1
3.3.2
3.3.3
3.3.4
3.3.4.1
3.3.4.2
3.3.4.3
3.3.5
3.4
3.4.1
3.4.1.1
3.4.1.2
3.4.2
3.4.2.1
3.4.2.2
3.4.3
3.4.3.1
3.4.3.2
3.5
Contents
3.5.1
3.5.2
3.5.2.1
3.5.3
3.5.4
3.5.4.1
3.5.4.2
3.5.4.3
3.5.5
4
Tools...................................................................................................................................................... 199
4.1
4.1.1
4.1.2
4.1.3
4.1.4
4.2
4.2.1
4.2.2
4.2.3
4.2.4
4.2.5
4.2.6
4.2.7
4.2.8
4.2.8.1
4.2.8.2
4.2.9
4.2.9.1
4.2.9.2
4.2.10
4.3
4.3.1
4.3.2
4.3.3
4.3.4
4.3.5
4.3.6
4.3.7
4.3.7.1
4.3.7.2
4.3.8
4.3.8.1
4.3.8.2
4.3.9
4.3.10
4.4
4.4.1
4.4.2
4.4.3
4.4.4
Symbol Editor.............................................................................................................................257
Characteristics, functions and structure.....................................................................................257
The meaning of symbols............................................................................................................260
Menus of the Symbol Editor in detail .........................................................................................261
Managing symbols .....................................................................................................................262
Contents
4.4.4.1
4.4.4.2
4.4.4.3
4.4.4.4
4.4.4.5
4.4.4.6
4.5
4.5.1
4.5.2
4.5.3
4.5.3.1
4.5.3.2
4.5.3.3
4.5.3.4
4.5.3.5
4.5.3.6
4.5.3.7
4.5.3.8
4.5.3.9
4.5.4
4.5.4.1
4.5.4.2
4.5.5.3
4.5.5.4
4.5.5.5
4.6
4.6.1
4.6.2
4.6.3
4.6.4
4.6.5
4.6.6
4.6.7
4.6.8
4.6.9
4.6.10
4.6.11
4.6.11.1
4.6.11.2
4.6.11.3
4.6.11.4
4.6.11.5
4.6.11.6
4.5.4.3
4.5.4.4
4.5.4.5
4.5.5
4.5.5.1
4.5.5.2
Contents
A.2
A.2.1
A.2.2
A.2.3
A.2.4
A.2.5
A.2.6
A.2.7
A.2.8
A.2.9
A.2.10
A.2.11
A.3
A.3.1
A.3.2
Contents
A.3.3
A.3.4
A.4
A.5
A.6
A.7
A.7.1
A.7.2
A.7.3
A.7.4
10
11
12
1.2
PC stations in SIMATIC
$65DFN
,QDQ6,0$7,&6
PRGXOHVDUHLQVHUWHGLQWKH
VORWVLQWKHUDFN
6ORW
,QGXVWULDO(WKHUQHW
352),%86
,QWKHVDPHZD\FRPSRQHQWV
3&VWDWLRQIRUH[DPSOHPRGXOHV
RID3&VWDWLRQ
DUHDVVLJQHGWRDYLUWXDOVORWSHU
VRIWZDUH
23&
6HUYHU
8VHU
$SSOLFDWLRQ
7KHYLUWXDOUDFNLVLPSOHPHQWHGRQWKH
3&VWDWLRQE\VRIWZDUH
9LUWXDO5DFNLQWKH3&6WDWLRQ
,QGH[
,QGH[
,QGH[
,QGH[
,QGXVWULDO(WKHUQHW
352),%86
3&6WDWLRQ
13
14
$65DFN
'RZQORDG
3URMHFWHQJLQHHULQJWRRO
67(31&03&
,QGXVWULDO(WKHUQHW
6ORW
352),%86
5HPRWH&RQILJXUDWLRQ
'RZQORDG
/RDGD3&6WDWLRQ
;'%LPSRUW
23&
6HUYHU
8VHU
DSSOLFDWLRQ
9LUWXDO5DFNLQWKH3&6WDWLRQ
,QGH[
,QGH[
,QGH[ ,QGH[
,QGXVWULDO(WKHUQHW
352),%86
15
1.3
Basic tools:
Station Configuration Editor
With this tool, you insert the modules and components into the "virtual" slots of the PC station and assign
them addresses and parameters.
Configuration Console
The "Configuration Console" provides a variety of options for configuration and diagnostics of PC hardware
components and PC user programs as well as the OPC server.
16
1.4
1.4.1
Resulting area of
application:
Programming device
(PG/PC)
Engineering station
(ES)
Selectable mode:
PG mode (default)
Configured mode
Runtime PC
17
PG mode
(default mode)
Configured mode
18
1.4.2
Step
Tool
3. Configuration for PG mode Assign addresses and interface parameters to the Configuration Console /
modules
Set PG/PC Interface
Result:
PC station is ready for operation in PG/PC mode.
Configuration Console /
Set PG/PC Interface
Result:
The HMI station with its application are ready for operation.
Communication via an unconfigured S7 connection is possible.
Configuration Console
Configuration Console
19
1.4.3
Step
Tool
NCM PC / STEP 7
SIMATIC Manager
HW Config
NetPro
HW Config
4. Initial configuration
NCM PC / STEP 7
NCM PC / STEP 7
Result:
PC station is ready for productive communication.
Configuration Console
Configuration Console
20
Tool
Project engineering
(as prerequisite for initial
configuration)
NCM PC / STEP 7
SIMATIC Manager
HW Config
NetPro
HW Config
SIMATIC Manager
3. Initial configuration
Import XDB
Result:
PC station is ready for productive communication.
Configuration Console
Configuration Console
Case c) Initial configuration without existing project engineering data (XDB file)
This is, for example, the situation when the commissioning personnel do not have an
XDB file but the devices need to be installed in a plant and their functionality checked.
Regardless of the initial configuration, the stations and their connections (PC and PLC)
can configured in STEP 7. The project engineering data is then transferred to the
previously configured PC stations in the system. Depending on the availability of the
station, this is achieved by download or loading the station (XDB import).
To ensure that the configuration on the PC station and the project engineering are
consistent, it is advisable to import the configuration data from the PC station.
21
Step
Tool
3. Initial configuration
Module configuration
Result:
The PC station with its modules and applications is configured and
ready to receive project engineering data.
Configuration Console
5. Optional:
Data export
6. Project engineering
(this is not dependent on the
previous steps but is
necessary for step 7)
Configuration Console
NCM PC / STEP 7
SIMATIC Manager
HW Config
NetPro
HW Config / NetPro
SIMATIC Manager
Import XDB
Result:
PC station is ready for productive communication.
Configuration Console
Configuration Console
22
Getting started
2.1
"Configured mode"
This chapter explains how to commission your PC station with communications modules for
the "configured mode" the first time (initial configuration).
The "configured mode" is used for productive communication between applications in the PC
station and the automation systems, for example SIMATIC S7400.
In conjunction with the project engineering, you will also see how data exchange between
the PC station and the project engineering tool works.
23
Getting started
2.1 "Configured mode"
2.1.1
Result
Once the project engineering data has been downloaded to or imported into the PC station,
the applications can communicate over the established communication networks with the
stations reachable over the network.
Initial situation
Case a) Initial configuration using remote configuration with NCM PC / STEP 7
To be able to make the initial configuration on the PC station (available online) in the next
step, you must first create the project engineering data for the PC station with NCM PC /
STEP 7.
Case b) An XDB file is available for initial configuration
To be able to make the initial configuration in the next step, you must first create the
project engineering data for the PC station with NCM PC / STEP 7 and then make this
data available in an XDB file.
Case c) The initial configuration has already been made on the PC station
Project engineering data is downloaded or imported as an XDB file following initial
configuration.
24
Getting started
2.1 "Configured mode"
3. Change to SIMATIC NCM PC Config / HW Config and enter the intended modules and
applications (take them from the catalog).
The software applications that use communication services directly must also be
specified during project engineering. One direct use is calling the protocolspecific function
libraries. The OPC server uses communication services directly and must be included in
project engineering. OPC clients only require indirect access via the OPC server and do
not need to be configured in project engineering.
25
Getting started
2.1 "Configured mode"
4. Optional
If symbol tables were created for S7 stations in your project, you can make them
accessible to the OPC server.
When you later import the XDB file or download the project engineering data to the PC
station, these symbol tables are included.
Open the properties dialog of the OPC server to make your selection.
26
Getting started
2.1 "Configured mode"
5. Save the configuration.
Change to NetPro to network the station and to create the connections in the project
engineering.
Note:
You can create the S7 station shown in the screenshot only with STEP 7/HW Config.
In the SIMATIC NCM PC Manager, you can open and edit a project containing S7
stations. You can, however, only create and download project engineering data for PC
stations.
27
Getting started
2.1 "Configured mode"
6. XDB export for "offline mode":
When you save and compile the project, the project engineering data of the PC station is
saved in an XDB file.
You will find information on the storage location of the XDB file in the "Configuration" tab
in the properties dialog of the PC station.
7. If the PC station can be reached online (local or remote), the next step is the initial
configuration of the station.
Note
To load the project engineering data locally, set the access point S7ONLINE for the PC
station to PCinternal (local).
Summary
In the "project engineering" step described here, the following activities were explained:
Creating a STEP 7 project or using an existing STEP 7 project.
Creating a PC station in the STEP 7 project (NetPro / HW Config).
Inserting and networking PC modules in the PC station (HW Config/NetPro).
Commissioning PC Stations - Manual and Quick Start
28
Getting started
2.1 "Configured mode"
Creating applications (here the OPC server).
Configuring connections for the applications.
Storing the project engineering data in an XDB database.
The XDB database is then available for offline mode and can be used to import the
engineering data on the PC station.
2.1.2
Result
When you start the PC station, the PC module of the PC station is initially in PG mode.
By adding the communications module in the Station Configuration Editor, the module is
automatically switched to "configured mode" and the index (the "virtual slot number") of the
module is set.
29
Getting started
2.1 "Configured mode"
2.1.2.1
30
Getting started
2.1 "Configured mode"
2. Start the "SIMATIC Shell" program.
"Computer" > right mouse button on the "Simatic Shell" directory > "Settings..." shortcut
menu
Reaction: The "SIMATIC Shell" program is started, the "Select Terminal Bus" dialog
appears.
3. Select network adapter intended for communication and confirm with "OK".
4. As soon as the "Reinitialize" dialog appears, confirm with "OK".
The name of the activated adapter is selected so that you can check it.
Note
Please note that a PC can only be configured via the network adapter that is initialized, in
other words, selected in the "Network Adapters" list in the "SIMATIC Shell" program.
Note
Make sure that the network cable is connected to the selected network adapter.
31
Getting started
2.1 "Configured mode"
2. Select the menu command "PLC" > "Configure" to open the "Configuration" dialog.
32
Getting started
2.1 "Configured mode"
3. Follow the instructions in the online help of the dialog to create and complete the remote
configuration.
Result: The PC station with its modules and applications is configured and ready to receive
project engineering data.
33
Getting started
2.1 "Configured mode"
2.1.2.2
34
Getting started
2.1 "Configured mode"
Reaction: You first see an empty configuration list.
2. Import the XDB file using the "Import Station" button.
Reaction: All the modules and applications specified in the project engineering are
entered and displayed in a window.
During import, all the project engineering data; in other words, device name, modules,
applications, communication connections, and symbols are entered in the PC station.
Importing is possible only when the imported configuration matches the existing local
configuration.
3. To prevent project engineering data from being transferred online at a later point in time,
select the "Work offline..." option. With this default setting, you ensure that project
engineering data can be transferred online.
Result: The PC station is ready for productive communication:
35
Getting started
2.1 "Configured mode"
Module addresses are set;
Communication connections configured in the project engineering are established;
Variables can be accessed using configured symbols.
Note
You can also follow this procedure in the example "OPC Configuration for Industrial
Ethernet" in this manual; see Section "OPC application for Industrial Ethernet (Page 99)".
36
Getting started
2.1 "Configured mode"
2.1.2.3
37
Getting started
2.1 "Configured mode"
3. In the next step, you enter the components.
Using the "Add..." button, select the module that will be put into configured mode. All the
modules installed in the local station that are not yet configured are displayed for
selection.
NOTICE
If there are several SOFTNET PROFIBUS modules, only one can be configured in
project engineering.
38
Getting started
2.2 "PG mode"
5. Repeat the steps for all other modules that exist in the local station and that you want to
operate in configured mode.
6. Using the "Add..." button, add the applications to be operated on the station.
7. Repeat the steps for all other applications you want to use for the configured mode.
Result: The PC station with its modules and applications is configured and ready to receive
project engineering data (select online mode!).
Note
You will also find this procedure in our example "Configuration Example for PROFIBUS"; see
Section "OPC application for PROFIBUS DP (Page 116)".
2.2
"PG mode"
This chapter shows you how you can configure your PC module in PG mode. In this
situation, we distinguish two modes:
Programming device (PG/PC)
HMI stations
The default setting for the PC modules is PG mode.
39
Getting started
2.2 "PG mode"
2.2.1
40
Getting started
2.2 "PG mode"
As an alternative you can also start it from the Control Panel:
"Start" > "Settings" > "Control Panel" > "Set PG/PC interface".
2. Assign the access point suitable for your application to the module.
To make your module usable for STEP 7, follow the steps outlined below in the "Set
PG/PC Interface" configuration program:
Select the access point "S7ONLINE" in the "Access Point of the Application" list box.
Reaction: The current assignment appears in the list box "Interface Parameter
Assignment Used".
Select the required entry in the "Interface Parameter Assignment Used" list box. Some
modules offer alternatives, for example the CP 1613 as follows:
If you use the TCP protocol - "CP1613(RFC1006)",
If you use the ISO protocol - "CP1613(ISO)"
or CP 5613/CP 5614 as follows:
Normal situation - "CP5613_5614(PROFIBUS)"
on an MPI chain - "CP5613_5614(MPI)".
For further details on setting access points, refer to the section "Tools (Page 199)".
1. Set the required communication parameters.
41
Getting started
2.2 "PG mode"
With your module selected, you can click on "Properties..." and then set the
communication parameters. In normal situations, the parameter settings do not need to
be modified (for more detailed information on the parameters, refer to the online help that
you can display by clicking the "Help" button in the Settings dialog).
For more information on certain module types, see below.
2. When you close the settings window, you return to the start dialog of the "Set PG/PC
Interface" communication program.
3. Close the configuration program with the "OK" button.
Result: The module is now set up for PG mode.
Note
Remember that by clicking on a module to make settings, it is possible to change the
assignment. If you have accidentally changed an assignment, make sure you correct it
again.
42
Getting started
2.2 "PG mode"
2.2.2
43
Getting started
2.2 "PG mode"
As an alternative you can also start it from the Control Panel:
Start menu "Start" > "Settings" > "Control Panel" > "Set PG/PC interface".
2. Assign the access point suitable for your application to the module.
Note:
You can generally also select the "S7ONLINE" access point here.
Select the access point in the "Access Point of the Application" list box. off.
Reaction: The current assignment appears in the list box "Interface Parameter
Assignment Used".
44
Getting started
2.2 "PG mode"
3. If the suitable access point for your application is not present, select the "Add/Remove"
entry.
Reaction: The "Add/Delete Access Points" dialog box appears.
45
Getting started
2.2 "PG mode"
4. Confirm your entries.
As an alternative, you can also specify new access points in the "Configuration Console"
tool. For more detailed information, see section "Configuration for PG mode programming device (PG/PC) (Page 40)".
5. In the "Interface Parameter Assignment Used" list box (or "Assigned Interface Parameter
Assignment"), select the entry you require.
Some modules offer alternatives, for example the CP 1613 or CP 5613/CP 5614.
Example with the CP 1613:
If you use the TCP protocol: "CP1613(RFC1006)"
If you use the ISO protocol: "CP1613(ISO)"
Example with the CP 5613 / CP 5614:
Normal situation: "CP5613_5614 (PROFIBUS)"
On an MPI chain: "CP5613_5614 (MPI)"
For further details on setting access points, refer to the section "Configuration Console
(Page 271)".
6. Set the required communication parameters.
For details of the module-dependent settings, refer to the previous section "Configuration
for PG mode - programming device (PG/PC) (Page 40)".
Commissioning PC Stations - Manual and Quick Start
46
Getting started
2.3 Using additional functions - points to note
7. When you close the settings window, you return to the start dialog of the "Set PG/PC
Interface" communication program.
8. Close the configuration program with the "OK" button.
Note
Remember that by clicking on a module to make settings, it is possible to change the
assignment. If you have accidentally changed an assignment, make sure you correct it
again.
2.3
2.3.1
2.3.2
47
Getting started
2.3 Using additional functions - points to note
2.3.2.1
Introduction
The OPC Scout V10 shows you the status of the communication connections. To do this, it
makes use of the properties of the process variables or uses information variables. You can
then recognize when a partner device is not accessible.
48
Getting started
2.3 Using additional functions - points to note
2.3.3
2.3.3.1
Adopting the project engineering and symbols from PROFINET iMap and SIMOTION
Scout
You can also use the symbols from PROFINET iMap and SIMOTION Scout with the OPC
Server. These symbol files include not only the symbols but other project engineering
information so that additional connection configuration for the PC station is not necessary.
49
Getting started
2.3 Using additional functions - points to note
(QJLQHHULQJ
HJ352),1(7
6,027,21
6FRXW
23&6HUYHU
([SRUW
,PSRUW
(GLW
6\PERO
)LOH
6\PERO
HGLWRU
Transfer the created symbol file to your PC station. You can specify the required symbol file
in the "Configuration Console".
To use the symbols for PROFINET iMap and SIMOTION Scout, you must also select the PC
module and with it the subnet via which the PROFINET or SIMOTION partner stations are
connected. You make this setting in an extra dialog when selecting the symbol file in the
"Configuration Console".
You can check the selected module with the "Configuration Console" program using the
"Access points" function:
Fixed access point SIMOTION CP_SM_1: e.g. "CP_SM_1:" > "CP5613(PROFIBUS)"
Fixed access point PROFINET CP_PN_1: e.g. "CP_PN_1:" > "CP1613(RFC1006)"
For further information on PROFINET and SIMOTION, please refer to the documentation of
the PROFINET iMap or SIMOTION Scout engineering programs.
50
Getting started
2.3 Using additional functions - points to note
2.3.3.2
Tools
In the description of the steps "Configuration for PG mode - programming device (PG/PC) /
HMI stations", we showed you how to specify and assign access points using the Set PG/PC
Interface tool.
The following section describes how you can manage access points with the "Configuration
Console" tool (see also "Configuration Console (Page 271)").
51
Getting started
2.3 Using additional functions - points to note
2.3.3.3
Introduction
Modules operated with the "SOFTNET Industrial Ethernet" software product are integrated in
Windows just like a standard network adapter but with additional protocols. The station
parameters for such modules can only be set with the standard mechanisms of Windows.
Parameter
The parameters to be set with Windows mechanisms are as follows:
IP address
Subnet mask
Gateway address
Even when changing the station parameters during the initial configuration, the Windows
configuration program must be used. During the initial configuration, you are prompted to
start this tool.
52
Getting started
2.4 Configuring the OPC server
2.4
OPC server
With the SIMATIC NET OPC Server described here, SIMATIC NET offers you a convenient
tool with which your PC applications can write and read process data and receive notification
of process events.
By creating a project engineering database, you can specify the behavior of the OPC Server.
You then download the project engineering data to the PC station with NCM PC.
This chapter describes the options available to you when creating the project engineering
data for the OPC server with the NCM PC project engineering tool.
Using default settings or project engineering parameters
The parameters you can set with NCM PC all have default settings so that in most cases
problemfree communication is possible.
This chapter is only relevant for you if you want to change settings.
%DVLFVRIWKH23&LQWHUIDFH
53
Getting started
2.4 Configuring the OPC server
2.4.1
<RXFDQFRQILJXUHWKH
IROORZLQJ
3URWRFRODQG
VHUYLFHGHSHQGHQW
SURSHUWLHV
3URSHUWLHVIRUVSHFLILF
FRQQHFWLRQV
23&&OLHQWHJRSHUDWRUFRQWURO
DQGPRQLWRULQJV\VWHP
23&6HUYHUIRU6,0$7,&1(7
'DWD$FFHVV
$ODUPV (YHQWV
3URWRFRO6RIWZDUHIURP
6,0$7,&1(7
&RPPXQLFDWLRQVSURFHVVRUIURP
6,0$7,&1(7
54
Getting started
2.4 Configuring the OPC server
2.4.2
The "General" tab contains the formal parameters for identifying the OPC Server and in the
other tabs, you can make parameter settings for the OPC server related to the specific
protocols.
These parameters are independent of the communication connections of a DP master
system that you configure separately in project engineering.
The table below provides you with an overview of the possible parameter settings depending
on the protocol or service type.
55
Getting started
2.4 Configuring the OPC server
Parameter /
function
Scan cycle
time
DP
PROFI
class 2 NET
PROFI
NET IO
SNMP
VFD
Connection
parameters
Segmentation
Use symbols
x
x
Please note that the parameters are described in detail in the online help for each individual
dialog in NCM PC.
56
Getting started
2.4 Configuring the OPC server
2.4.3
57
Getting started
2.4 Configuring the OPC server
Connections
FDL connection (SEND/RECEIVE interface)
58
Getting started
2.4 Configuring the OPC server
59
Getting started
2.4 Configuring the OPC server
ISO transport connection (SEND/RECEIVE interface)
60
Getting started
2.4 Configuring the OPC server
2.4.4
61
Getting started
2.4 Configuring the OPC server
2.4.5
2.4.5.1
Using the "Edit Plant Configuration" button, you obtain a list with all the devices registered
with the OPC server.
You can add others to this list or edit the parameters of the entered devices.
62
Getting started
2.4 Configuring the OPC server
2.4.5.2
SNMP traps
Introduction
Traps are messages that can be sent to the OPC server without it requesting them. There
are seven generic traps available on every SNMPcompliant device. There are also devicespecific traps that are described in the MIB file.
Generic traps
Parameter
Meaning
warmStart
coldStart
linkDown
linkUp
authenticationFailure
egpNeighborLoss
enterpriseSpecific
63
Getting started
2.5 Using the CP 1616 as a PROFINET IO controller / IO device / IO router
2.5
Introduction
The CP 1616 communications processor is a PCI module for connecting PCs or SIMATIC
PGs/PCs to PROFINET IO.
Its essential characteristics are:
Optimized for PROFINET IO
With Ethernet realtime ASIC ERTEC 400
4 x RJ45 ports
Integrated 4port realtime switch
(If used with an external power supply, the integrated realtime switch can also operate
when the PC is turned off.)
Relieves the PC due to event mechanisms
(automatic detection of data changes)
Automatic hardware detection is supported.
Extensive diagnostics options
The chapter describes the configuration of the CP 1616 for the following four use cases:
IO controller
IO device
Use as IO controller and IO device at the same time
IO router
CP 1616 as IO controller
A PC communicates over Industrial Ethernet with PROFINET IO devices.
Commissioning PC Stations - Manual and Quick Start
64
Getting started
2.5 Using the CP 1616 as a PROFINET IO controller / IO device / IO router
In the following example, the user program runs on the PC. Data traffic is handled over the
CP 1616 with several SIMATIC S7 PROFINET IO devices (for example the ET 200S) over
Industrial Ethernet.
352),1(7,2&RQWUROOHU
3&ZLWK&3DQG
,2%DVH&RQWUROOHU
8VHU3URJUDP
31,2,QGXVWULDO(WKHUQHW
6,0$7,&6
(76
352),1(7,2'HYLFHV
CP 1616 as IO device
In this example, the IO Base device user program runs on a PC with a CP 1616 installed in
it. The data exchange with the controller is handled over the CP 1616 and Industrial
Ethernet.
352),1(7,2&RQWUROOHU
3&ZLWK&3DQG
,2%DVH&RQWUROOHU
8VHU3URJUDP
6ZLWK
&3
$GYDQFHG
31,2,QGXVWULDO(WKHUQHW
3&ZLWK&3DQG
,2%DVH'HYLFH
8VHU3URJUDP
6,0$7,&6
(76
352),1(7,2'HYLFHV
65
Getting started
2.5 Using the CP 1616 as a PROFINET IO controller / IO device / IO router
2.5.1
NOTICE
When loading the firmware or commissioning the module, please remember that the CP
1616 has two MAC addresses (always consecutive).
The first address printed on the module is used for layer 2 communication, the second for
the PROFINET protocol (the first address plus one).
Example:
The address "08.00.06.93.DA.76" printed on the communications processor is the address
for layer 2 communication. This means that "08.00.06.93.DA.77" is the MAC address for
Ethernet/PROFINET communication.
66
Getting started
2.5 Using the CP 1616 as a PROFINET IO controller / IO device / IO router
2.5.2
2.5.2.1
67
Getting started
2.5 Using the CP 1616 as a PROFINET IO controller / IO device / IO router
9. Select the CP 1616 and, if necessary, select the "Insert" > "PROFINET IO System" menu
command.
Reaction: Following your confirmation, the PROFINET IO system is inserted
automatically.
10.Now configure the IO devices in the PROFINET IO system to meet your requirements.
68
Getting started
2.5 Using the CP 1616 as a PROFINET IO controller / IO device / IO router
2.5.2.2
69
Getting started
2.5 Using the CP 1616 as a PROFINET IO controller / IO device / IO router
2.5.2.3
The CP 1616 in the PC station "KH1F150D" is the IO controller, the two ET 200S are IO
devices. The same CP 1616 is in the PC station "Softnet" IO device of a CP 1612 IO
controller.
Note
Remember the version!
In the procedure described below, for example, the CP 1616 Version 1.0 ("V1.0") is used.
70
Getting started
2.5 Using the CP 1616 as a PROFINET IO controller / IO device / IO router
4. Create a "Softnet" SIMATIC PC station. Insert a CP 1612 and an OPC server in it.
5. Select the CP 1612 and then select "Edit" > "Object Properties".
6. In the "PROFINET" tab, you can set the mode of the CP 1612.
Select the "PROFINET IO Controller" mode. The inserted OPC server is automatically
assigned to the CP 1612 as a user application.
Then confirm your entries with "OK". This inserts a PROFINET IO system.
7. With "PROFINET IO" > "I/O" > "SIMATIC PC CP" in the hardware catalog, select the CP
1616 (V1.0) and position it in the network (PROFINET IO system).
Result: This configures the CP 1616 as an IO device in the network.
Note
Readme file
You will find information on the combinations of controller and device one module in the
readme file of the DK-16xx product.
8. Select the CP 1616 and then select "Edit" > "Object Properties".
Commissioning PC Stations - Manual and Quick Start
Configuration Manual, Release 06/2011, C79000-G8976-C156-14
71
Getting started
2.5 Using the CP 1616 as a PROFINET IO controller / IO device / IO router
9. Enter the device name in the "Device name" input box.
10.Disable the "Assign IP address via IO Controller" option.
Based on the device name, the IP address of the CP 1616 in PC station "KH1F150D" is
then assigned during compilation.
Confirm completion of the assignment in the dialog box with "OK".
11.Open the "KH1F150D" PC station.
Reaction: PC station appears in "HW Config".
12.Couple the device in the "IO Device Coupling" dialog
Open "Index 1" with the "Object Properties" menu command.
Reaction: The "Properties" dialog box opens.
Click the "IO Device Coupling" button in the "PROFINET" tab.
Reaction: The "IO Device Coupling" dialog box opens.
Click the "Couple" button.
Reaction: The entry in the "Active Coupling" group box changes.
Confirm twice with "OK".
13.Once the configuration is completed, the project can be compiled and downloaded to the
two stations, for example with HW Config ("PLC" > "Download to Module").
72
Getting started
2.5 Using the CP 1616 as a PROFINET IO controller / IO device / IO router
2.5.2.4
Requirements
The following description assumes that you are familiar with the basic functions of the IO
router as described in the operating instructions "CP 1616/CP 1604".
73
Getting started
2.5 Using the CP 1616 as a PROFINET IO controller / IO device / IO router
In the IO system for the control level as an IO device.
In the IO system for the robot level as IO controller.
How to do this is described in this manual in the section "Using the CP 1616 as
PROFINET IO controller and IO device (Page 70)".
2. Configure the IO router:
If you want to read input modules, move on to example 1 below.
If you want to write outputs bit-by-bit, move on to example 2 below.
74
Getting started
2.5 Using the CP 1616 as a PROFINET IO controller / IO device / IO router
1. Open "HW Config" (for example by double-clicking on the "router" IO device) and the
"catalog" (click on the "Catalog" icon in the toolbar at the top).
2. Click on the "(1) Router" IO device.
3. Select the 1 byte DI transfer module and place it on the first slot of the IO device "(1)
Router".
Catalog "PROFINET IO" > "I/O" > "SIMATIC PC-CP" > "CP 1616" > "Migration" > "V2.1"
> "Transfer module" > "DI" > "1 Byte".
Reaction: The transfer module is given the "I-address" (input address) "0".
Note
The IO modules in the "Migration" folder are intended for use with PROFINET Version
V1.0 IO controllers. You will find the possible combinations in the readme file.
75
Getting started
2.5 Using the CP 1616 as a PROFINET IO controller / IO device / IO router
4. Interconnect the transfer module with the real IO module in the IO system for the robot
level:
Open the "Properties" dialog of the 1-byte module, for example by double clicking on the
row of slot 1.
Reaction: The "Properties - 1 byte - (R-/S1)" dialog appears.
5. Open folder "0.0-0.7" of the transfer module in the "PROFINET IO Transfer Module" tab.
The folder name corresponds to the I/O address being used.
76
Getting started
2.5 Using the CP 1616 as a PROFINET IO controller / IO device / IO router
6. Open the drop-down list box in the "Device name" column in byte 0 and select the
"DeviceX2" IO device.
77
Getting started
2.5 Using the CP 1616 as a PROFINET IO controller / IO device / IO router
7. Open the "Module (slot)" drop-down list box in byte 0 and select the "4DI DC24V HF"
module in slot 2.
You can see that bits 0 to 3 of the transfer module were assigned to the four bits of this
module.
8. In the "Transfer update time [ms]" drop-down list box in the lower part of the dialog, set
the interval at which the data of this module is transferred to the IO controller of the
management level. The default is 72 ms which means that a change at an input of the
"4DI DC24V HF" module is detected in the IO controller of the management level at the
latest after 72 ms.
Select a value less than 72 ms if you want the IO system for the control level to access
the IO system for the robot level faster.
Note
Note that the time must not be shorter than the following times:
Update times of the PROFINET IO systems in the IO system for the control level and
IO system for the robot level.
A CP 1616-specific transfer time of 8 ms.
9. Confirm the configuration of the IO router with "OK".
78
Getting started
2.5 Using the CP 1616 as a PROFINET IO controller / IO device / IO router
When you have completed the configuration, the project must be compiled and downloaded
(to the CP 1616 with "Download to Module - Target System").
NOTICE
Remember that the configuration must also be downloaded to the automation system
"SIMATIC 400" (IO controller of the IO system for the control level).
The input data of the "4DI DC24V HF" module in the "DeviceX2" IO device of the IO system
for the robot level can now be read by the IO controller of the management level at address
0.
79
Getting started
2.5 Using the CP 1616 as a PROFINET IO controller / IO device / IO router
3. Select the 1 byte DI transfer module and place it on the first slot of the IO device "(1)
Router".
Catalog "PROFINET IO" > "I/O" > "SIMATIC PC-CP" > "CP 1616" > "Migration" > "V2.1"
> "Transfer module" > "DI" > "1 Byte".
Reaction: The transfer module is given the "O address" (output address) 100.
Note
The IO modules in the "Migration" folder are intended for use with PROFINET Version
V1.0 IO controllers. You will find the possible combinations in the readme file for
PROFINET IO.
80
Getting started
2.5 Using the CP 1616 as a PROFINET IO controller / IO device / IO router
4. Interconnect the transfer module with the real IO module in the IO system for the robot
level:
Open the "Properties" dialog of the 1-byte module, for example by double clicking on the
row of slot 1.
Reaction: The "Properties - 1 byte - (R-/S1)" dialog appears.
5. Open the "0.0-0.7" folder of the transfer module in the "PROFINET IO Transfer Module"
tab and select "DeviceX1" in the drop-down list box of the "Device name" column in byte
0.
You will see that all four bits of the "4DO DC24V/0.5A ST (3)" module have automatically
been assigned to the transfer module.
81
Getting started
2.5 Using the CP 1616 as a PROFINET IO controller / IO device / IO router
6. To control only the first bit of the module from the IO controller of the management level,
enter the address 100.0 in the "End" box of the "Byte 0" row.
You will see that only bit 0 of the "4DO DC24V/0.5A ST (3)" module has been assigned to
the transfer module. As a result, bits 1 to 3 of the module are controlled by the IO
controller of the process level.
7. In the "Transfer update time [ms]" drop-down list box below the large table, set the
interval at which the data of this module is transferred to the IO controller of the
management level. The default is 72 ms which means that a change at an input of the
"4DI DC24V HF" module is detected in the IO controller of the management level at the
latest after 72 ms.
Select a value less than 72 ms if you want the IO system for the control level to access
the IO system for the robot level faster.
Note
Note that the time must not be shorter than the sum of the following times:
Update time of the PROFINET IO systems in the IO system for the management level;
Update time of the PROFINET IO system for the robot level;
A CP 1616-specific transfer time of 8 ms.
8. Confirm the configuration of the IO router with "OK".
82
Getting started
2.5 Using the CP 1616 as a PROFINET IO controller / IO device / IO router
When you have completed the configuration, the project must be compiled and downloaded
(to the CP with "PLC - Download to Module").
NOTICE
Remember that the configuration must also be downloaded to the automation system
"SIMATIC 400" (IO controller of the IO system for the control level).
The first bit of the "4DO DC24V/0.5A ST (3)" module in the "DeviceX2" IO device of the IO
system for the robot level can now be written by the IO controller of the management level at
address 100.
Note
Although the IO controller of the process level writes in bytes, its bit 0 is irrelevant for the
output status of the "4DO DC24V/0.5A ST (3)" module because it is assigned to the IO
controller of the management level.
Although the IO controller of the management level writes byte-oriented, bits 1 to 7 are
irrelevant for the output status of the "4DO DC24V/0.5A ST (3)" module. They can be
written by the IO controller of the process level.
2.5.2.5
Purpose
If you are already using a router, you can copy this along with its entire functionality.
83
Getting started
2.5 Using the CP 1616 as a PROFINET IO controller / IO device / IO router
Requirement
The following description is based on the example described in the previous section "Using
the CP 1616 as a PROFINET IO router (Page 73)".
Procedure
Copying a PROFINET IO router involves 3 steps:
1. Copying the PC station (in this example: "Router").
2. Copying the IO device (in this example: "Router").
3. Coupling the new PC station with the new IO device.
84
Getting started
2.5 Using the CP 1616 as a PROFINET IO controller / IO device / IO router
3. paste the copied PC station into the project:
With the right mouse button, select the project in the directory tree and select the "Paste"
menu command.
Reaction: The PC station "Router(1)" appears.
4. If necessary, rename the new PC station ("Rename" shortcut menu command).
5. Assign a different IP address to the copied PC station ("Router(1)"):
Right-click on "Router(1)".
Reaction: The shortcut menu opens.
Click the "Open Object" menu item.
Reaction: The new PC station appears in "HW Config".
Open "Index X1" by clicking on the "Object properties" entry in the shortcut menu.
Reaction: The "Properties" dialog box opens.
In the "General" tab, click the "Properties" button.
Reaction: The "Properties" dialog box opens.
Enter a different IP address in the "IP address" box.
6. Connect the new PC station with the existing subnet:
Select the subnet in the "Subnet" box and confirm with "OK".
Reaction: The following warning appears: "Address conflicts were found. Do you want
the IP addresses of the IO Devices to become unique again?".
Confirm with "Yes".
Reaction: The configuration system now selects new free IP addresses for the IO
devices. You can change these later if necessary.
Confirm with "OK".
7. Change the device names of the IO devices one after the other:
With the right mouse button, select "O-device" in "HW Config" > menu command "Object
properties" > "Device name" box.
85
Getting started
2.5 Using the CP 1616 as a PROFINET IO controller / IO device / IO router
Right-click on "SIMATIC 400".
Reaction: The shortcut menu opens.
Click the "Open Object" menu item.
Reaction: "HW Config" appears with the message: "The data is read-only.".
Confirm with "OK".
2. Copy the IO device "Router" ("Copy" shortcut menu command).
3. Paste the copied IO device in the existing PROFINET IO system:
Select the "PROFINET IO system" with the right mouse button and click the "Paste"
shortcut menu entry.
Reaction: The following warning appears: "You want to edit the configuration of an
additional station.".
Confirm with "OK".
Reaction: The IO device "Router-1" is added to the PROFINET IO system.
4. If necessary, change the device name of the copied IO device.
86
Getting started
2.5 Using the CP 1616 as a PROFINET IO controller / IO device / IO router
Right-click on "Router(1)".
Reaction: The shortcut menu opens.
Click "Open Object" in the shortcut menu.
Reaction: A new PC station appears in "HW Config".
87
Getting started
2.5 Using the CP 1616 as a PROFINET IO controller / IO device / IO router
2.5.2.6
Functions
Prioritized startup is used in fast processes when IO devices change quickly, for example
changing the tools of a robot. A CP 1616 communications processor supports prioritized
startup of SIMATIC S7 IO devices in RT or IRT communication. Depending on the device,
this allows a time < 0.5 s to be achieved following completion of a restart to the beginning
of user data exchange.
Note
To achieve short communiction times, the Ethernet connections must have fixed settings
so that no time is lost in "negotiation" when establishing the connection.
To achieve a stable Ethernet connection, both ports of an Ethernet connection must be
set to "100 Mbps full duplex" and autonegotiation disabled (click on the port -> "Object
Properties" -> "Options").
As a PROFINET IO controller, the CP 1616 can establish communication with prioritized
startup with a maximum of 5 IO devices.
Project engineering
The configuration of prioritzed startup in STEP 7/NCM PC is only necessary and only
possible for SIMATIC S7-IO devices. Follow the steps below:
1. Open the hardware configuration (HW Config) of the PROFINET IO system.
2. Select the relevant IO device in the PROFINET IO system.
3. Open the object properties of slot "X1".
4. In the "General" tab, select the "Prioritized Startup" option.
For more detailed information on configuration, and, in particular, on the cabling rules, refer
to the STEP 7/NCM PC online help for the "General" tab described above.
After reconfiguring an IO device for priortized startup, the first startup takes place in the
normal time without being prioritized. All subsequent startups will then be completed in the
reduced time of < 0.5 s.
Note
Including an IO device with prioritized startup in a ring with media redundancy serves no
practical purpose since the ring is interrupted at each IO device change.
88
Getting started
2.5 Using the CP 1616 as a PROFINET IO controller / IO device / IO router
2.5.2.7
Functions
You can use the CP 1616 communications processor in a media redundancy ring topology.
As PROFINET IO controller, the CP 1616 itself can be the redundancy manager.
If you use IRT communication, media redundancy is not supported.
Project engineering
This is configured in STEP 7/NCM PC in the "Media Redundancy" tab of the CP 1616
("HW Config select IO controller "CP 1616 " > open "Index X1" in the "Object Properties"
shortcut menu > "Media Redundancy" tab). Then configure the required properties:
Domain - Name of the IRT domain
Role
Not node in the ring - media redundancy is disabled.
Manager - the CP 1616 as a PROFINET IO controller is redundancy manager.
Client - the CP 1616 as a PROFINET IO device is redundancy client.
For more detailed information on configuration, refer to the online help of the "Media
Redundancy" tab.
If a CP 1616 is used as an IO device in the media redundant ring topology, the media
redundancy is handled in the same way.
89
Getting started
2.5 Using the CP 1616 as a PROFINET IO controller / IO device / IO router
2.5.3
90
Getting started
2.5 Using the CP 1616 as a PROFINET IO controller / IO device / IO router
2.5.4
Setting
const PNIO_UINT32 g_deviceInputCount=3;
PNIO_ADDR g_deviceInputAddress[g_deviceInputCount]=
{
{ PNIO_ADDR_LOG, PNIO_IO_IN, 0},
{ PNIO_ADDR_LOG, PNIO_IO_IN, 1},
{ PNIO_ADDR_LOG, PNIO_IO_IN, 2}
};
PNIO_ADDR g_deviceOutputAddress[g_deviceOutputCount]=
{
{ PNIO_ADDR_LOG, PNIO_IO_IN, 0},
{ PNIO_ADDR_LOG, PNIO_IO_IN, 1},
{ PNIO_ADDR_LOG, PNIO_IO_IN, 2}
};
91
Getting started
2.6 Using CP 5613 A2/CP 5623/CP 5603 as a DP slave
2.6
General information
Note
In this subsection, the communications processors
CP 5603
CP 5613 A2
CP 5623
are called simply CP 56x3. The following instructions apply to all three communications
processors.
It is assumed that STEP 7 (as of V5.4 SP 5) is installed and that the configuration of the DP
master already exists (project "S7300" in the example).
If the DP master is a PC station instead of an S7 controller, you can also create the
configuration with NCM PC.
NOTICE
A DP configuration created for a CP 56x3 is not compatible with that of a CP 5614 A2 / CP
5624 slave and vice versa. For this reason, the configuration must be adapted and
downloaded again if a CP 5614 is physically replaced by a CP 56x3 or vice versa.
92
Getting started
2.6 Using CP 5613 A2/CP 5623/CP 5603 as a DP slave
3. Create a new project in STEP 7 with a SIMATIC S7 controller (in the example "S7300")
and a PC station. The SIMATIC S7 controller is the DP master in this example and the
CP 56x3 is the DP slave.
A CPU 315-2 DP is inserted in the SIMATIC 300 station and an OPC server in the PC
station.
4. Open the hardware configuration of the PC station and insert the CP 56x3 that will
function as the DP slave.
Figure 2-1
PC station in HW Config
93
Getting started
2.6 Using CP 5613 A2/CP 5623/CP 5603 as a DP slave
5. Open the object properties of the CP 56x3 and change the mode to "DP slave" and
assign an application (in the example, the OPC server).
94
Getting started
2.6 Using CP 5613 A2/CP 5623/CP 5603 as a DP slave
9. Change to the "Mode" tab and select the "DP Master" option.
Then insert a master system.
95
Getting started
2.6 Using CP 5613 A2/CP 5623/CP 5603 as a DP slave
11.Insert one of the existing entries for the CP 56x3 as the slave from the hardware catalog
branch "Configured Stations" > "PC station (CP 56x3)".
Select "PC station (CP 56x3) as DP V0 slave" or "PC station (CP 56x3) as DP V1 slave"
to suit your particular situation.
Reaction: A dialog opens automatically to allow you to couple the slave with the
previously configured PC station.
96
Getting started
2.6 Using CP 5613 A2/CP 5623/CP 5603 as a DP slave
97
Getting started
2.6 Using CP 5613 A2/CP 5623/CP 5603 as a DP slave
13.Now select the slave and insert the modules.
The modules must already be configured to suit your requirements, otherwise use the
universal module as shown in the example and set the input and output areas to meet
your requirements in the properties dialog of the module.
14.Save and compile the configuration with "Station" > "Save and Compile".
15.Download the S7-300 station and the PC station with "PLC" > "Download to Module".
16.Now create an application suitable for the PC station as a slave.
The calls required for this are described in the manual "DP-Base Programming Interface
for CP 5613/CP 5614".
Note
If you want to connect the CP 56x3 as a slave to a third-party DP master or if no coupling
dialog is possible, you will have to import the supplied GSD files "SLV80b4.GSD" or
"SLV180b4.GSD" into the configuration tool of the DP master.
You configure the CP 56x3 as described in this section. Do not use coupling for this! The
bus parameter settings are important (in particular the node address and baud rate).
You will find more detailed information on using the GSD files mentioned above in the
manual " DP-Base Programming Interface for CP 5613/CP 5614", Section "Meaning of
GSD files".
98
Examples
3.1
3.1.1
Overview
6&RQILJXUDWLRQ
;'%)LOH
6
6$*8
23&,QWHUIDFH
,QGXVWULDO(WKHUQHW
6
99
Examples
3.1 OPC application for Industrial Ethernet
Requirements
If you want to try out the example yourself, you require the following:
A PC.
A communications module for Industrial Ethernet (CP 1613).
The software of the "SIMATIC NET PC Software" CD 11/2003 or later.
An S7400 device with a CP 4431.
Industrial Ethernet cabling between the PC module and S7 device.
For the S7400 device and the PC station, you require a STEP 7 project that was created on
a central ES station (not this PC station).
In the project, you specify the hardware configuration and the programs and data blocks and
define a symbol table.
3.1.2
100
Examples
3.1 OPC application for Industrial Ethernet
3.1.3
3.1.3.1
Result: The current configuration is saved in the project, system data blocks are created, the
XDB file is created and any system errors are displayed.
In NetPro, you will find the network assignment of the SIMATIC 400 station and the PC
station displayed graphically.
101
Examples
3.1 OPC application for Industrial Ethernet
102
Examples
3.1 OPC application for Industrial Ethernet
3.1.3.2
Introduction
Symbol tables are created during project engineering with STEP 7 on a central engineering
station in the form of "ATI" files.
You can continue to use the symbol definitions specified in the STEP 7 configuration in OPC.
This is necessary 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 planned for the
OPC server. The symbols in the symbol table, that relate, for example, to data blocks (DB),
inputs and outputs are taken into account.
Make the settings described in "Specifying the use of symbol files" for the OPC server on the
central engineering station.
103
Examples
3.1 OPC application for Industrial Ethernet
Reaction: The properties dialog of the OPC server opens.
2. Go to the "S7" tab.
In this dialog, you specify which STEP 7 symbols you want to use on the OPC server. In
this case, choose the "Configured" option.
104
Examples
3.1 OPC application for Industrial Ethernet
4. Also confirm the properties dialog of the OPC server with "OK".
Reaction:
You return to "HW Config".
All the symbols specified in the STEP 7 configuration are available in the OPC server.
5. Save and compile the project with the "Station" > "Save and Compile" menu command
and select the option "Compile and check everything" to update the project.
6. Close "HW Config".
105
Examples
3.1 OPC application for Industrial Ethernet
3.1.4
Overview
The CP 1613 is in PG mode after:
starting the PC station
installing the software
installing the CP 1613
106
Examples
3.1 OPC application for Industrial Ethernet
2. Click the "Import Station..." button, select the XDB file that you want to import and confirm
the dialog with "OK".
107
Examples
3.1 OPC application for Industrial Ethernet
Result: All the communication data configured with S7 is now on the PC station. The CP
1613 is in "configured mode".
PC configuration is complete.
108
Examples
3.1 OPC application for Industrial Ethernet
3.1.5
3.1.5.1
109
Examples
3.1 OPC application for Industrial Ethernet
110
Examples
3.1 OPC application for Industrial Ethernet
3.1.5.2
111
Examples
3.1 OPC application for Industrial Ethernet
2. Open the group "\SYM:" > "AS400-S7-OPC" > "CPU 414-3 DP" > "Pump2".
Note
In this example, a CPU 414-3 DP is used.
3. Select the items "Current", "Emergency", "Flow" and "Power" in the information area
using the shift key and mouse. Drag the items in the information area to the OPC Scout
V10 view area.
112
Examples
3.1 OPC application for Industrial Ethernet
113
Examples
3.1 OPC application for Industrial Ethernet
114
Examples
3.1 OPC application for Industrial Ethernet
115
Examples
3.2 OPC application for PROFIBUS DP
3.2
3.2.1
Overview
116
Examples
3.2 OPC application for PROFIBUS DP
6$*
6
3*3&ZLWK
&3
6$*8
23&
,QWHUIDFH
352),%86
(7%
6
Requirements
If you want to try out the example yourself, you require the following:
A PC.
A communications module for PROFIBUS CP 5613
Software of the "SIMATIC NET PC Software" CD (NCM installed).
An ET 200B DP slave.
PROFIBUS cabling between the PC module and ET 200B.
117
Examples
3.2 OPC application for PROFIBUS DP
3.2.2
118
Examples
3.2 OPC application for PROFIBUS DP
3.2.3
Overview
After starting the PC station, after installing the software and installing the hardware, the CP
5613 or CP 5611 is in "PG mode".
By adding the CP 5613 or CP 5611 in the Station Configuration Editor, the module is
automatically switched to "configured mode".
119
Examples
3.2 OPC application for PROFIBUS DP
2. Using the "Add..." button, add the OPC server to be operated on the station and confirm
the dialog with "OK".
120
Examples
3.2 OPC application for PROFIBUS DP
3. Using the "Add..." button, select the CP 5613 or CP 5611.
121
Examples
3.2 OPC application for PROFIBUS DP
4. Check whether the settings of the module match the local configuration.
3.2.4
122
Examples
3.2 OPC application for PROFIBUS DP
3.2.4.1
CP 5613 as DP master
In the STEP 7 project, a SIMATIC PC station was created as an image of the local PC. This
PC station already includes the OPC server as the basic component for productive
communication and the CP 5613.
You require a DP master system so that you can assign DP slaves. For the DP mode, a DP
master system must therefore be added to the CP 5613:
123
Examples
3.2 OPC application for PROFIBUS DP
3.2.4.2
Inserting a DP slave
ET 200B as DP slave
In this section, you insert an ET 200B as DP slave and assign it to the DP master system.
2. Select the DP slave ET 200B with 16 digital input and output bits in the catalog.
124
Examples
3.2 OPC application for PROFIBUS DP
3. Holding down the left mouse button, drag the DP slave to the DP master system until the
mouse pointer touches the DP master system. Release the mouse button when the "+"
symbol appears attached to the mouse pointer.
Confirm the "Properties - PROFIBUS Interface" dialog with "OK".
Reaction: The DP slave is then included in the project.
4. Save and compile the project engineering data by clicking the button below:
125
Examples
3.2 OPC application for PROFIBUS DP
Result: The hardware configuration of the station is downloaded to the automation system.
3.2.5
3.2.5.1
126
Examples
3.2 OPC application for PROFIBUS DP
2. Doubleclick the "OPC.SimaticNET" entry to link the OPC Scout V10 with the OPC Server.
3. Click on "\DP:" > "CP 5613" > "Slave 018" > "_Q" in the navigation area.
4. Select the "_QB0.1" item in the information area and drag it to the view area.
127
Examples
3.2 OPC application for PROFIBUS DP
5. Click on "\DP:" > "CP 5613" > "Slave 018" > "_I" in the navigation area.
6. Select the "_IB0.1" item in the information area and drag it to the view area.
128
Examples
3.2 OPC application for PROFIBUS DP
3.2.5.2
Reaction: The "Write value" dialog opens in which you can change the value of a
variable.
3. Enter a new value in each line.
129
Examples
3.3 Unspecified S7 connection from a PC application
3.3
3.3.1
Overview
6
6$*8
&$SSOLFDWLRQ
,QGXVWULDO(WKHUQHW
6
3.3.2
130
Examples
3.3 Unspecified S7 connection from a PC application
3.3.3
Overview
After starting the PC station, installing the software and installing the hardware, the PC
module of the PC station is in "PG mode".
By adding the communications module in the Station Configuration Editor, the module is
automatically switched to "configured mode".
131
Examples
3.3 Unspecified S7 connection from a PC application
2. Select the first row and click the "Add..." button to include the application.
Reaction: The "Add component" dialog box opens.
132
Examples
3.3 Unspecified S7 connection from a PC application
3. In the "Type" box, select The application and in the "Index:" box, select the slot.
The name of the application is the VFD name in your in your C application (assigned in
STEP 7; refer to the section "Editing the network and connection project engineering
(Page 136)"). If you have several VFDs, you must also include several applications and
assign the corresponding VFD names.
4. If the selected index causes a conflict with the slot number configured in STEP 7 HW
Config, the configuration cannot be downloaded.
In this case, confirm the dialog with "OK".
5. Before the application can be adopted, the PC station must be restarted.
133
Examples
3.3 Unspecified S7 connection from a PC application
7. Check whether the settings of the module match the local configuration.
134
Examples
3.3 Unspecified S7 connection from a PC application
CAUTION
The IP addresses are read out automatically. Please note that when using DHCP, the IP
addresses can change each time the PC restarts. These changes are not automatically
updated in the project engineering. Here, a synchronization is necessary otherwise the
configured connections will not be established and communication will not be possible.
3.3.4
3.3.4.1
135
Examples
3.3 Unspecified S7 connection from a PC application
3.3.4.2
2. In NetPro, you can enter the VFD name of the application (for example VFD 20). You do
this by doubleclicking on "Application" and entering the required name.
136
Examples
3.3 Unspecified S7 connection from a PC application
3. To insert a connection, you must select the application.
Select the "Application" object and then select "Insert" > "New Connection".
Reaction: The "Insert New Connection" dialog box opens.
4. You can select the partner, however, only if it already exists in the project. In this
example, you configure an unspecified connection. In the case of an S7 connection, no
project engineering whatsoever is required at the partner end.
5. In the "Connection Partner" box, select "(unspecified)" for the station.
6. In the "Connection" box, select "S7 connection" as the type.
To be able to establish the connection, the partner station must be specified by the
network address and access point of the partner application (slot).
137
Examples
3.3 Unspecified S7 connection from a PC application
7. Confirm with "OK".
Reaction: Once you have created a new connection, the "Properties - S7 connection"
dialog opens.
138
Examples
3.3 Unspecified S7 connection from a PC application
9. Click the "Address Details" button.
Reaction: The "Address Details" dialog box opens.
10.To specify the access point of the partner application, enter the slot of the CPU in the
SIMATIC S7. Once you have specified the slot, click the "OK" button.
Reaction: The "Properties - S7 connection" dialog box opens.
139
Examples
3.3 Unspecified S7 connection from a PC application
11.Once again, confirm with "OK".
Reaction: The following menu appears:
140
Examples
3.3 Unspecified S7 connection from a PC application
12.Save and compile the project with the menu command "Network" > "Save and Compile".
This updates the information in the project.
141
Examples
3.3 Unspecified S7 connection from a PC application
3.3.4.3
Downloading deletes the existing data on the relevant component and overwrites it with
new information.
2. Confirm with "Yes".
Reaction: The "Stop Target Modules" dialog box opens.
3. Confirm with "OK" to complete the loading and to start the module.
142
Examples
3.3 Unspecified S7 connection from a PC application
4. Open the Station Configuration Editor.
Reaction: The Station Configuration Editor is opened
Result: The application and the CP 1612 are inserted in the Station Configuration Editor.
5. Confirm the dialog with "OK".
143
Examples
3.3 Unspecified S7 connection from a PC application
3.3.5
Configuration Console
The "Configuration Console" makes all local settings and diagnostics functions possible. You
also have the settings or diagnostics results of the PC modules (for example CP 1612) and
of the applications (for example the OPC server) at a glance.
Configuration Console
Follow the steps below:
1. Start the Configuration Console (Start menu "Start" > "..." > "SIMATIC NET" >
"Configuration Console").
144
Examples
3.3 Unspecified S7 connection from a PC application
Reaction: The project engineering data is loaded locally in the Station Manager on your
PC.
145
Examples
3.4 Unconfigured S7 connection with the OPC Scout V10
3. Select your module under "Assigned interface parameter assignment".
4. Confirm with "OK".
3.4
Overview
Below, you will find three examples of configurations in which an unconfigured S7
connection is established:
Example 1 - Industrial Ethernet via TCP/IP (Page 147)
Unconfigured S7 connection with a CP 1613 to a SIMATIC S7-400 with a CPU 414-3 DP.
Example 2 - Industrial Ethernet over ISO (Page 156)
Unconfigured S7 connection with a CP 1612 or general communications module for
Industrial Ethernet to a SIMATIC S7-400 with a CPU 414-3 DP.
Example 3 - PROFIBUS (Page 166)
Unconfigured S7 connection with a CP 5614 A2 to a SIMATIC S7-400 with CP 414-3 DP.
146
Examples
3.4 Unconfigured S7 connection with the OPC Scout V10
3.4.1
Description
This example shows how to couple an AS 400-S7-OPC with a CPU 414-3 DP over an
unconfigured S7 connection via Industrial Ethernet (using TCP/IP).
3&ZLWK
&3
,QGXVWULDO(WKHUQHW
6WDWLRQDGGUHVV
5HPRWH76$3
'DWDHOHPHQW 0%
$6623&
&38'3
&3
&3$GYDQFHG
Requirements
If you want to try out the example yourself, you require the following:
A PC with the CP 1613 communications module for Industrial Ethernet.
You will find detailed instructions on installation in the product information/installation
instructions supplied with the communications module.
The installed software of the "SIMATIC NET PC Software" CD.
You will find details in the installation instructions "SIMATIC NET, PC Software ",
supplied with the software.
A SIMATIC AS 400-S7-OPC with CPU 414-3 DP.
Industrial Ethernet cabling between the PC module and S7 device.
The SIMATIC AS 400-S7-OPC used in this example has station address "190.170.1.28",
a remote TSAP of "02.03" and the data element "MB0".
147
Examples
3.4 Unconfigured S7 connection with the OPC Scout V10
3.4.1.1
2. Double-click on the access point "CP_H1_1:" in the drop-down list box of the "Access
Point" column.
Reaction: The "CP_H1_1: Properties" dialog box opens.
148
Examples
3.4 Unconfigured S7 connection with the OPC Scout V10
3. You will find the current assignment in "Associated interface parameter assignment". For
a connection using the TCP/IP protocol, select the "CP1613(RFC1006)" entry from the
"Associated interface parameter assignment" drop-down list box.
Note
Note that the assignment can be changed by clicking on "Associated interface parameter
assignment" drop-down list. If you have accidentally changed an assignment, make sure
you correct it again.
Note
Access points must not be changed during operation.
4. Confirm with "OK".
Reaction: The interface parameter assignment is now set up.
149
Examples
3.4 Unconfigured S7 connection with the OPC Scout V10
3.4.1.2
150
Examples
3.4 Unconfigured S7 connection with the OPC Scout V10
Start menu "Start" > "..." > "SIMATIC NET" > "OPC Scout V10"
Reaction: The "OPC Scout V10" program opens.
2. Double-click on "Local COM server" in the navigation area and then on the server
"OPC.SimaticNET".
This creates a connection to the server.
151
Examples
3.4 Unconfigured S7 connection with the OPC Scout V10
3. In the view area, click on an empty row and add a new item using the mouse context
button.
4. Enter "S7:[S7-unproj-connection_1|VFD1|CP_H1_1:|
02.00,142.11.49.26,02.03,1]MB0" in the "Item ID/name:" input box..
152
Examples
3.4 Unconfigured S7 connection with the OPC Scout V10
6. In the navigation area, go to "Local COM server" > "OPC.SimaticNET" > "\S7:" > "S7unproj-connection_1".
153
Examples
3.4 Unconfigured S7 connection with the OPC Scout V10
7. Drag the items Items "&statepath()" and " &vfdstate()" to the view area.
Following the drag-and-drop action, you will find the items in the view area.
8. Click the "Monitor ON" button to monitor the items in the view area.
Background information
You will find a detailed description of how to create an item in the manual "Industrial
Communication with PG/PC volume 2" in Section 2.5.11 "Unconfigured S7 connections".
The character string to be entered under "Item ID/name:" is made up as follows:
"S7:[<connectionname>|<VFD>|<accesspoint>|<Local TSAP>,<stationaddress>,<RemoteTSAP>,<Mode>]<dataelement>"
The information in the following table applies to this example:
154
Examples
3.4 Unconfigured S7 connection with the OPC Scout V10
S7-unproj-connection_1
An entry with a maximum length of 24 characters is permitted. The name
must be unique.
<VFD>
VFD1
Can be freely selected, all connections can be created on the same VFD.
<accesspoint>
CP_H1_1:
Call for the access point that was set up in the section "Engineering of the
unconfigured S7 connection (Page 148)".
<Local TSAP>
02.00
The first byte "02" stands for "Operator station operator control and
monitoring", the second byte is always 0 ("00").
<stationaddress>
<Remote TSAP>
02.03
The first byte ("02") once again stands for "Operator station operator control
and monitoring".
The second byte ("03") contains the addressing of the S7-CPU which, in our
example, is located in slot 3.
<Mode>
1
For the mode, there are two possible values:
1 - active connection establishment of the OPC server with optimization
3 - active connection establishment of the OPC server without optimization
<Dataelement>
MB0
Here, for example, a memory byte with address 0 is specified. Which data
elements are possible for S7 is described in the manual "Industrial
Communication with PG/PC volume 2".
Browsing
155
Examples
3.4 Unconfigured S7 connection with the OPC Scout V10
To be able to browse in your newly created connection (to use the connection like a
configured S7 connection) note the following:
Note
Follow the steps below to make it possible to browse over this unconfigured S7 connection:
1. Move the mouse to the navigation area.
2. Right-click the on the "S7" node in the "Node" tree structure.
3. Select the menu command "Browse this level again".
Result: It is now possible to browse over the unconfigured S7 connection.
As long as the item is active, the connection can be used like a configured S7 connection.
This means that you can add further items without using the syntax of the unconfigured S7
connection. All you need to do is specify the connection name, for example "S7:[S7-unprojconnection_1]MB0".
3.4.2
Description
This example shows how to couple an AS 400-S7-OPC with a CPU 414-3 DP over an
unconfigured S7 connection via Industrial Ethernet (using ISO).
3&ZLWK
&3
RU
,(JHQ
,QGXVWULDO(WKHUQHW
6WDWLRQDGGUHVV '&
5HPRWH76$3
'DWDHOHPHQW 0%
$6623&
&38'3
&3
&3$GYDQFHG
156
Examples
3.4 Unconfigured S7 connection with the OPC Scout V10
Requirement
If you want to try out the example yourself, you require the following:
A PC with the CP 1612 communications processor for Industrial Ethernet or a general
Industrial Ethernet communications module.
You will find detailed instructions on installation in the product information/installation
instructions supplied with the communications module.
The installed software of the "SIMATIC NET PC Software" DVD.
You will find details in the installation instructions "SIMATIC NET, PC Software", supplied
with the software.
A SIMATIC AS 400-S7-OPC with CPU 414-3 DP and CP 443-1.
Industrial Ethernet cabling between the CP 1612 communications processor or general IE
communications processor and a SIMATIC AS 400-S7-OPC.
The SIMATIC AS 400-S7-OPC used in this example has station address
"08.00.06.6D.6C.93", a remote TSAP of "02.03" and the data element "MB1".
157
Examples
3.4 Unconfigured S7 connection with the OPC Scout V10
3.4.2.1
2. Double-click on the access point "CP_H1_1:" or "CP_H1_2:" in the drop-down list box of
the "Access points" column.
Reaction: The "CP_H1_1: Properties" dialog box opens.
158
Examples
3.4 Unconfigured S7 connection with the OPC Scout V10
3. You will find the current assignment in "Associated interface parameter assignment:". For
a connection over ISO, select the entry for a general IE module from the "Assigned
interface parameter assignment:" list box, for example the entry of a general IE module,
for example, "ISO Ind. Ethernet -> Siemens CP1612" or a comparable interface.
Note
Note that the assignment can be changed by clicking on "Associated interface parameter
assignment" drop-down list. If you have accidentally changed an assignment, make sure
you correct it again.
4. Confirm with "OK".
Reaction: The interface parameter assignment is now set up.
159
Examples
3.4 Unconfigured S7 connection with the OPC Scout V10
160
Examples
3.4 Unconfigured S7 connection with the OPC Scout V10
3.4.2.2
161
Examples
3.4 Unconfigured S7 connection with the OPC Scout V10
Start menu "Start" > "..." > "SIMATIC NET" > "OPC Scout"
Reaction: The "OPC Scout V10" dialog box opens.
2. Double-click on "Local COM server" in the navigation area and then on the server
"OPC.SimaticNET". This creates a connection to the server.
162
Examples
3.4 Unconfigured S7 connection with the OPC Scout V10
3. In the view area, click on an empty row and add a new item using the mouse context
button.
4. Enter "S7:[S7-unproj-connection_2|VFD3|CP_H1_1:|
02.00,08.00.06.6D.6C.93,02.03,1]MB1" in the "Item ID/name:" input box and close the
dialog with "OK".
Reaction: The item is entered in the view area.
5. In the navigation area, go to "Local COM server" > "OPC.SimaticNET" > "\S7:" > "S7unproj-connection_2".
163
Examples
3.4 Unconfigured S7 connection with the OPC Scout V10
6. Drag the items Items "&statepath()" and " &vfdstate()" to the view area.
Background information
You will find a detailed description of how to create an item in the manual "Industrial
Communication with PG/PC volume 2" in Section 2.5.11 "Unconfigured S7 connections".
164
Examples
3.4 Unconfigured S7 connection with the OPC Scout V10
The string to be entered in "Item ID/name" is made up as follows:
"S7:[<connectionname>|<VFD>|<accesspoint>|<Local TSAP>,<stationaddress>,<Remote
TSAP>,<Mode>]<dataelement>
For this example, the information in the following table applies:
Parameter descriptions Value
<connectionname>
S7-unproj-connection_2
An entry with a maximum length of 24 characters is permitted. The name
must be unique.
<VFD>
VFD3
Can be freely selected, all connections can be created on the same VFD.
<accesspoint>
CP_H1_1:
Call for the access point that was set up in the section "Engineering of the
unconfigured S7 connection (Page 158)".
<Local TSAP>
02.00
The first byte ("02") stands for "Operator station operator control and
monitoring", the second byte is always 0 ("00").
<stationaddress>
08.00.06.6D.6C.93
The station address is decided by the transmission mode.
Since, in this case, we are accessing using ISO, the MAC address of the
SIMATIC S7-400 must be specified here.
<Remote TSAP>
02.03:
The first byte ("02") once again stands for "Operator station operator control
and monitoring".
The second byte ("03") contains the addressing of the S7-CPU which, in our
example, is located in slot 3.
In this example, the Ethernet cable goes to the CP 443-1. The
communications processor is located in slot 5 and is forwarded to the CPU
in slot 3 with the aid of the second byte.
<Mode>
1:
For the mode, there are two possible values:
1 - active connection establishment of the OPC server with optimization
3 - active connection establishment of the OPC server without optimization
<Dataelement>
MB1
Here, for example, a memory byte of the address is specified. Which data
elements are possible for S7 is described in the manual "Industrial
Communication with PG/PC volume 2".
Browsing
165
Examples
3.4 Unconfigured S7 connection with the OPC Scout V10
To be able to browse in your newly created connection (to use the connection like a
configured S7 connection) note the following:
Note
Follow the steps below to be able to browse over this S7 unconfigured connection:
1. in the navigation area, right-click the on the "S7" node in the "Node" tree structure.
2. Select the menu command "Browse this level again".
Result: It is now possible to browse over the unconfigured S7 connection.
As long as the item is active, the connection can be used like a configured S7 connection.
You can also add further items without using the syntax of the unconfigured S7 connection.
You simply need to specify the connection name, for example "S7:[S7-unprojconnection_2]MB1".
3.4.3
Example 3 - PROFIBUS
Description
This example shows how to couple an AS 400-S7-OPC with a CPU 414-3 DP via a CP 4431 over an unconfigured S7 connection via PROFIBUS.
3&ZLWK
&3$
352),%86
6WDWLRQDGGUHVV
5HPRWH76$3
'DWDHOHPHQW 0%
$6623&
&38'3
&3
&3$GYDQFHG
166
Examples
3.4 Unconfigured S7 connection with the OPC Scout V10
Requirement
If you want to try out the example yourself, you require the following:
A PC with the CP 5614 A2 communications module for PROFIBUS.
You will find detailed instructions on installation in the product information/installation
instructions supplied with the communications module.
The installed software of the "SIMATIC NET PC Software" CD.
You will find details in the installation instructions "SIMATIC NET, PC Software ",
supplied with the software.
A SIMATIC AS 400-S7-OPC is coupled with a CPU 414-3 DP via a CP 443-5 and CP
443-5 Advanced.
PROFIBUS cabling between the PC module and S7 device.
The SIMATIC AS 400-S7-OPC used in this example has station address "04", a remote
TSAP of "02.03" and the data element "MB1".
167
Examples
3.4 Unconfigured S7 connection with the OPC Scout V10
3.4.3.1
2. Double-click for example on the access point "CP_H1_1:" or "CP_L2_2:" in the "Access
point" column in the list box.
Reaction: The "CP_H1_1: Properties" dialog box or "CP_H1_2:" opens.
You can also select a different free access point.
168
Examples
3.4 Unconfigured S7 connection with the OPC Scout V10
3. You will find the current assignment in "Associated interface parameter assignment:".
For a connection over PROFIBUS, select the entry "CP5614A2(PROFIBUS)" from the
"Associated interface parameter assignment:" drop-down list box.
Note
Note that the assignment can be changed by clicking on "Associated interface parameter
assignment" drop-down list. If you have accidentally changed an assignment, make sure
you correct it again.
4. Confirm with "OK".
Reaction: The interface parameter assignment is now set up.
169
Examples
3.4 Unconfigured S7 connection with the OPC Scout V10
170
Examples
3.4 Unconfigured S7 connection with the OPC Scout V10
3.4.3.2
171
Examples
3.4 Unconfigured S7 connection with the OPC Scout V10
Start menu "Start" > "..." > "SIMATIC NET" > "OPC Scout V10"
Reaction: The "OPC Scout V10" dialog box opens.
2. In the navigation area, double click on "Local COM server" > "OPC.SimaticNET" to create
a connection to the server.
172
Examples
3.4 Unconfigured S7 connection with the OPC Scout V10
173
Examples
3.4 Unconfigured S7 connection with the OPC Scout V10
3. In the view area, click on an empty row and add a new item using the mouse context
button.
Enter "S7:[S7-unproj-connection_2|VFD2|CP_L2_2:|02.00,04,02.03,1]MB1" in the "Item
ID/name:" input box and close the dialog with "OK".
Reaction: The item is entered in the view area.
4. In the navigation area, go to "Local COM server" > "OPC.SimaticNET" > "\S7:" > "S7unproj-connection_2".
174
Examples
3.4 Unconfigured S7 connection with the OPC Scout V10
5. Drag the items Items "&statepath()" and " &vfdstate()" to the view area.
6. Click in the row of the view area where the item created above is located and go to the
column with the name "New value".
Enter a new value and click on the "Write" button and then the "Monitoring ON" button.
Reaction: The new value is adopted in the "Value" column.
Background information
You will find a detailed description of how to create an item in the manual "Industrial
Communication with PG/PC volume 2" in Section 2.5.11 "Unconfigured S7 connections".
The character string to be entered under "Item ID/name:" is made up as follows:
"S7:[<connectionname>|<VFD>|<accesspoint>|<Local TSAP>,<stationaddress>,<RemoteTSAP>,<Mode>]<dataelement>"
The information in the following table applies to this example:
Parameter descriptions Value
<connectionname>
S7-unproj-connection_2
An entry with a maximum length of 24 characters is permitted. The name
must be unique.
<VFD>
VFD2
Can be freely selected, all connections can be created on the same VFD.
<accesspoint>
CP_L2_2:
Call for the access point that was set up in the section "Engineering of the
unconfigured S7 connection (Page 168)".
175
Examples
3.4 Unconfigured S7 connection with the OPC Scout V10
02.00
The first byte ("02") stands for "Operator station operator control and
monitoring", the second byte is always 0 ("00").
<stationaddress>
04
The station address depends on the transmission mode. Since, in this case,
we are accessing over PROFIBUS, the PROFIBUS address of the SIMATIC
S7-400 must be specified here.
<Remote TSAP>
02.03:
The first byte ("02") once again stands for "Operator station operator control
and monitoring".
The second byte ("03") contains the addressing of the S7-CPU which, in our
example, is located in slot 3.
In this example, the PROFIBUS cable is connected to the CP 443-5 in slot
4.
<Mode>
1:
For the mode, there are two possible values:
1 - active connection establishment of the OPC server with optimization
3 - active connection establishment of the OPC server without optimization
<Dataelement>
MB1
Here, for example, a memory byte with address 2 is specified. Which data
elements are possible for S7 is described in the manual "Industrial
Communication with PG/PC volume 2".
Browsing
To be able to browse in your newly created connection (to use the connection like a
configured S7 connection) note the following:
Note
Follow the steps below to be able to browse over this S7 unconfigured connection:
1. Right-click the on the "S7" node in the navigation area.
2. Select the menu command "Browse this level again".
Result: It is now possible to browse over the unconfigured S7 connection.
As long as the item is active, the connection can be used like a configured S7 connection.
This means that you can add further items without using the syntax of the unconfigured S7
connection. All you need to do is specify the connection name, for example "S7:[S7-unprojconnection_2]MB1".
176
Examples
3.5 SNMP communication with OPC
3.5
Introduction
This section describes how you couple network components and nodes with an SNMP agent
with a PC station over an SNMP OPC server. You will learn which tools to use to configure a
PC station to implement the interfacing of a device with SNMP capability and how make the
SNMP variables and SNMP traps available on the OPC interface.
You will find information about the SNMP OPC server on the Web at:
Link to the SNMP OPC server: (http://www.automation.siemens.com/mcms/industrialcommunication/en/ie/software/network-management/snmp-opc-server/Pages/snmp-opcserver.aspx)
Requirements
If you want to try out the example yourself, you require
a PC
a network adapter
the software of the "SIMATIC NET PC Software" CD
an SNMP-compliant device (for example SIMATIC NET OSM/ESM)
a network connection between the OPC SNMP server and the SNMP-compliant device
For the PC station, you require a STEP 7 project that was created on a central ES station
(not this PC station). This should contain the hardware configuration.
177
Examples
3.5 SNMP communication with OPC
3.5.1
3.5.2
178
Examples
3.5 SNMP communication with OPC
Start menu "Start" > "..." > "SIMATIC" > "SIMATIC NCM PC Manager"
2. Double-click on the configuration icon.
Doubleclick on the "OPC Server" box in the section "(0) PC" to configure the OPC server.
179
Examples
3.5 SNMP communication with OPC
3. Select the "SNMP" tab. Change the cycle time if necessary.
The cycle time is the minimum time in which the variables of the OPC SNMP server are
polled. For more detailed information on the cycle time, refer to the online help available
with the "Help" button.
180
Examples
3.5 SNMP communication with OPC
3.5.2.1
181
Examples
3.5 SNMP communication with OPC
Click the "Add ..." button to make a new node known in the plant configuration of the OPC
server.
Reaction: The "Add node" dialog box opens.
2. Enter the necessary information for your device in the "Add Nodes" dialog box:
Enter a node name in the "Name" box.
Enter the IP address of the device.
Select a device profile. The device profile describes the mapping of SNMP variables
and traps to the OPC interface. You can also create your own profiles from MIB files
(see below, "Generating a profile"). You open the relevant dialog box when you click
the "Create Profile ..." button.
Devices without SNMP capability can also be entered to allow uniformity. For these
devices, a "PING" is mapped on a signoflife variable.
Enter an "SNMP Community" for the device. This decides whether or not read-only
access or write access is permitted with the device.
As a comment, you can enter a maximum 255 characters long text.
Note:
The "sysLocation", "sysContact" and "sysName" boxes are deactivated for devices that
are not SNMPcompliant because these parameters are specified during device
configuration and can be queried on the devices.
182
Examples
3.5 SNMP communication with OPC
4. The settings are visible in the window of the plant configuration.
With "Import Nodes", all devices that have an IP address and exist in the current project
are included automatically in the list of the plant configuration. If the device supports Web
based management, this can be started with the "Web based Management" button
(make sure your browser settings are suitable).
5. Click "OK" to close the plant configuration window.
6. Click "OK" again in the dialog box for the properties of the OPC server to complete
configuration of the SNMP OPC server.
7. Select the "NCM PC" menu and then the menu item "Station" > "Save and Compile.
8. Select the "NCM PC" menu and then the menu item "PLC" > "Download to Module". The
configuration data is downloaded to the OPC server.
9. The OPC server starts with the new configuration data.
Confirm the next window with "OK".
183
Examples
3.5 SNMP communication with OPC
3.5.3
Overview
After starting the PC station, installing the software and installing the hardware, the PC
module of the PC station is in "PG mode".
184
Examples
3.5 SNMP communication with OPC
185
Examples
3.5 SNMP communication with OPC
4. Check whether the settings of the module match the local configuration.
5. Confirm the configuration with "OK".
Result: All the communication data configured with S7 is now on the PC station. The
communications module is in "configured mode".
PC configuration is complete.
3.5.4
186
Examples
3.5 SNMP communication with OPC
3.5.4.1
187
Examples
3.5 SNMP communication with OPC
2. Doubleclick the "OPC.SimaticNET" entry to link the OPC Scout V10 with the OPC server.
3.5.4.2
188
Examples
3.5 SNMP communication with OPC
1. Click on "\SYM:" > "AS400-S7-OPC" > "CPU 414-3 DP" > "Pump2" in the navigation
area.
189
Examples
3.5 SNMP communication with OPC
2. In the information area, select all the process variables (items) and drag these to the view
area.
190
Examples
3.5 SNMP communication with OPC
4. Click the "Monitor OFF" button to stop monitoring the items in the view area.
3.5.4.3
Writing values
You set the trap recipient of an OSM/ESM by assigning suitable values to two OPC items.
The procedure described here is also an example of how to write values for OPC items using
the OPC Scout V10.
191
Examples
3.5 SNMP communication with OPC
192
Examples
3.5 SNMP communication with OPC
6. Enter "2" to activate the trap recipient and click the "OK" button.
193
Examples
3.5 SNMP communication with OPC
3.5.5
Device profile
A device profile contains the SNMP objects (OPC items) required for the SNMP interface of
the OPC server. It maps SNMP variables and SNMP traps on the OPC interface. Device
profiles are stored in profile files.
194
Examples
3.5 SNMP communication with OPC
3. Doubleclick on the "OPC Server" box in the section "(0) PC" to configure the OPC server.
195
Examples
3.5 SNMP communication with OPC
4. Select the "SNMP" tab and click on the "Edit Plant Configuration ..." button.
Reaction: A dialog box appears in which all the SNMPcompliant devices registered with
the OPC server are listed.
5. Select the device for which you want to create a profile and click the "Edit ..." button to
display the dialog box with the node data of the device.
Under the "Edit" button, you can modify node data.
6. Click the "Create Profile ..." button to open the dialog box of the MIB compiler.
196
Examples
3.5 SNMP communication with OPC
7. The dialog box of the MIB compiler has three areas:
Left area:
MIB area for displaying the MIB objects from the loaded MIB files.
Right area:
Profile area for adopting and displaying the OPC items / OPC events.
Lower area:
Output window for compiler messages.
Click the "Load MIB..." button. In the dialog for opening a file, select the required MIB file
(for example "RFC1213-MIB.mib"). The content of this file is shown in the lefthand area:
8. Select the MIB objects for the profile in the structure tree on the left and drag them to the
profile area of the dialog box. You can also select a node and drag it to the righthand
area. In this case, all the SNMP variables belonging to the node are adopted as OPC
variables.
9. Structuring of the variables in the profile area is possible in keeping with the OPC
specification by creating groups. To do this, click the "Create Group" button.
10.Check whether or not the adopted SNMP variables still include unspecified instances of
variables. Such elements are indicated by a "!".
Double-click on such elements to open the "Enter Instances" dialog box.
(For example, for an 8port switch, the object "ifOperStatus" must be assigned the
instances 1-8 so that the OPC items "ifOperStatus.1" to "ifOperStatus.8" can be formed).
11.Save the profile by clicking on the "Save" button. You can select the newly created profile
in the "Device Profile" list box of the "Add Nodes" dialog box.
197
Examples
3.5 SNMP communication with OPC
198
Tools
4.1
4.1.1
199
Tools
4.1 Station Configuration Editor
6WDWLRQ0DQDJHUZLWKFRPSRQHQWPDQDJPHQWGDWDEDVH
&RQILJXUDWLRQRIFRPSRQHQWV
3URMHFWHQJLQHHULQJGDWDFRQQHFWLRQVDQVV\PEROV
23&
6HUYHU
8VHU
$SSOLFDWLRQ
9LUWXDO5DFNLQWKH3&6WDWLRQ
,QGH[
,QGH[
,QGH[
,QGH[
,QGXVWULDO(WKHUQHW
352),%86
200
Tools
4.1 Station Configuration Editor
201
Tools
4.1 Station Configuration Editor
4.1.2
202
Tools
4.1 Station Configuration Editor
Note
You will find more information on the meaning of the display boxes and the buttons in the
integrated help system.
203
Tools
4.1 Station Configuration Editor
Downloading using the project engineering tool
In online mode, you can download the project engineering data directly to the PC station
using NCM PC / STEP 7. You can download both locally or over the network.
Station import
If the station is not networked, you can load the component configuration and project
engineering data by importing the XDB file on the PC station (for details on creating an
XDB file, refer to the section "Downloading project engineering data to the PC station
(after initial configuration) (Page 233)").
The XDB file can be imported using the "Import Station" button in the Station
Configuration Editor.
Importing the XDB file is possible only when compatible modules are installed in the
computer and the actual current module configuration exactly matches the information in
the XDB file.
You can import an XDB file at any time regardless of the current mode (online or offline).
You can also specify (option) whether you want the "offline mode" to be set following the
import.
204
Tools
4.1 Station Configuration Editor
205
Tools
4.1 Station Configuration Editor
4.1.3
How it works
The Station Configuration Editor manages a diagnostic buffer in which the PC station
components (hardware and software) enter event information.
You can use this list to analyze configuration or communication problems.
Note
You will find more information on the meaning of the display boxes and the buttons in the
integrated help system.
Note
The diagnostic buffer entries you can read out in the Station Configuration Editor in the
"Diagnostics" tab can also be read out remotely with the "NCM S7 Diagnostics" tool.
206
Tools
4.2 SIMATIC NCM PC project engineering tool
4.1.4
4.2
4.2.1
207
Tools
4.2 SIMATIC NCM PC project engineering tool
SIMATIC NCM PC Manager
Provides functions for project and component management. From here, you can start the
other tool components.
SIMATIC NCM PC Config
This is required to configure PC stations and their components.
NetPro
This is primarily used for the project engineering of connections and communication
properties of the SIMATIC NET OPC server and applications.
208
Tools
4.2 SIMATIC NCM PC project engineering tool
Functions
To create the configuration and project engineering data of a PC station, use the following
functions:
Create and configure components of the PC station.
Configure the communication properties of the SIMATIC NET OPC server.
Configure connections.
Adopt the symbols from the SIMATIC S7 configuration.
Configure DP operation.
Set network parameters for PROFIBUS and Ethernet operation.
Configure the PC station remotely.
Download configuration data to the PC stations.
Store configuration and project engineering data in an XDB file.
Monitor the communication with connected S7 stations using NCM diagnostics.
Initial configuration
You can make the initial configuration of your PC station starting with the project engineering
data created in NCM PC in three different ways:
Remote configuration with STEP 7 / NCM PC
Transfer of the configuration and project engineering data using an XDB file
Refer also to the section "Commissioning for configured mode - Overview (Page 20)".
Note
You can create the project engineering both in SIMATIC NCM PC and in STEP 7. STEP 7
also provides all the SIMATIC NCM PC functions described here for configuring your PC!
STEP 7 is necessary if you also want to configure S7 stations in the project.
From now on, the description will only refer to SIMATIC NCM PC but nevertheless applies to
both.
Note
Optional packages are not supported by SIMATIC NCM PC. If you are editing a project that
was created or edited in STEP 7, it may contain components from STEP 7 optional
packages. If this is the case, you can only edit stations using SIMATIC NET PC that do not
contain components from STEP 7 optional packages.
209
Tools
4.2 SIMATIC NCM PC project engineering tool
Select the following from the Start menu of the Windows operating system:
Start menu "Start" > "..." > "SIMATIC NCM PC Manager".
210
Tools
4.2 SIMATIC NCM PC project engineering tool
4.2.2
6,0$7,&1&03&
67(3
6,0$7,&3&VWDWLRQ
RWKHUVWDWLRQ
6,0$7,&3&VWDWLRQ
RWKHUVWDWLRQ
6,0$7,&6
3*3&
6,0$7,&6
3*3&
DIWHUGDWDLPSRUWFDQEHXVHG
IRUFRQILJXULQJFRQQHFWLRQV
6,0$7,&VWDWLRQ
6,0$7,&VWDWLRQ
6,0$7,&VWDWLRQ
6,0$7,&VWDWLRQ
6,0$7,&+VWDWLRQ
6\PEROV
6,0$7,&+VWDWLRQ
)ROORZLQJGDWDLPSRUWFDQEH
XVHGLQWKH23&VHUYHU
ZLWK6FRQQHFWLRQV
6\PEROV
211
Tools
4.2 SIMATIC NCM PC project engineering tool
4.2.3
Creating a PC station
Aims
You want to create configuration and project engineering data for communication services
for individual PC stations. This database will then be downloaded to the PC station. After
this, the PC applications can use the communications services.
You can use this in the following ways:
On a local station, in other words, when your engineering station is the PC station at the
same time, the parameters specified in the initial configuration with the Station
Configuration Editor tool can be transferred later to the local project engineering system.
For transferring the data to an engineering station
To allow the information from the project engineering to be transferred from an
engineering system to the PC station, the local configuration must match the
configuration data entered in the project engineering. To make sure of this, you can
create project engineering data locally on the PC station and then download it to the
target PC station or import it using an XDB file.
212
Tools
4.2 SIMATIC NCM PC project engineering tool
For each PC station, a separate object of the type "PC station" is created.
The configuration and parameter assignment data of the hardware and software is located
within these objects. These objects are then used to assign the communications services.
NOTICE
The name of the PC station you select here identifies the PC configuration.
If you configure on the local station with NCM PC, select the name identical to the name
in the local configuration.
If you configure a remote PC station, the name you select must not be identical to the
local PC configuration! When you download, you would otherwise overwrite the local
configuration.
Tip: You can also adapt names, when necessary, in the Station Manager using the Station
Configuration Editor.
213
Tools
4.2 SIMATIC NCM PC project engineering tool
Note
"PC Stations" > "Simatic PC Station" > "OPC Server"
The objects are created with the "PC Config" component as described in the section
"Configuring a PC station with SIMATIC NCM PC Config (Page 215)".
214
Tools
4.2 SIMATIC NCM PC project engineering tool
4.2.4
Note:
This procedure corresponds to the one already described for the "Station Configuration
Editor" tool.
NOTICE
Be careful not to confuse this "index" with a hardware slot, for example on the PCI bus of
the PC station. The slot on the PCI bus is not relevant for commissioning and is not used at
any point.
215
Tools
4.2 SIMATIC NCM PC project engineering tool
Note:
This display shows the situation after configuring in with STEP 7 / HW Config; in SIMATIC
NCM PC, only the components for the PC stations are available in the catalog.
216
Tools
4.2 SIMATIC NCM PC project engineering tool
217
Tools
4.2 SIMATIC NCM PC project engineering tool
4.2.5
218
Tools
4.2 SIMATIC NCM PC project engineering tool
3. Select the application that will address the master system (the DP slaves).
4. Now go to the catalog and insert the DP slaves that will be addressed over the
application.
219
Tools
4.2 SIMATIC NCM PC project engineering tool
220
Tools
4.2 SIMATIC NCM PC project engineering tool
4.2.6
221
Tools
4.2 SIMATIC NCM PC project engineering tool
3. Select the application (OPC server or application) that will address the PROFINET IO
system (the PROFINET IO devices).
4. Now go to the catalog and insert the IO devices that will be addressed over the
application.
To do this, drag the IO device from the catalog to the symbol of the PROFINET IO system
(see figure).
222
Tools
4.2 SIMATIC NCM PC project engineering tool
PROFINET IO devices
PROFINET IO devices can be connected either directly to Ind. Ethernet or can be connected
as PROFIBUS DP slaves to a DP master system. By using an IE/PB Link PN IO, you can
address the DP slaves of a DP master system just like PROFINET IO devices.
223
Tools
4.2 SIMATIC NCM PC project engineering tool
4.2.7
Configuring connections
Meaning
During operation, configured connections are established either implicitly or on request,
depending on the parameter assignment. They are then available to the OPC server or the
PC application for communication.
Procedure
Regardless of the application type, the general rules for connection configuration apply:
Communication connections are always assigned to an application.
In the PC station, the CP that supports the type of connection is used for the data
transfer.
If there is more than one CP with this capability, you can use Routing to select the
transmission path.
224
Tools
4.2 SIMATIC NCM PC project engineering tool
2. Enter the desired connection type. You will be requested to specify the connection
partner.
225
Tools
4.2 SIMATIC NCM PC project engineering tool
Create an unspecified connection:
Select "unspecified" as the connection partner. In the Properties dialog box, you can then
set the address parameters for the connection partner.
Create a substitute object:
Create an "Other Station" type station. You then network this station by assigning the
necessary interface types in the Properties dialog.
This method is advisable if you intend to assign several connections to this partner
station on the same interface in your project.
Create a copy of an S7 station:
Insert the copy of an S7 station that you have created in another project using STEP 7.
You can then select this S7 station as your destination station.
4.2.8
4.2.8.1
226
Tools
4.2 SIMATIC NCM PC project engineering tool
5. Insert a module of the type CP 5611.
227
Tools
4.2 SIMATIC NCM PC project engineering tool
2. Select the entry "PC station as DP slave" in the catalog under "PROFIBUSDP" and drag
the entry to the DP master system.
228
Tools
4.2 SIMATIC NCM PC project engineering tool
229
Tools
4.2 SIMATIC NCM PC project engineering tool
2. By doubleclicking on the inserted universal module, you can configure the module with
the required I/O types.
230
Tools
4.2 SIMATIC NCM PC project engineering tool
231
Tools
4.2 SIMATIC NCM PC project engineering tool
4.2.8.2
Examples/model
NOTICE
Remember that a SOFTNET DP slave operated with OPC must have the PNO identification
number 0x9001.
There are sample GSD files in the "SIMATIC.NET\dp\demo_gsd" folder.
Two GSD files are intended for the CP 5613 A2/CP 5623 in the DP slave mode.
slv80b4.gsd
Use this sample file when operating the CP 5613 A2/CP 5623 as a modular DP-V0
slave or
slv180b4.gsd
Use this sample file when operating the CP 5613 A2/CP 5623 as a non-modular DPV1 slave.
You will find more detailed information in the section "Using CP 5613 A2/CP 5623/CP 5603
as a DP slave (Page 92)"
Two GSD files are intended for the CP 5614.
siem80b4.gsd
Use this sample file when operating the CP 5614 as a modular DP-V0 slave or
siv180b4.gsd
Use this sample file when operating the CP 5614 as a non-modular DP-V1 slave.
Two are intended for the SIMATIC NET SOFTNET PROFIBUS modules.
siem8076.gsd
Use this sample file when operating the DP slave with its own application.
siem9001.gsd
Use this sample file when operating the DP slave with OPC. This modular DP slave
can be configured with NCM/STEP 7.
232
Tools
4.2 SIMATIC NCM PC project engineering tool
4.2.9
4.2.9.1
Online mode
Note
Downloading as described below only results in successful installation of the
communications services on your PC station if the arrangement of the components in the
configuration data is identical to that of the configuration data on the PC station.
The online mode allows you to download the configuration data directly to a PC station
attached to the network (MPI, PROFIBUS or Ethernet), or to load the data on the local PC
station if you are using this as the configuration station.
233
Tools
4.2 SIMATIC NCM PC project engineering tool
'RZQORDG
Tool
Station
Configuration
Editor
2.
Select the station you want to load to in the STEP 7/NCM project.
NCM PC / STEP 7
3.
NCM PC / STEP 7
If you use PG mode: Make sure that you set the correct interface with
Set PG/PC Interface (access point "S7ONLINE").
This situation occurs when the configuration system is installed on the PC station
(engineering station).
234
Tools
4.2 SIMATIC NCM PC project engineering tool
In this case, the configuration data is transferred directly over an internal PC connection.
Within the configuration system, you still use the known mechanisms for accessing the target
system.
Tool
Set PG/PC
Interface
Select the station you want to load to in the STEP 7/NCM project.
NCM PC / STEP 7
3.
NCM PC / STEP 7
235
Tools
4.2 SIMATIC NCM PC project engineering tool
4.2.9.2
(QJLQHHULQJVWDWLRQ
;'%LPSRUW
Note
To make it possible to identify the PC station, the station name in the configuration must
match the locally configured station name. If this is not the case, it is not possible to adopt
the configuration on the PC station!
Set the station name, if necessary, in the Station Configuration Editor.
Tool
1.
NCM PC / STEP 7
2.
Open the object properties of the station with the "Object Properties"
menu command and select the "Configuration" tab.
NCM PC / STEP 7
3.
Here, you can check and, if necessary, change the setting under
"Storage Location of the Configuration File".
NCM PC / STEP 7
4.
Save and compile your project. You will then find the required XDB file NCM PC / STEP 7
in the folder you have selected.
5.
Copy the XDB file onto a data medium that the destination station can
access.
Windows Explorer
6.
Import the XDB file into your destination PC station using the Station
Configuration Editor.
Station
Configuration
Editor
236
Tools
4.3 New configuration tool STEP 7 Professional V11
4.2.10
4.3
237
Tools
4.3 New configuration tool STEP 7 Professional V11
4.3.1
Functions
To create the configuration and project engineering data of a PC station, use the following
functions:
Create and configure components of the PC station.
Configure the communication properties of the SIMATIC NET OPC server.
Configure connections.
Adopt the symbols from the SIMATIC S7 configuration.
Configure DP operation.
Set network parameters for PROFIBUS and Ethernet operation.
Configure the PC station remotely.
Download configuration data to the PC stations.
Store configuration and project engineering data in an XDB file.
Monitor the communication with connected S7 stations using NCM diagnostics.
Initial configuration
You can generate the initial configuration of your PC station in STEP 7 Professional V11:
Remote configuration and project engineering with STEP 7 Professional V11
Transfer of the configuration and project engineering data using an XDB file
See also
Commissioning for configured mode - Overview (Page 20)
238
Tools
4.3 New configuration tool STEP 7 Professional V11
4.3.2
Creating a PC station
Aims
You want to create configuration and project engineering data for communication services
for individual PC stations. This database will then be downloaded to the PC station. After
this, the PC applications can use the communications services.
You can use this in the following ways:
On a local station, in other words, when your engineering station is the PC station at the
same time, the parameters specified in the initial configuration with the Station
Configuration Editor tool can be transferred later to the local project engineering system.
For transferring the data to an engineering station
To allow the information from the project engineering to be transferred from an
engineering system to the PC station, the local configuration must match the
configuration data entered in the project engineering. To make sure of this, you can
create project engineering data locally on the PC station and then download it to the
target PC station or import it using an XDB file.
239
Tools
4.3 New configuration tool STEP 7 Professional V11
Within a project, objects are arranged in the "Network view". For each PC station, a separate
object of the type "PC station" is created. The configuration and parameter assignment data
of the hardware and software is located within these objects. These objects are then used to
assign the communications services.
NOTICE
The name of the PC station you select here identifies the PC configuration.
If you configure on the local station with STEP 7 Professional V11, select the name
identical to the name in the local configuration.
If you configure a remote PC station, the name you select must not be identical to the
local PC configuration! When you download, you would otherwise overwrite the local
configuration.
Tip: You can also adapt names, when necessary, in the Station Manager using the Station
Configuration Editor.
240
Tools
4.3 New configuration tool STEP 7 Professional V11
4.3.3
241
Tools
4.3 New configuration tool STEP 7 Professional V11
Note:
This procedure corresponds to the one already described for the "Station Configuration
Editor" tool.
NOTICE
Be careful not to confuse this "index" with a hardware slot, for example on the PCI bus of
the PC station. The slot on the PCI bus is not relevant for commissioning and is not used at
any point.
242
Tools
4.3 New configuration tool STEP 7 Professional V11
243
Tools
4.3 New configuration tool STEP 7 Professional V11
4.3.4
244
Tools
4.3 New configuration tool STEP 7 Professional V11
245
Tools
4.3 New configuration tool STEP 7 Professional V11
2. After you have taken the module from the catalog, you can select the PROFIBUS
interface of the CP and then select "Assign master system" from the shortcut menu. The
CP then automatically becomes the DP master.
4.3.5
246
Tools
4.3 New configuration tool STEP 7 Professional V11
247
Tools
4.3 New configuration tool STEP 7 Professional V11
3. Select the application (OPC server) under "OPC configuration" in the Inspector window
that will address the PROFINET IO system (the PROFINET IO devices).
4. Now go to the catalog and insert the IO devices that will be addressed over the
application.
PROFINET IO devices
PROFINET IO devices can be connected either directly to Ind. Ethernet or can be connected
as PROFIBUS DP slaves to a DP master system. By using, for example, an IE/PB Link PN
IO, you can address the DP slaves of a DP master system just like PROFINET IO devices.
248
Tools
4.3 New configuration tool STEP 7 Professional V11
4.3.6
Configuring connections
Meaning
During operation, configured connections are established either implicitly or on request,
depending on the parameter assignment. They are then available to the OPC server or the
PC application for communication.
Procedure
Regardless of the application type, the general rules for connection configuration apply:
Communication connections are always assigned to an application.
In the PC station, the CP that supports the type of connection is used for the data
transfer.
If there is more than one CP with this capability, you can use Routing to select the
transmission path.
249
Tools
4.3 New configuration tool STEP 7 Professional V11
Create an unspecified connection:
Select "unspecified" as the connection partner. In the Properties dialog box, you can then
set the address parameters for the connection partner.
Create a copy of an S7 station:
Insert the copy of an S7 station that you have created in another project using STEP 7
Professional V11. You can then select this S7 station as your destination station.
4.3.7
4.3.7.1
250
Tools
4.3 New configuration tool STEP 7 Professional V11
2. In the Inspector window, under "Mode > I-slave communication" select the table in which
you can configure the inputs and outputs of the transfer areas.
3. In the table view, click "Add new" to create a new transfer area.
4. In the "General" tab, select the newly created transfer area.
5. Configure the inputs and outputs in the "Properties" dialog.
If you want to create an I/O transfer area, enable the "Bi-directional address mapping"
check box.
6. Save and compile the configuration.
4.3.7.2
251
Tools
4.3 New configuration tool STEP 7 Professional V11
Create this substitute master in the project engineering just like a real DP master. You then
simply require the project engineering data for the DP slave.
Examples/model
NOTICE
Remember that a SOFTNET DP slave operated with OPC must have the PNO identification
number 0x9001.
There are sample GSD files in the "SIMATIC.NET\dp\demo_gsd" folder.
Two GSD files are intended for the CP 5613 A2/CP 5623 in the DP slave mode.
slv80b4.gsd
Use this sample file when operating the CP 5613 A2/CP 5623 as a modular DP-V0
slave or
slv180b4.gsd
Use this sample file when operating the CP 5613 A2/CP 5623 as a non-modular DPV1 slave.
Two GSD files are intended for the CP 5614.
siem80b4.gsd
Use this sample file when operating the CP 5614 as a modular DP-V0 slave or
siv180b4.gsd
Use this sample file when operating the CP 5614 as a non-modular DP-V1 slave.
Two are intended for the SIMATIC NET SOFTNET PROFIBUS modules.
siem8076.gsd
Use this sample file when operating the DP slave with its own application.
siem9001.gsd
Use this sample file when operating the DP slave with OPC. This modular DP slave
can be configured with STEP 7 Professional V11.
4.3.8
Downloading the project engineering data to the PC station (after the initial
configuration)
To allow applications to exchange information over configured communication connections,
the project engineering data created with STEP 7 Professional V11 must be loaded on the
PC station.
If the initial configuration was performed with XDB import of the project engineering data,
"loading" is already completed with the initial configuration.
252
Tools
4.3 New configuration tool STEP 7 Professional V11
Refer to the explanations relating to initial configuration in the section "Steps for initial
configuration (Page 29)".
The section below describes how project engineering data can be downloaded to the PC
station after the initial configuration. This is necessary when the project engineering data is
not yet available at the time of the initial configuration, or to make changes to the project
engineering data.
4.3.8.1
Online mode
Note
Downloading as described below only results in successful installation of the
communications services on your PC station if the arrangement of the components in the
configuration data is identical to that of the configuration data on the PC station.
The online mode allows you to download the configuration data directly to a PC station
attached to the network (MPI, PROFIBUS or Ethernet), or to load the data on the local PC
station if you are using this as the configuration station.
'RZQORDG
253
Tools
4.3 New configuration tool STEP 7 Professional V11
The PC station (runtime PC) is also the configuration station.
The PC station (runtime PC) is coupled with the configuration station via a network. The
PC station is accessible as a communications node, for example after setting the
parameters in the initial configuration.
An existing connection is checked, for example, using the "Accessible Nodes" function.
Tool
Station
Configuration
Editor
2.
Select the station you want to load in the STEP 7 Professional V11
project.
STEP 7
Professional V11
3.
STEP 7
Professional V11
If you use PG mode: Make sure that you set the correct interface with
Set PG/PC Interface (access point "S7ONLINE").
This situation occurs when the configuration system is installed on the PC station
(engineering station).
In this case, the configuration data is transferred directly over an internal PC connection.
Within the configuration system, you still use the known mechanisms for accessing the target
system.
Tool
STEP 7
Professional V11
Select the station you want to load in the STEP 7 Professional V11
project.
STEP 7
Professional V11
3.
STEP 7
Professional V11
254
Tools
4.3 New configuration tool STEP 7 Professional V11
4.3.8.2
(QJLQHHULQJVWDWLRQ
;'%LPSRUW
Tool
1.
Select the station you want to load in the STEP 7 Professional V11
project.
STEP 7
Professional V11
2.
STEP 7
Professional V11
3.
Enable the check box beside "Generate XDB file" and check the
setting for "Path of the XDB configuration file". If necessary, change
this setting.
STEP 7
Professional V11
4.
Save and compile your project. You will then find the required XDB file STEP 7
in the folder you have selected.
Professional V11
5.
Copy the XDB file onto a data medium that the destination station can
access.
Windows Explorer
6.
Import the XDB file into your destination PC station using the Station
Configuration Editor.
Station
Configuration
Editor
255
Tools
4.3 New configuration tool STEP 7 Professional V11
4.3.9
4.3.10
Requirements
You are in the network view.
On the target PC station, both "allow" check boxes must be selected in the "Security"
menu of the "Configuration Console".
256
Tools
4.4 Symbol Editor
Procedure
Follow the steps outlined below to configure a PC station:
1. From "PC systems" in the hardware catalog, drag a device for a PC station to the network
view.
2. Select the PC station.
3. Under "Properties > General" in the Inspector window, change the name of the PC station
to suit your application.
4. Drag any other components required from the hardware catalog to the PC station. An
inserted component is placed on a new index.
5. Select the PC station.
6. Select "Configure PC station online" in the shortcut menu to be able to perform the initial
configuration of the PC station.
7. In the "Configure" dialog, you can make various settings for your local area network, the
reachable computers and the target PC station.
8. Click "Configure...". You obtain an overview of the configuration to be adopted.
9. Click "OK" to download the configuration to the target PC station.
4.4
Symbol Editor
With the Symbol Editor, you can create symbol files of the type "ATI" that allow you the
option of access to symbolic variables over the SIMATIC NET OPC server.
A symbol file is hierarchical and has a structure similar to a file system.
4.4.1
257
Tools
4.4 Symbol Editor
Structure
Analogous to the folder and files in the file system, the symbol file contains folders and
symbols. In the structure view in the left window, you can navigate through the hierarchy of
the symbol file. When you click on a folder there, the right-hand side displays its content. In
the upper part of the content area you can see the folders and in the lower part the symbols.
The folders are used to structure your data. The symbols contain the actual information of
the process variables such as access rights, data types, and the name of the item and the
runtime name.
The symbol list shows the following detailed information:
258
Tools
4.4 Symbol Editor
Parameter
Meaning
Symbol name
Item ID
The names of the hierarchy levels and the symbolic name, separated by a
period.
Runtime name
Data type
Access rights
EU Low
Indicates the low limit of the range of values of the variable (Engineering
Units Low). The information about a range of values is used for the
"Percent Deadband" OPC functionality.
EU High
Indicates the high limit of the range of values of the variable (Engineering
Units High). The information about a range of values is used for the
"Percent Deadband" OPC functionality.
259
Tools
4.4 Symbol Editor
4.4.2
Definitions
The terms listed below are important in conjunction with the Symbol Editor:
Term
Meaning
OPC ItemID
The OPC ItemID is the identifier of a process variable 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
Runtime name
DP:[CP5613]Slave1M003_IB0
S7:[S7-connection_1]MW5
The prefix precedes the OPC name space of a symbol file and is used to
identify symbols uniquely if there are several symbol files. If a prefix
exists, it is displayed in the folder view.
260
Tools
4.4 Symbol Editor
4.4.3
"File" menu
This menu contains standardized commands for working with files (for example "Open File",
"Save File" etc.). All symbol files have the extension "ATI" (Advanced Tag Info). The
following menu commands are available.
Menu command
Meaning
New
Open
Save
Save As ...
Close
Exit
Select this menu command to close the Symbol Editor and all
open files.
261
Tools
4.4 Symbol Editor
"Edit" menu
Menu command
Meaning
Cut
Select this menu command to cut selected symbols. As an alternative, you can
click the following button:
Copy
Paste
Pastes a symbol that was previously copied or cut. As an alternative, you can
click the following button:
Delete
Select All
NOTICE
The connection of folder path and symbol path must be unique.
"Help" Menu
With the help menu, you can open the contents, index, or find views of the online help
system. You can also display the version number of the program with the "About" menu
command. In addition to this, you can change the language setting as well.
4.4.4
Managing symbols
4.4.4.1
262
Tools
4.4 Symbol Editor
EU High
EU Low
4.4.4.2
263
Tools
4.4 Symbol Editor
2. Right-click and select the menu command "New Folder".
3. Enter a new name for the folder.
The permitted characters are: (A-Z), (a-z), (0-9), (_), (-), (^), (!), (#), ($), (%), (&), ('), (/),
(()), (<>), (=), (?), (~), (+), (*), (,), (:), (|), (@)
264
Tools
4.4 Symbol Editor
4.4.4.3
4.4.4.4
265
Tools
4.4 Symbol Editor
2. Right-click and select the menu command "Delete Folder".
NOTICE
Remember that when you delete a folder, you also delete all the elements contained in
the folder (subfolders and symbols).
4.4.4.5
266
Tools
4.4 Symbol Editor
2. Right-click and select the menu command "Import File".
You can import "CSV", "STI" or "ATI" files.
3. In the dialog box, select the file you want to import and click the "Open" button.
267
Tools
4.4 Symbol Editor
268
Tools
4.4 Symbol Editor
2. Select the menu command "Import File".
3. In the dialog box, select the file you want to import and click the "Open" button.
The imported file is shown in the next figure.
269
Tools
4.4 Symbol Editor
4.4.4.6
270
Tools
4.5 Configuration Console
3. In the "File name" input box of the open dialog, enter the file name that the file you are
exporting will have.
4. Click the "Save" button.
4.5
Configuration Console
The Configuration Console is a snapin program embedded in the Microsoft Management
Console (MMC) and provides a wide range of options for configuring PC hardware
components and PC user programs as well as providing diagnostic functions.
Settings for the OPC servers that ship with the communication software can also be made in
the Configuration Console.
The "Configuration Console" supports the following tasks in the communications system of a
SIMATIC PC station:
Commissioning and operation
Editing the configuration
Diagnostics
271
Tools
4.5 Configuration Console
4.5.1
Structure
In the Configuration Console, you navigate in basically the same way as in the Windows
Explorer.
You navigate on the lefthand side. On the righthand side, the input/output area, you will see
the properties of the selected element (properties object).
The elements in the navigation area are grouped as follows:
Applications (the OPC Server is displayed as a special application)
Modules
272
Tools
4.5 Configuration Console
Access points
Language selection
Note
You will find configuration examples in the section "Configuration examples (Page 297)".
4.5.2
COML S7
273
Tools
4.5 Configuration Console
Note
Before you can use the basic settings listed below, you will first need to create a COML S7
connection list. Help for this topic can be found on the help page "Module Creating/editing/deleting the COML S7 connection list". It can be called using the "Help"
button in the "COML S7 - connection list" window.
Structure
The following basic settings are possible in the menu.
Enable COML S7 connection list
Disable COML S7 connection list
Export COML S7 connection list
Import COML S7 connection list
274
Tools
4.5 Configuration Console
3. Select the menu entry "Action" > "Enable COML S7 connection list...". As a reaction, the
following dialog box opens:
275
Tools
4.5 Configuration Console
276
Tools
4.5 Configuration Console
3. Select the menu entry "Action" > "Export COML S7 connection list...". As a reaction, the
following dialog box opens:
4. In this dialog box, you select the storage location for the backup copy. Click "Save" to
complete the export.
277
Tools
4.5 Configuration Console
2. Click on "Modules" in the navigation area.
3. Select the menu entry "Action" > "Import COML S7 connection list...".
4. Go to the ".lcc file". Confirm the backup copy by clicking the "Open" button. The COML
S7 connection lists are now imported into the "Configuration Console".
Note
If a COML S7 connection list you are importing contains an S7 connection that is
intended for communication via a module that does not exist on this PC or that has
incorrect parameters, the import of all COML S7 connection lists is denied. A dialog box
to this effect then opens.
278
Tools
4.5 Configuration Console
4.5.3
Overview
The essential functions provided by the "Configuration Console" tool for commissioning and
operation are as follows:
Configure and set the traces for OPC and protocols;
Deactivate the protocols to commission the system gradually;
Set the symbol files for OPC;
Force the OPC Server to shut down (for example, when an OPC application is no longer
reacting);
Trigger a restart on the module;
Setting for the user interface language;
Automatic startup of applications and services;
Setting parameters for the security settings.
These options are described in the following sections of this chapter.
279
Tools
4.5 Configuration Console
4.5.3.1
280
Tools
4.5 Configuration Console
4.5.3.2
Follow the steps below if you want to close down or restart OPC server:
1. Open the "Applications" folder in the navigation area.
2. Select "OPC settings" and click on the "Quit OPC server" property object.
3. If you want to send a notification text to the OPC clients about the close down over the
OPC Server, you can enter this in the "Notification text" box. You can also specify a wait
time between the notification of the clients and shutting down the server to allow a client
to react. Enter this time in the "Delay" box.
4. Click the "Apply" button to activate the changes you made. Depending on the current
operating mode, you can either close or start the OPC server. This applies to both an
active OPC Data Access server as well as to an Alarms & Events server. You should first
close all OPC clients, otherwise you must expect error messages from the clients.
281
Tools
4.5 Configuration Console
4.5.3.3
Follow the steps below to activate the configured protocols step by step:
1. Go to "Applications" > "OPC settings" > "Select OPC protocol" in the tree structure.
282
Tools
4.5 Configuration Console
2. As default, all protocols are activated. Deactivate the protocols you do not want the OPC
server to use. Activate the protocols that were specified in the configuration and that you
want to use as of now.
3. Click the "Apply" button to activate the data you have set.
NOTICE
When you download a configuration, all protocols configured in the project engineering
are activated automatically, even if you had deactivated them previously. If necessary,
you must also deactivate such protocols again.
Note
By deactivating protocols you restrict the range of functions and possibly also the
operability of the PC station, the SIMATIC NET Information Service therefore notifies you
of this setting!
283
Tools
4.5 Configuration Console
4.5.3.4
Follow the steps below if you want to use a symbol file for the OPC Server:
1. Open the "Applications" > "OPC settings" > "Symbols" folder in the navigation area.
2. Click on the "Edit list" button in the input/output area to select one or more symbol files.
Reaction: The "Manage Symbol Files" dialog box opens.
3. Click the "Browse..." button.
Reaction: A file selection dialog opens.
4. Select the required symbol file.
5. Close the "Manage Symbol Files" dialog box by clicking the "OK" button.
6. Additional settings for SIMOTION:
If you use a symbol file created by the engineering tools for SIMOTION, you will also
need to select a module for the communication paths.
7. Click the "Advanced Symbols" button.
Reaction: The "Advanced symbols" dialog opens.
Note
It is only necessary to make settings in advanced symbols, if the "S7_extended" attribute
was set during project engineering of the PROFINET data blocks. In this case, the S7
protocol must also be selected. Extended S7 functionality is then used alongside
PROFINET. If this functionality is not used, the setting in advanced symbols is irrelevant.
284
Tools
4.5 Configuration Console
8. Select the required Ethernet module and confirm with "OK".
Note
For communication with SIMOTION, you only need to set a symbol file and select a
module. No further configuration with SIMATIC NCM PC or SIMATIC STEP 7 is
necessary.
9. Click the "Apply" button to activate the data you have set.
285
Tools
4.5 Configuration Console
4.5.3.5
Setting traces
A trace logs the internal sequences of the component. It allows you to check the functions,
for example of a user program. Depending on the configuration, the actions of a software
module are logged in a file.
The following traces are available:
Traces of the OPC servers for Data Access and Alarms&Events
Trace of the protocol adapters of the OPC servers
Trace of the protocol libraries
The trace concept is used for this.
NOTICE
In normal operation, the trace should be deactivated since the creation of trace files
significantly reduces the speed at which programs are executed. You should also bear in
mind that the reduction in speed caused by the trace may result in other problems such as
timeouts.
The SIMATIC NET Information Service signals the activation of a trace so that the user is
immediately aware of the reduced performance.
Follow the steps below if you want to set the traces for the OPC Server or the protocol adapters:
1. Go to "Applications" > "OPC settings" > "Symbols" in the tree structure.
286
Tools
4.5 Configuration Console
2. The table lists the possible traces for the protocols and the OPC servers in the display
area.
Click on a protocol or an OPC server, for example on "PROFIdrive" to open the OPC
server for PROFIdrive.
287
Tools
4.5 Configuration Console
3. Activate the trace and select the trace depth. Select "Errors", for example to log
information about errors and exceptions.
4. Click the "Apply" button to activate the data you have set.
Follow the steps below if you want to create traces of the protocol libraries:
1. Go to "Applications" > "OPC settings" > "Protocol trace" in the tree structure.
288
Tools
4.5 Configuration Console
289
Tools
4.5 Configuration Console
3. Select "Call TraceConcept" in the list.
4. In the tree structure, select the component whose trace you want to activate and make
your settings in "Trace Settings". Click on "View Trace File" to view the results.
290
Tools
4.5 Configuration Console
Note
The settings made in "Trace Settings" are active immediately and do not need to be
confirmed with a button.
Updating the "View Trace File" window (if several are displayed, further tabs are shown at
the top) takes up computing time and the window should only be displayed if you want to
track an error online.
Activated traces are identified by a red exclamation point.
291
Tools
4.5 Configuration Console
4.5.3.6
Language setting
As of the SIMATIC NET CD 2005 (V6.3), it is now possible to change the language of the
program user interface after installation.
To adopt the modified language setting, it may be necessary to restart programs or restart
the computer.
3. Click the "Apply" button to activate the data you have set.
292
Tools
4.5 Configuration Console
4.5.3.7
Follow the steps below to start applications or services automatically after the PC station has started
up:
1. Open the "Applications" folder in the navigation area.
2. Select the "Autostart" folder.
The applications to be started are shown in the upper list, the services to be started in the
lower list. As default, both lists are empty.
3. To enter an application in the list, click the "New" button at the top.
The operating system then displays the file selection dialog. Here, you can select the
application. After exiting the file selection dialog, the path of the application can be seen
in the list. You can enter any call parameters for the specific application in the text box
below. You will find help on the call parameters in the help file of the application.
293
Tools
4.5 Configuration Console
4. To enter a service in the list, click the "New" button at the bottom.
Reaction: The "Service selection" dialog opens.
5. The programs registered as services in Windows must be entered in the lower box.
Select the required service from the "Display name" list box and click the "OK" button.
The service then appears in the list of services to be started. Clicking the "Delete" button
removes the selected entry from the corresponding list.
6. Click the "Apply" button to activate the data you have set.
294
Tools
4.5 Configuration Console
295
Tools
4.5 Configuration Console
4.5.3.8
Security settings (as of Windows XP SP2 and as of Windows Server 2003 SP1)
With Service Pack 2 for Windows XP, Microsoft has improved operating system security.
The default settings of the operating system do not allow any communication from
applications over the network.
Although installing the SIMATIC NET CD enters the OPC servers in the exceptions list of the
Windows Firewall, this is not enough to allow operation with OPC again. General
applications and ports as well as new DCOM settings are still missing in the firewall.
Follow the steps below to enter the missing applications and ports in the firewall and to make
the new DCOM settings:
1. Open the "Applications" > "OPC settings" > "Security" folder in the navigation area.
2. Click the "Allow..." button.
Note
Note that this allow also applies to applications that also use this access procedure and
are not related to SIMATIC NET.
Note
1. The "Deny..." button cancels these settings.
2. You should also remember that this deny also affects other applications that use this
access method.
296
Tools
4.5 Configuration Console
4.5.3.9
Configuration examples
You can display examples of how specific use cases can be configured directly over the user
interface.
In the middle section of the window you will see the configuration examples listed. The texts
with a blue underscore are HTML links to the corresponding examples. Below this, a brief
description explains which use case is illustrated by the example. Clicking on the HTML link
opens the description of the example.
4.5.4
Overview
During configuration you can do the following:
Change the mode of the module and set the index,
Set the Industrial Ethernet network parameters,
Set the Industrial Ethernet station addresses for the CP 1613,
297
Tools
4.5 Configuration Console
Assign the application access points to the individual modules,
Set the PROFIBUS DP slave mode.
These options are described in the following sections.
4.5.4.1
Follow the steps below if you want to change the operating mode of a module:
1. Open the "Modules" folder in the navigation area.
2. Select the required module and click on the "General" property object.
3. Select the mode you want to use for the module:
Configured mode:
The parameters for the module are set in the project engineering.
PG mode
The parameters for the module are set in the "Set PG/PC Interface" or "Configuration
Console" program.
298
Tools
4.5 Configuration Console
4. Set the index that must also match the index in the project engineering. Use the value
from the project engineering configuration if this already exists. Otherwise, use the value
selected here when you create the project engineering. If you changed from another
mode to "configured mode", you can also set the index. We recommend that you use the
default.
5. Click the "Apply" button to activate the values you have set.
299
Tools
4.5 Configuration Console
4.5.4.2
Displaying and setting the Industrial Ethernet network parameters for a CP 1613 / CP
1623 or CP 1628
For the Industrial Ethernet module CP 1613, CP 1623 and CP 1628, the current settings are
displayed and can be modified for the following functions:
Duplex mode (half duplex, full duplex, automatic)
Medium type (AUI, TP, automatic)
Transmission rate (10 Mbps, 100 Mbps, automatic)
Three sets of option buttons are available with which the user can select the duplex mode
(half duplex, full duplex, automatic), the type of transmission medium (AUI, TP, automatic)
and the transmission rate (10 Mbps, 100 Mbps, automatic). The default for all boxes is
"automatic". After changing the defaults, you are requested to perform a restart.
NOTICE
If you select AUI as the medium type, you can no longer change the options for the
transmission rate and duplex mode. In this case, 10 Mbps and half duplex are set. If, on the
other hand, 100 Mbps or full duplex are selected, AUI can no longer be selected as the
transmission medium.
Current setting
Transmission parameters (current setting)
After the CP 1613, CP 1623 or CP 1628 starts up, the current transmission parameters are
displayed in the relevant boxes. As long as no valid link to the partner is detected, the output
box displays "unknown".
Follow the steps below if you want to display and set the Industrial Ethernet network parameters of
the CP 1613, CP 1623 or CP 1628:
1. Open the "Modules" folder in the navigation area.
2. Select the Ethernet module "CP 1613" and click the "Network Parameters" property
object.
300
Tools
4.5 Configuration Console
3. If you want to change the network parameters, select the required check box for each
parameter. The default for all parameters is "Automatic".
4. Click the "Apply" button to activate the data you have set. When you apply the values,
you will see a message indicating that the module must be restarted before the new
values will become effective.
301
Tools
4.5 Configuration Console
4.5.4.3
Follow the steps below if you want to set the Industrial Ethernet station addresses of the CP 1613:
1. Open the "Modules" folder in the navigation area.
2. Select a module of the type "CP 1613" and click on the "Address" property.
302
Tools
4.5 Configuration Console
3. Depending on the mode set for the module, you can modify or only check the address
parameters.
Configured mode: The parameters are set in the project engineering and cannot be
changed.
PG mode: The parameters can be changed.
If you have selected "PG mode", set the address parameters.
4. Click the "Apply" button to activate the values you have set. When you apply the values,
you will see a message indicating that the module must be restarted before the new
values will become effective.
4.5.4.4
303
Tools
4.5 Configuration Console
Follow the steps below if you want to assign an access point of an interface parameter assignment to
a module:
1. Open the "Access points" folder in the navigation area.
2. Doubleclick on the access point you want to edit in the righthand window.
3. Set the interface parameter assignment to be assigned to the access point. If the module
is used in "configured mode", the active interface parameter assignment is fixed and
cannot be modified.
4. Click the "Apply" button to activate the data you have set.
Note
Access points must not be changed during operation.
NOTICE
Important for PROFIBUS modules:
With PROFIBUS modules, only one interface parameter assignment can be activated at
any one time. If you select a different interface parameter assignment from the currently
active interface parameter assignment when assigning an access point, this interface
parameter assignment is activated and assigned to ALL access points!
4.5.4.5
304
Tools
4.5 Configuration Console
The slave module configuration is effective only for use with the OPC interface.
305
Tools
4.5 Configuration Console
4. Set the remaining properties of the DP slave module as follows:
306
Tools
4.5 Configuration Console
Configuration data for the DP slave (hexadecimal):
The configuration data for the DP slave is displayed as a list of hexadecimal digits
separated by commas and this can be edited. Generally, one pair of digits
corresponds to the configuration of a submodule of the DP slave. For the coding of the
submodule properties, please refer to the description of the DP Base programming
interface (section, Structure of the configuration data). For information on creating and
using GSD files, please refer to the description of the DP Base programming interface
(section, significance of GSD files).
Ident number of the DP slave (hexadecimal):
Enter the identification number of the DP slave as a hexadecimal number. The Ident
number is assigned by the PROFIBUS Users Organization and is unique for each
slave type. It is also in the GSD file that needs to be created.
Browse:
Click the "Browse..." button if you want to use a GSD file as a template from which you
can also take the Ident number and the configuration data for the DP slave. Please
note that with a modular DP slave, only the configuration data of the first submodule
definition are adopted.
5. Click the "Apply" button to activate the data you have set.
4.5.5
Overview
In diagnostics with the "Configuration Console", you can, for example, do the following
Display the operability of the modules;
Display the PROFIBUS network parameters;
Display the available network nodes;
Display and set the Industrial Ethernet network parameters;
Display the version information of hardware and software.
These options are described in the following sections.
4.5.5.1
307
Tools
4.5 Configuration Console
3. The bus parameters and the version information of the module are queried and displayed
here.
By querying the module, the internal communication path is tested. The result of the
operation is displayed.
4. Click the "Test" button to query the bus parameters of the module again.
4.5.5.2
308
Tools
4.5 Configuration Console
4.5.5.3
309
Tools
4.5 Configuration Console
3. After the call, the bus nodes are queried and displayed. Four different symbols are used
to indicate the operating mode of a station:
Empty box with gray background (the same background color as tabs): No partner
device found;
Empty box on light background: Passive station (for example DP slave);
Check mark on light background: Active station (for example DP master);
Check mark on gray background: Active station ready to enter network.
4. Click the "Update" button again to access the module and query the bus nodes.
4.5.5.4
310
Tools
4.5 Configuration Console
2. Select the relevant PROFIBUS module and click on the "Address" property object.
3. After the call, the address parameters set for the module are displayed.
"Timeout" drop-down list:
Here, you can set the connection monitoring time for the CP 5511 / CP 5512 / CP 5611.
Increase the connection timeout, for example, if you have problems with high response
times in the network.
4.5.5.5
311
Tools
4.6 OPC Scout V10
2. Select the relevant module and click on the "Version" property object.
3. After the call, version information about the communications module is displayed.
4.6
4.6.1
312
Tools
4.6 OPC Scout V10
Testing connections and objects
Monitoring items
Reading and writing items
Displaying alarms
S7 connection diagnostics
Creating and saving views of the objects to be acquired. You can choose between the
following views.
DA view for OPC Data Access, XML Data Access and OPC UA.
AE view for OPC Alarms & Events.
Diagnostics view, S7 connection diagnostics for OPC Data Access, XML Data Access
and OPC UA.
The following description will familiarize you with the user interface of the OPC scout V10.
Step by step, it shows you how to use the functions described above.
313
Tools
4.6 OPC Scout V10
(3) Workbook
(4) View area
Depending on the activities you perform during the session, the OPC Scout V10 can have
the following menus:
314
Tools
4.6 OPC Scout V10
The menu
File
In this menu, you can create, save and load projects. You can also call up the
projects on which you last worked.
Edit
With the menu commands in the "Edit" menu, you can copy, delete or select
items or objects in the DA view. With this option, you can also copy selected
items to other DA views.
View
Here, you can decide which areas and tools are displayed in the OPC Scout
V10 window.
Server Explorer
Here, you can add a selected server from the navigation area to the workbook.
Workbook
Here, you can add DA, AE and diagnostics views to the workbook and
connect, disconnect or remove servers.
Tools
Window
Here, you set the arrangement of the DA, AE and diagnostics views in the
views area.
Help
Note
The OPC Scout V10 supports shortcut menus.
Click on an object and then click the right mouse button. You will then see a menu in which
you can select the functions that are possible with the selected object.
315
Tools
4.6 OPC Scout V10
4.6.2
316
Tools
4.6 OPC Scout V10
4.6.3
317
Tools
4.6 OPC Scout V10
4.6.4
4.6.5
318
Tools
4.6 OPC Scout V10
3. Enter the data type and the related information in the relevant boxes.
319
Tools
4.6 OPC Scout V10
4. Enter a name (optional) for the new item in the "Alias" box.
5. Click "OK".
Reaction: The dialog is closed and the newly defined item is displayed in the navigation
area.
NOTICE
The graphics above are examples of the S7 protocol. The display can differ for other
protocols. You will find more detailed information on the protocols in the "Industrial
Communication with PG/PC" manual.
4.6.6
320
Tools
4.6 OPC Scout V10
2. In the information area, select all the process variables (items) and drag these to the view
area.
321
Tools
4.6 OPC Scout V10
4. Click the "Monitor OFF" button to stop monitoring the items in the view area.
4.6.7
322
Tools
4.6 OPC Scout V10
Follow the steps below to change the settings for the views:
1. Click the "Tools" > "Options..." menu item.
Reaction: The "Settings" dialog box opens.
2. Make the basic settings for all new DA, AE and diagnostics views of the OPC Scout V10.
In the "DA view", "AE view" and "Diagnostics view" tabs, you specify the width, visibility
and arrangement of the individual columns.
3. Click the "Default" button to set the default values.
DA view
In the "DA view" tab, you can also make the following settings:
323
Tools
4.6 OPC Scout V10
Setting option
Function
Deadband in %
324
Tools
4.6 OPC Scout V10
4.6.8
Customize display
You can decide what information is displayed for variables in the OPC Scout V10 window.
Meaning
OPC ItemIDs
Value
Value of the variable displayed in the format set in the Format column.
Format
Representation
For integers, you can select between the original format, hexadecimal, or
binary. The "Original" format for integers is decimal. All values that are not
integers are always displayed in the original format (for example, string,
date, floating point). It is not possible to change the format of these data
types.
Type
Access
Access rights for the OPC item. ( "R"= readonly, "W"= writeonly, "RW" = full
access)
Quality
Qualifies the accuracy of the value. If the quality is "good", the value was
acquired with certainty.
Time at which the OPC Server last detected a change in the value. The
time stamp is displayed in UTC format (Universal Coordinated Time). The
UTC time corresponds to Greenwich Mean Time (GMT).
Write result
Group
Client handle
Server handle
Error
Error messages involving the use of the OPC item that cannot be attributed
to "Quality" or "Write Result".
325
Tools
4.6 OPC Scout V10
4.6.9
Display attributes
You can display the attributes of individual OPC items.
4.6.10
Change values
Using the OPC Scout V10, you can modify the values of writable variables directly.
326
Tools
4.6 OPC Scout V10
4.6.11
4.6.11.1
File menu
The "File" menu contains the following menu commands:
The menu command
New project
Open Project
Close project
Save Project
Here, you will find the projects that you opened last.
Exit
4.6.11.2
Edit menu
The "Edit" menu contains the following menu commands:
The menu command
Cut
Copy
Paste
Delete
Select All
327
Tools
4.6 OPC Scout V10
4.6.11.3
View menu
The "View" menu contains the following menu commands:
The menu command
4.6.11.4
Workbook
Server Explorer
Toolbar
Here, you can set up the toolbars of the OPC Scout V10
individually by selecting them.
4.6.11.5
Workbook menu
The "Workbook" menu contains the following menu commands:
The menu command
Remove server
Connecting to a server
Disconnect server
328
Tools
4.6 OPC Scout V10
4.6.11.6
Tools menu
The "Tools" menu contains the following menu commands:
The menu command
Options ...
4.6.11.7
Window menu
The "Window" menu contains the following menu commands:
The menu command
Cascade windows
Arrange horizontally
Arrange vertically
Tab view
4.6.11.8
Help menu
The "Help" menu contains the following menu commands:
The menu command
Contents
About
Language settings
Here, you can change over the language of the OPC Scout V10.
English
German
Changing the language requires a restart of the OPC Scout V10
and this is initiated automatically. When you confirm the restart,
you will be asked whether you want to save changes made in
your project before you close the OPC Scout V10.
When it restarts, the OPC Scout V10 opens with a new project.
329
Tools
4.7 DCOM configuration OPC client/server operation
4.7
Description
DCOM must be configured to allow network access by an OPC client to an OPC server.
For a client to utilize a COM object on another PC, the properties of the COM object must
be configured.
The Windows system program "dcomcnfg" is used to configure DCOM and the required
COM objects.
Below, you will find the settings required and examples of client/server mode of the SIMATIC
NET OPC server.
We recommend that you keep to the following order:
1. Enable network discovery. ( 4.7.1)
2. First close your OPC applications and OPC servers with the "Configuration Console"
program in the branch "Exit OPC Server".
3. Make the initial setting of the OPC-DCOM configuration with the "Configuration Console"
program.
A general share should be set up in the "Security" branch of the "Configuration Console"
program. This combines all the necessary general single steps in one action. ( 4.7.2)
4. For the required users of SIMATIC NET OPC DCOM, it is advisable to use the existing
user group SIMATIC NET.
Add the required users of the SIMATIC NET user group in the user management. (
4.6.3)
5. Make the settings with the "dcomcnfg" system program.
The possible settings and functionality depend on whether you are active in a domain or
workgroup environment. ( 4.7.4 and 4.7.5)
Examples of typical application configurations: ( 4.7.6, 4.6.7 and 4.7.8)
6. Then restart your computer.
In this section, you will, find information in the form of an example of configuring the client
computer and configuring the PC with the OPC server for the situation where exactly one
client is connected to the OPC server that is running on a different PC.
If you want to use more than one OPC server from a client, refer to the DCOM
documentation.
4.7.1
330
Tools
4.7 DCOM configuration OPC client/server operation
1. Go to the "Advanced sharing settings" menu (Start menu "Start" > "Control Panel" >
"Network and Sharing Center" > "Advanced sharing settings").
2. Select "Turn on network discovery" and "Turn on file and printer sharing". The computers
should then be able to see each other under "Network" in the Explorer and should be
reachable with a "PING".
4.7.2
331
Tools
4.7 DCOM configuration OPC client/server operation
3. In the detailed window, click the "Allow..." button of the remote basic and OPC
communication to allow the general settings of remote OPC DCOM communication.
The message dialog "Advanced Configuration of Firewall, DCOM and PROFINET CBA
for remote OPC access" with the list of actions taken is opened.
Note
Remember that the Allow function also affects applications, for example for DCOM port
135, that also use this access method.
4. Confirm with "OK".
4.7.3
332
Tools
4.7 DCOM configuration OPC client/server operation
4. Select the "Properties" entry in the shortcut menu.
Reaction: The "Properties SIMATIC NET" dialog box opens.
333
Tools
4.7 DCOM configuration OPC client/server operation
5. Click the "Add..." button.
Reaction: The "Select Users" dialog box opens.
6. Add the required DCOM users to the group, here, for example user "Alpha", member of
the "Administrators" group and user "Beta" member of the "Users" group.
334
Tools
4.7 DCOM configuration OPC client/server operation
The group can now be selected by the COM server for launch and access permissions
for DCOM configuration.
4.7.4
335
Tools
4.7 DCOM configuration OPC client/server operation
4.7.4.1
336
Tools
4.7 DCOM configuration OPC client/server operation
Select the program from the list.
2. Open "My Computer" in the tree structure on the left ("Component Services" >
"Computer" >"My Computer").
3. Right-click to open the shortcut menu and click "Properties".
Reaction: The "My Computer Properties" dialog opens with the following tabs:
General
Options
Default Properties
Default Protocols
COM Security
MSDTC
337
Tools
4.7 DCOM configuration OPC client/server operation
Note
The "General", "Options" and "MSDTC" tabs are not required for commissioning the
DCOM protocol and not discussed further here.
4.7.4.2
338
Tools
4.7 DCOM configuration OPC client/server operation
339
Tools
4.7 DCOM configuration OPC client/server operation
4.7.4.3
340
Tools
4.7 DCOM configuration OPC client/server operation
NOTICE
The settings listed in this description guarantee simple installation and startup of the
DCOM protocol. Some of the security settings of the operating system are reduced. To
meet stricter security requirements, you must increase the settings according to the
DCOM guidelines.
The settings are different if you use domains and workgroups.
341
Tools
4.7 DCOM configuration OPC client/server operation
Note
If you change the security settings, the system must be restarted to activate the changes.
The settings are described in Example - Windows domain mode (Page 363) , Example Windows workgroups mode (Page 383) and Example - Client only computer mode
(Page 392).
342
Tools
4.7 DCOM configuration OPC client/server operation
Default permissions
Meaning
Access permissions
with the
"Edit Default..." button
The default access permissions for all COM objects specify which
accounts are allowed to access the object; in other words, call the
methods and which accounts are explicitly denied access.
343
Tools
4.7 DCOM configuration OPC client/server operation
Default permissions
Meaning
344
Tools
4.7 DCOM configuration OPC client/server operation
Default permissions
Meaning
The default launch and activation permissions for all COM objects
specify which accounts have the right to create the object and which
accounts are explicitly denied this permission.
These permissions can be set individually for each object and the default properties are then
ignored.
4.7.4.4
345
Tools
4.7 DCOM configuration OPC client/server operation
NOTICE
To operate the PROFINET CBA OPC server, the "Connectionoriented TCP/IP" protocol
must be at the top of the list of DCOM protocols.
If necessary, move the protocol to the top position.
346
Tools
4.7 DCOM configuration OPC client/server operation
4.7.5
Functions of the "dcomcnfg" system program for the DCOM configuration of the
OPC server
This section describes the functions of the "dcomcnfg" system program for the DCOM
configuration of the OPC server.
347
Tools
4.7 DCOM configuration OPC client/server operation
OPC.SimaticNETAlarmsSNMP: Alarms and events server for SNMP protocol
OPC.SimaticNET.AE: Alarms and events server for S7 and SNMP protocol
348
Tools
4.7 DCOM configuration OPC client/server operation
4.7.5.1
"General" tab
If you select the "Security" tab with this authentication level, you can adapt the permissions
in the "Properties of OPC.SimaticNET - Security" dialog.
See also
"Security" tab (Page 356)
349
Tools
4.7 DCOM configuration OPC client/server operation
4.7.5.2
"Location" tab
To operate as pure OPC client computer, see "Example - Client only computer mode
(Page 392)", a remote PC with SIMATIC NET OPC server can also be selected. If this is the
case, check the "Run application on the following computer" box and select the required PC
with the "Browse..." button or type in the PC name.
350
Tools
4.7 DCOM configuration OPC client/server operation
351
Tools
4.7 DCOM configuration OPC client/server operation
4.7.5.3
"Identity" tab
Meaning
The account of the user that launched the OPC client is used.
This user must then also have the required permissions; in other
words, must be entered in the "Security" tab. The user must also
have the default permissions entered in the user group on this PC,
in other words must belong to the user group.
Note:
This mode must not be used with the OPC server for SIMATIC
NET, since the OPC server would otherwise be started more than
once by different user accounts and this is not permitted.
"This User"
The account of a specified user is used. This user must have the
required permissions; in other words, must be entered in the
"Security" tab. The user must also have the default permissions
entered in the user group on this PC, in other words must belong
to the user group.
This setting must be used to operate the OPC server for SIMATIC
NET (logged-on users):
Server mode, user not logged on Use the "This user" setting described here for Multiterminal and
server mode if there is no interactive PC station user logged
on.
352
Tools
4.7 DCOM configuration OPC client/server operation
353
Tools
4.7 DCOM configuration OPC client/server operation
The OPC server can then be operated as a server to which one or more remote OPC clients
with users with differing permissions have access over DCOM (server mode).
The OPC server can also be started and operated by a local service and the OPC server is
then started automatically without a logged-on user when the PC boots (service mode).
Such an OPC application that is implemented as a service can also be started automatically
by the SIMATIC NET configuration service after the SIMATIC PC station has booted.
Enter the values in the "Services to be started after starting at the PC station" dialog (Start
menu "Start" > "..." > "SIMATIC NET" > " Configuration Console" and then in "SIMATIC NET
Configuration" > "Applications" > "Autostart" > "Services which should be started after startup of the PC station").
With the "This user" setting, the OPC server is started and executed exclusively in this user
context even when no user is logged on.
With this setting, multiple instances of the OPC server are prevented since this would lead to
illegal and inconsistent access.
354
Tools
4.7 DCOM configuration OPC client/server operation
355
Tools
4.7 DCOM configuration OPC client/server operation
4.7.5.4
"Security" tab
356
Tools
4.7 DCOM configuration OPC client/server operation
357
Tools
4.7 DCOM configuration OPC client/server operation
Launch and activation permissions
Access permissions
The use of a group with logons is advisable when using a domain. The information about
permissions is then fetched from the domain server.
It is recommended that you use the SIMATIC NET user group. The required users are added
as members of this group. This group can be used for the access and start permissions of
the OPC server.
358
Tools
4.7 DCOM configuration OPC client/server operation
Multiterminal server mode, service or server mode with the identity "This user" of the OPC server
In multiterminal-server mode or service or server mode in which the OPC server is started
with the identity of a certain user ("This user"), you assign access, launch and activation
permissions to this user.
359
Tools
4.7 DCOM configuration OPC client/server operation
Reaction: The "Access Permission" dialog box opens.
2. Add the account of the user under which the OPC server will start.
Access must be permitted for the "SYSTEM" account to allow use of the SIMATIC NET
system services.
Note
The default is "Everyone".
360
Tools
4.7 DCOM configuration OPC client/server operation
361
Tools
4.7 DCOM configuration OPC client/server operation
Reaction: The "Launch and Activation Permissions" dialog box opens.
2. Add the account of the user under which the OPC server will start. It is advisable to
manage the user in the SIMATIC NET user group and to add the group here.
Note
The default is "Everyone".
362
Tools
4.7 DCOM configuration OPC client/server operation
4.7.6
363
Tools
4.7 DCOM configuration OPC client/server operation
4.7.6.1
364
Tools
4.7 DCOM configuration OPC client/server operation
2. Set the DCOM configuration of the computer using the "dcomcnfg" program.
When operating in a domain, the "Default Authentication Level" can by set to "Connect"
and the "Default Impersonation Level" to "Identify" for security reasons (should be the
default setting).
365
Tools
4.7 DCOM configuration OPC client/server operation
366
Tools
4.7 DCOM configuration OPC client/server operation
2. Select "Default" in the "Authentication Level" drop-down list box on the "General" tab.
The SIMATIC NET OPC server "OPC.SimaticNET" is installed with the authentication
level "None". For DCOM mode in the domain, access can be restricted by setting the
authentication level to "Default".
367
Tools
4.7 DCOM configuration OPC client/server operation
3. Check "Run application on this computer" in the "Location" tab.
368
Tools
4.7 DCOM configuration OPC client/server operation
4. Adapt the security access and launch settings in the "Security" tab.
369
Tools
4.7 DCOM configuration OPC client/server operation
5. In the "Launch and Activation Permissions" group box, click the "Edit..." button.
NOTICE
Do not add the "NETWORK" and local "Administrators" entries for the access and
launch permissions otherwise all members of the domain will have access rights.
Reaction: The "Launch and Activation Permissions" dialog box is displayed.
Instead of the "Everyone" entry, the users or groups on the OPC client computer and on
the OPC server computer must be entered explicitly in the access and launch
permissions of "OPC.SimaticNET" security and in COM default security. Remember that
users or groups added to the launch and access permissions are assigned all the listed
permissions.
Use the domain group SIMATIC NET (with users Alpha and Beta) for the launch and
access permissions. Further users such as "Gamma" are denied access even with
domain administrator permissions.
As of Windows XP SP 2, the following launch permissions are also required for the
ANONYMOUS LOGON:
"Local Launch"
"Remote Launch"
"Local Activation"
"Remote Activation"
370
Tools
4.7 DCOM configuration OPC client/server operation
371
Tools
4.7 DCOM configuration OPC client/server operation
6. Click the "Edit..." button in the "Access Permissions" group box.
Reaction: The "Access Permission" dialog is displayed.
The various OPC protocol servers are implemented as services and therefore require
"Local Access" permission for the SYSTEM account.
The following is required for the access permission for "ANONYMOUS LOGON":
"Local Access"
"Remote Access"
7. "Identity" tab
In this application example, the identity remains "The interactive user".
372
Tools
4.7 DCOM configuration OPC client/server operation
373
Tools
4.7 DCOM configuration OPC client/server operation
Select the DCOM object "OPC Scout V10" and select "Properties" in the shortcut menu.
Reaction: The "OPC Scout V10 Properties" dialog box opens.
Select the "Default" entry in the "Authentication Level" drop-down list box.
2. "Launch and Activation Permissions" and "Access Permissions" dialog boxes with the
"Security" tabs
Use the domain group SIMATIC NET (with users Alpha and Beta) for the launch,
activation and access permissions. Further users such as "Gamma" are denied access
even with domain administrator permissions.
374
Tools
4.7 DCOM configuration OPC client/server operation
375
Tools
4.7 DCOM configuration OPC client/server operation
376
Tools
4.7 DCOM configuration OPC client/server operation
Note
OPC security settings when changing domains
In the "Configuration Console" configuration program, you can enable the OPC security
settings for the Windows firewall and DCOM. Remember that the settings for the
Windows firewall and DCOM configuration depend on the Windows logon. If, for example,
you later join a Windows domain with the PC, it may be necessary to enable the OPC
security settings for the Windows firewall and DCOM again in "Configuration Console".
377
Tools
4.7 DCOM configuration OPC client/server operation
4.7.6.2
Example of a non logged-on user in the domain (server mode, service mode)
In this situation, the computer has booted but no user is logged on.
The system displays the logon dialog.
The OPC server can:
then be operated as a server to which one or more remote OPC clients with users with
differing permissions have access over DCOM server mode.
also be launched and executed by a local service that is started automatically even
without a logged-on user when the PC boots service mode.
378
Tools
4.7 DCOM configuration OPC client/server operation
2. Select the "This user" check box in the "Identity" tab of the "OPC.SimaticNET Properties"
dialog of the OPC server.
3. Click the "Browse..." button and select a user with adequate launch and access
permissions for the OPC server and enter the password and password confirmation.
379
Tools
4.7 DCOM configuration OPC client/server operation
4.7.6.3
380
Tools
4.7 DCOM configuration OPC client/server operation
2. Click the "Browse..." button and select a user with adequate launch and access
permissions for the OPC server and enter the password and password confirmation.
This does not need to be one of the logged-on users. With the "This user", setting, the
OPC server is launched and executed only in this user context (even when several users
are logged on).
381
Tools
4.7 DCOM configuration OPC client/server operation
382
Tools
4.7 DCOM configuration OPC client/server operation
4.7.7
383
Tools
4.7 DCOM configuration OPC client/server operation
4.7.7.1
384
Tools
4.7 DCOM configuration OPC client/server operation
2. Set the DCOM configuration of the workplace using the "dcomcnfg" program.
When working in a workgroup, due to the enable in the "Default Properties" dialog, the
"Default Authentication Level" must be set to "None" and the "Default Impersonation
Level" to "Anonymous".
385
Tools
4.7 DCOM configuration OPC client/server operation
3. In the "Default Protocols" tab, you specify the network protocols that are available for
DCOM. The "Connection-oriented TCP/IP" protocol must be set at the top.
386
Tools
4.7 DCOM configuration OPC client/server operation
4.7.7.2
Meaning
"Access permission"
387
Tools
4.7 DCOM configuration OPC client/server operation
388
Tools
4.7 DCOM configuration OPC client/server operation
4.7.7.3
Meaning
"Access permission"
389
Tools
4.7 DCOM configuration OPC client/server operation
390
Tools
4.7 DCOM configuration OPC client/server operation
With these extensive default permissions, every OPC client in the workgroup can now
access the OPC server over DCOM. This also applies to non-registered DCOM clients.
First test DCOM access with the registered client OPC Scout and then with your OPC client.
You can now replace the general user "everyone" with the users or user groups you require.
Note
Recommendation: Replace "Everyone" with the "SIMATIC NET" group.
Remember that the users must exist on all machines involved.
391
Tools
4.7 DCOM configuration OPC client/server operation
4.7.8
4.7.8.1
Overview
When operating with DCOM, the OPC server runs on a different PC from the OPC clients
(applications). This is why no process for the OPC server is visible in the Windows Task
Manager of the client computer.
To allow the OPC clients to access the OPC server, the following requirements must be met
for this mode:
Registering the OPC server
The OPC server and its location must be registered on the client computer.
This registration is necessary so that the COM library knows the required object making
configuration possible.
Specify the user account that will be used to access the OPC server.
Registering the OPC client
When necessary access permissions and security settings must be made for the OPC
clients.
CAUTION
As shown below in the example of the OPC Scout, the default setting assumes an open
system and assumes that the user will adapt the settings when higher security is
required.
Make the required settings analogous to the description of configuring the server
computer in the section "Functions of the "dcomcnfg" system program for the DCOM
configuration of the OPC server (Page 347)".
Below, you will find instructions on registering, for example the OPC Scout as a client.
Providing "OPC proxy" libraries
The OPC Proxy libraries ("OPC Core Components") provided by the OPC Foundation are
required on the client computer. These libraries are used to convert the COM calls to a
data stream so that they can be transferred over the network.
392
Tools
4.7 DCOM configuration OPC client/server operation
393
Tools
4.7 DCOM configuration OPC client/server operation
If you display the properties of the OPC Scout V10 application in DCOM, "None" is displayed
as the authentication level.
394
Tools
4.7 DCOM configuration OPC client/server operation
The default setting therefore assumes an open system and assumes that the user will adapt
the settings when higher security is required.
Register other OPC clients as DCOM objects. The advantage of this is that you can
configure the security settings with "dcomcnfg" without needing to modify systemwide
settings.
395
Tools
4.7 DCOM configuration OPC client/server operation
4.7.8.2
396
Tools
4.7 DCOM configuration OPC client/server operation
4.7.8.3
Advanced firewall settings as of Windows XP SP2 and as of Windows Server 2003 SP1
The advanced settings as of Windows XP SP2 and as of Windows Server 2003 SP1 require
advanced firewall settings to use DCOM OPC.
Two changes must be made in the Windows firewall:
Add the OPC Scout as an exception.
Add Port 135, type TCP as an exception.
The following sections describe the steps involved.
397
Tools
4.7 DCOM configuration OPC client/server operation
3. Right click on "Inbound Rules" and then on "New Rule...".
4. In answer to the question "What type of rule would you like to create?", click the "Port"
button.
5. Click the "Next" button.
6. In answer to the question "Does this rule apply to TCP or UDP?", click the "TCP" button.
7. In the "Specific local ports" text box, enter the port with number 135.
8. Click the "Next" button.
9. In answer to the question "What action should be taken when a connection meets the
specified conditions?", click the "Allow the connection" button.
10.Click the "Next" button.
11.In this dialog, select the buttons "Domain", "Private" and "Public".
12.Click the "Next" button.
13.Enter a name in the input box for your inbound rule, for example the name "DCOM".
14.Click the "Finish" button.
398
Tools
4.7 DCOM configuration OPC client/server operation
4.7.8.4
Advanced DCOM configuration as of Windows XP SP2 and as of Windows Server 2003 SP1
The advanced settings as of Windows XP SP2 and as of Windows Server 2003 SP1 require
advanced settings to use DCOM OPC.
Make sure that newly added users or groups are assigned all listed permissions in the
launch and access permissions.
Changes need to be made:
Restriction of the access permissions for COM security
Launch and activation permission for OPC.SimaticNET
The following sections describe the steps involved.
Making the settings to restrict the access permissions for COM security
Follow the steps below:
1. Go to the COM security settings as described in the section "Enabling the DCOM
configuration "Security" for OPC client/server operation (Page 331)".
2. Click on the "Add User" button.
3. Add the "ANONYMOUS LOGON" user.
4. Check the "Local Access" and "Remote Access" boxes.
Make the settings for launch and activation permission for OPC.SimaticNET
NOTICE
In Windows 7, the step "Launch and Activation Permission for OPC.SimaticNET" is no
longer necessary.
Follow the steps below:
1. Go to OPC.SimaticNET as described in the section "Functions of the "dcomcnfg" system
program" for the DCOM configuration of the OPC server.
2. Click on the "Add User" button.
3. Add the "ANONYMOUS LOGON" user.
4. Check the "Local Launch", "Remote Launch", "Local Activation" and "Remote Activation"
boxes.
See also
Functions of the "dcomcnfg" system program for the DCOM configuration of the OPC server
(Page 347)
399
Tools
4.7 DCOM configuration OPC client/server operation
400
FAQs
Here, you will find the most common questions asked about the following topics.
General FAQs
OPC Server
CP 1613/CP 1623
Softnet Industrial Ethernet
Open communication services (SEND/ RECEIVE) for Industrial Ethernet
CP 5613/CP 5614 and CP 5623/CP 5624
Changing from CP 5412 to CP 5613/CP 5614
Softnet PROFIBUS (general)
CP 5512
CP 5611/CP 5621
Softnet S7
Softnet DP
Softnet FDL
A.1
General FAQs
A.1.1
Licenses
I have installed SIMATIC NET on a compressed drive. An error message appeared when installing
the license key. Can I not install on compressed drives?
You can install the product files on a compressed drive but not the license key. To install the
license key, specify, for example, the host drive of the compressed drive.
401
FAQs
A.1 General FAQs
A.1.2
Windows versions
A.1.3
Miscellaneous
How can I find out the version of the SIMATIC NET products?
Open the "Add/Remove Software" entry in the Control Panel:
"Start" > "Settings" > "Control Panel" > " Add/Remove Software"
During the installation of SIMATIC NET under a Windows operating system, various services are set
up and always started automatically. Are these services necessary?
These services are absolutely necessary for SIMATIC NET operation. Do not disable or
remove the services that have been set up under any circumstances. SIMATIC NET cannot
function correctly without these services.
402
FAQs
A.2 OPC server
A.2
OPC server
A.2.1
Product characteristics
Is parallel operation of more than one protocol possible with the OPC server of SIMATIC NET?
Yes! To do this, you must configure the required protocols.
Why are incorrect error messages displayed when there is more than one active protocol?
A write call via the IOPCSyncIO OPC Interface with an invalid server handle returns the
incorrect error code S_OK instead of S_FALSE.
Asynchronous writing to a symbolic OPC item that was assigned write permissions by the
Symbol Editor but actually only has read permissions does not deliver a correct write return
value (Write Result). The return value is "Unknown error" instead of "Inadequate access
rights".
Adding nonexistent OPC items with the OPC Scout or with the AddItem OPC function results
in the error message "An internally used service has completed" instead of "Invalid item".
Workaround: Use only one active protocol and no symbols or correct your configuration.
403
FAQs
A.2 OPC server
To avoid the connection being closed, we recommend that you configure an active
connection establishment in STEP 7. If necessary, the connection monitoring times for
connection establishment should be modified.
A.2.2
I have developed a program in C++ using the custom interface. How can I check whether all OLE
interfaces are released again after my program closes?
If your program releases all interfaces correctly, the OPC Server automatically removes itself
from memory after you close your program. Start the Task Manager of the Windows
operating system (for example with <CTRLALTDel>, "Task Manager" button) and click on
the "Processes" tab. If the OPC server is still running, you will see a process with the name
"OPCDASERVER.EXE" in the list.
How can I close down the OPC Server if it remains in memory due to an error after closing all the
clients?
Open the page "Close OPC Server" in the "Configuration Console" and click the "Close OPC
Server" button. You should NOT close the OPC Server using the Task Manager!
Are OPC cache values retained even after an OPC clients has logged off?
The OPC cache values of items are retained even after an OPC client has logged off as long
as the OPC server is not exited. A second OPC client therefore receives these values with
the value "good" immediately after logging on since these are the best possible known
values. The values are, however, updated immediately afterwards with current values within
the agreed update time.
What do I need to remember if I abort an application with OPC or the DataOCX in the development
environment with the debugger?
If an application is aborted, the chances are that it will not be able to tidy up internal
references to the OPC Server. As a result, the OPC Server continues to run and
communication is not shut down. To close down the OPC server, open the page "Close OPC
Server" in the "Configuration Console" and click the "Close OPC Server" button.
404
FAQs
A.2 OPC server
Which header files do I need to include to be able to use the custom interface of the OPC Server?
Include all the header files from the "Simatic Net\opc2\inc" folder. You will also find the C file
"opc_i.c" in this folder. This file defines classes containing the interface methods. If you
include this file in your project, you can access the interface methods directly.
You should also have a look at the sample programs!
How should I design my program for the OPC Custom interface so that communication over OPC is
as efficient as possible?
Use the OPC concept of monitoring the items in groups. Use the CACHE for read
commands and activate the groups only when you really want to read values. Your
application is then only involved in communication tasks when values actually change.
What errors does the SIMATIC NET OPC server return when AddItem is called if I have a bad path
section in the ItemID? (for example DP:[CP_WRONG])
Although the path causes the error, the ItemID parameter is wrong. As a result, the
OPC_E_UNKNOWNITEMID error is returned.
Which return values need to be checked with group operations over the OPC Automation Interface in
Visual Basic?
in the function result, Visual Basic does not distinguish between a fully successful function
(i.e. for all elements of a group operation) or only partly successful result. You should
therefore check the arrays with the return values of the individual elements when using
group operations in Visual Basic. (Example: Errors with SyncRead)
What information is used by the OPC Server if a different path section is specified in the AccessPath
parameter compared with the path in the ItemID parameter?
The OPC Server puts together the full name of the variable from the AccessPath and ItemID.
If an ItemID is used in the AccessPath, this must NOT be included in the ItemID as well.
Otherwise, the item cannot be inserted in a group.
What does a time stamp with the value "1.1.1601 12:00" mean?
This date is the initialization value 0 of a time specified in Windows. The OPC Server returns
this time stamp if no variable has been read up to now. Variables that can only be written
have this time stamp.
405
FAQs
A.2 OPC server
Does an older time stamp mean that the value may be out of date?
No. An older time stamp says that the value has not changed since the time indicated by the
time stamp. The validity of the value is monitored constantly by the server. A new time stamp
is entered only when the value changes. The SIMATIC NET OPC Server enters the time at
which the OPC Server receives the process variable as the time stamp. You obtain an older
time stamp, of course, only when you read from the cache. If you read from the device, the
time at which the value is received is used as the time stamp, regardless of whether or not
the value has changed.
The OPC Server returns some error codes that are not described in the supplied OPC specifications.
What do the error codes mean?
Internal communications problems are coded by the SIMATIC NET OPC Server using
specific error keys (HRESULT). These are as follows:
C0048003 (hex): Timeout, for example due to aborted connection
C0048004 (hex): An internal server has not started
C0048006 (hex): Unexpected communication error
As with other errors, applications can call the IOPCServer::GetErrorString method to get a
textual description of the problem.
You should also refer to the section "Error messages for OPC DA process variables" in the
"Industrial Communication with PG/PC volume 2" programming manual.
How does the OPC Server check the syntax of transferred numeric values?
The OPC Server tolerates certain errors in transferred numeric values. An integer "123.45" is
accepted without error as "123". The real value "1.22" is accepted as "1" if the comma is set
as the separator in the Windows system.
I have set 200 ms as the value for the scan cycle. The update rate of the group should be 500 ms. in
reality, however, some update times are 700 ms.
In some situations, the update times of the protocol and the group are added together. This
conforms with the OPC Specification that stipulates that a group must not be reported faster
the specified update rate. If necessary, reduce the update time of the group.
How should symbolic variable names be defined with the OPC Server of SIMATIC NET?
There are two basic ways of defining symbolic names:
1. Entry in the protocolspecific configuration file by using OPC Scout V10
2. Taking symbols from STEP 7 and creating new symbols with the Symbol Editor
These two different procedures have the following features:
406
FAQs
A.2 OPC server
Alias
definitions
Symbol Editor
To retain expandability and independence from protocol properties, the use of the Symbol
Editor is advised.
If the FDL protocol is activated alongside the DP protocol in the configuration of the OPC Server, a
slight loss of performance can result.
If two protocols are activated at the same time, a multiplexer is started automatically. This
can also cause a slight loss in performance. You should only activate the protocol you
require.
In the SEND/RECEIVE and FDL protocols, there are readonly variables (for example Receive). When
I enter these variables in the Symbol Editor, it is possible to declare these variables as writeonly. Why
isn't it possible to insert these variables in a group?
When specifying the access rights with the Symbol Editor, the rights can be restricted but not
expanded. As a result, it is not possible to declare an item that is readonly by virtue of its
properties (such as the Receive buffer) as writable using the Symbol Editor. By specifying
access rights in the Symbol Editor, it would, on the other hand, be possible to further restrict
the read rights of a previously readonly item. Such an item that can neither be read nor
written cannot be entered in a group with AddItem. This also applies to items whose access
rights were restricted in NCM PC.
An OPC client uses the OPC server continuously, other OPC clients start and close again
continuously. A slight loss of memory can be observed in the OPC Server.
The memory losses resulting from the configuration described above cannot be influenced
by the OPC client or OPC Server and have been observed on very differing servers. The
reason for this is the internal memory handling of Microsoft COM. In this case, it is advisable
to close down the OPC Server when necessary and then to restart it.
407
FAQs
A.2 OPC server
A.2.3
408
FAQs
A.2 OPC server
Which settings do I need to make for the OPC Alarms & Events server and DPInproc server for OPC
data access?
The DCOM configuration settings described in the "Commissioning PC Stations" manual
apply analogously to the OPC Alarms & Events server and the DPInproc variant of the OPC
server for data access.
In the "Applications" tab, however, the name of the relevant server must be selected instead
of the "OPC.SimaticNET" server, as follows:
OPC.SimaticNET.DP for the DPInproc variant of the OPC Data Access server
OPC.SimaticNet.PD for the OPC PROFIdrive Data Access bus server .
OPC.SimaticNetAlarms for the OPC Alarms & Events server.
OPC.SimaticNetAlarmsSNMP for the SNMP OPC Alarms & Events server
A.2.4
What is the maximum permitted length for the path of a symbol file?
The path including the drive and file name of a symbol file must not exceed 180 characters.
Otherwise, the symbol file is not accepted by the OPC Server; the symbolic namespace
cannot be investigated and it is not possible to insert symbolic names.
409
FAQs
A.2 OPC server
Which values are returned when querying access rights with the OPC methods "ValidateItem" and
"GetProperties" when the access rights differ?
If access rights are specified for symbolic items in the Symbol Editor that differ from those
that actually exist, when the access rights are queried
using the OPC method ValidateItem, the actual rights are returned,
using the GetProperties method, the rights assigned in the symbol file returned.
A.2.5
Which slaves can be addressed with the OPC Server for SIMATIC NET?
All the standard slaves supported by the configuration tools SIMATIC STEP 7 or SIMATIC
NCM PC can be addressed by the OPC Server. Nonstandard slaves can be addressed,
however, no structured access to the inputs and outputs of these slaves is possible.
A.2.6
How does the OPC Server optimize access with S7 functions? Is the optimization of the S7 variable
access active following installation? If it is not, how can I activate it?
The OPC Server collects the communications jobs (read/write jobs, variable monitoring jobs)
from all active clients in a central queue. The individual jobs are then grouped together:
1. If individual jobs on a connection represent a contiguous memory area (for example all
bytes from 1 to 100 of a data block), these jobs are put together to form one job
accessing an array. This optimization is active as default but can be deactivated since it
puts load on the CPU of the PC. To deactivate the optimization, the connectionspecific
option "Optimize read access" or "Optimize write access" must be deactivated in the
configuration.
2. Jobs to access the noncontiguous areas or different data types are grouped together for
the specific connection. The number of jobs that can be put together depends on the
PDU size and the length of the requested data. This optimization is always active.
3. Credits (the number of parallel network jobs that can be configured in NCM PC / STEP 7)
are used; in other words, the number of jobs processed at the same time on one
connection depends on the number of available credits.
4. Jobs on different connections are handled at the same time.
When I browse the S7 items, I only see the connection names. The blocks and variables are not
displayed. Why is this?
To allow browsing, the OPC Server must already have established communication
connections to the S7 partners. If this is not possible (for example because the S7 PLC is not
ready for communication), the browser displays only the connection names. Make sure that
the S7 partner is ready for communication.
Commissioning PC Stations - Manual and Quick Start
410
FAQs
A.2 OPC server
240
222
212
256
238
228
480
462
256 *)
960
942
256 *)
411
FAQs
A.2 OPC server
A.2.7
Why does the S5 partner station terminate the connection to the OPC server when the OPC Scout is
used to monitor a write connection?
Just like other OPC clients, OPC Scout continuously sends read jobs to the partner device.
An S5 controller reacts to a read job on a write connection by terminating the connection.
This is also the reaction to a write job on a fetch connection. Configure the mode of the
SEND/RECEIVE connection accordingly.
Which error messages can occur with FETCH and WRITE when using SEND/RECEIVE?
If you use the SEND/RECEIVE OPC server, the following error messages can occur with the
FETCH and WRITE operations (the causes are listed below the messages):
Error message text:
"The desired operation (read or write) is not permitted by the access right of the item".
Cause:
You do not have any rights (normal situation)
DB (data block) or PB (I/O module) does not exist
Although the area exists (RS, I, Q, M, PB, T or C), it is addressed outside the maximum
permitted area limits
Error message text:
"Unexpected communication error"
Cause:
Bus cable not plugged in (normal situation).
Other communication errors (normal situation).
DBs or PBs are addressed outside the existing limits.
412
FAQs
A.2 OPC server
A.2.8
If write jobs are sent to a communications partner in quick succession (for example with "Generate
Values" in the OPC Scout), some of these jobs are rejected. What is the cause and how can I get
round the problem?
Write jobs to a partner device can only be accepted when a receive resource (Await
indication) is prepared on the partner device. This receive resource is filled with data when it
is received and then passed to the processing application. This application is then
responsible for preparing a new receive resource. In the situation described here, the
receiving station cannot prepare receive resources quickly enough. With the connectionspecific "Maximum retries" parameter, the number of repetitions in case of "No resource" can
be set for the FDL OPC Server.
Why does the OPC Server not always obtain the actual value of a SEND/RECEIVE variable
correctly?
The SEND variable has the access right RW. This variable can be written and read although
the SEND/RECEIVE partner does not provide for the item being read back. When this item is
read back, the OPC Server returns the last successfully written value.
If no value has yet been written successfully for this item, the quality "bad" is returned.
The actual value of the variable cannot therefore be obtained by the OPC Server.
A.2.9
DCOM configuration
413
FAQs
A.2 OPC server
A.2.10
Which data types are accepted when writing with the SIMATIC NET Data OCX in VB.NET?
When writing data values with the SIMATIC NET Data OCX in VB.NET, only the data types
of the correct size are accepted, for example, no LONG value (64 bits) can be written to an
8-bit item such as MB0. The opposite assignment is also impossible. Always use the correct
data type and the correct sign or the use the OBJECT data type.
A.2.11
OPC XML-DA
Which requirements must be met so that trace output can be created for OPC XML-DA Web
services?
To allow trace output for OPC XML-DA Web services, you must have write permission for
the Microsoft Internet information services Web server ASPNET. The path of the trace file
can be selected using the "Configuration Console" program. Assign this folder the required
write permissions for the ASPNET user. Otherwise, no trace file can be created.
414
FAQs
A.2 OPC server
How does the expanded OPC XML-DA Web service trace react to missing rights?
Normally the Web service writes its traces in two circulating files whose path can be set
using the "Configuration Console". If these cannot be created or written to, for example due
to inadequate rights, a context trace entry is created. This is only possible with the following
entry in the configuration file "<installationpath>\simatic.net\opc2\binxml\web.config":
<trace
enabled="true"
requestLimit="10"
pageOutput="false"
traceMode="SortByTime"
localOnly="false"
/>
pageOutput=true means that in debug mode, the trace can also be displayed automatically
on the start page of the Web service.
415
FAQs
A.3 Hardnet Industrial Ethernet
The context trace is an online trace made available by the Web service as long as it is
running. It can be displayed with any browser, for example Internet Explorer.
To do this, you simply add "Trace.axd" as the URL to the corresponding virtual folder instead
of the start page "SOPCWeb.asmx", for example
"http://localhost/OPC.Simatic.NET/Trace.axd".
When can XML-DA communication variables for PROFIBUS DP and PROFINET IO be queried
successfully?
Communication variables for PROFIBUS DP and PROFINET IO can only be queried
successfully when the information variables DP:[<connectioname>]&Masterstate or
PNIO:[controllername]&mode() have the value OPERATE.
When using OPC XML-DA, it is advisable to query the variables &Masterstate (DP) or
&mode() (PROFINET IO) until the value OPERATE is achieved. It is then possible to access
process variables successfully.
A.3
A.3.1
416
FAQs
A.3 Hardnet Industrial Ethernet
A.3.2
Why can you specify two TCP/IP addresses when configuring the CP 1613?
On the one hand, the CP 1613 communications processor is designed for operation with
office communications protocols, for example, TCP/IP. In this case, the CP<SP>1613 NDIS
adapter must be installed and office communications protocols will be assigned to it. The
office communications protocols run on the PC.
The CP 1613 is used mainly for automation with the SIEMENS industrial protocols, for
SEND/RECEIVE, SAPI S7 and STEP 7. These protocols can be handled via the ISO
transport protocol or TCP/IP. Both transport protocols run in the firmware of the CP 1613.
The adapter between the TCP/IP transport protocol and the SIEMENS industrial protocols is
implemented according to RFC 1006.
On the CP 1613, a total of two TCP/IP transport protocol functions can be operated at the
same time:
The office communications adapter
The adapter of the SIEMENS industrial protocols
Both adapters must be assigned different TCP/IP addresses to identify them uniquely.
A.3.3
417
FAQs
A.3 Hardnet Industrial Ethernet
Security
For security reasons, only the objects sysLocation, sysContact and sysName can be set.
Access to all other objects is read-only.
The integration of the SNMP agent into the firmware provides additional security. Access to
the data of the computer using SNMP is therefore not possible.
Restrictions
Only the communities public (read-only) and private (can be read and written) are supported.
Reconfiguring or adding communities is not possible. Traps are not sent by the CP 1613
SNMP agent.
A.3.4
Miscellaneous
Are there special points to remember about connection monitoring with ISO-on-TCP (same
significance as TCP/IP (RFC 1006))?
If an application does not provide receive resources, the detection of a connection abort
(caused by the partner on the connection) may take several minutes. Connection
establishment between two PCs with CP 1613 modules may take several minutes, if there
are more than 32 connections to be established.
Time-of-day frames and intervals Which intervals are approved for receiving timeofday frames?
1 s and
10 s
Plugging in different connecting cables (TP, ITP or AUI) What do I need to remember when plugging in different connecting cables?
If all the options for "network parameters" in the "Set PG/PC Interface" or "Configuration
Console" programs are set to "automatic", the card will adapt itself automatically to the
attached network.
Only one network cable can be connected to a CP 1613 at any one time.
418
FAQs
A.4 Softnet Industrial Ethernet
What are the time limits for removing and plugging in the Ethernet cable without existing ISO
connections being terminated?
For ISO data exchange,16 repetitions at intervals of 1 second are set on the CP 1613; in
other words, if the cable is disconnected for longer than 16 seconds, the ISO connections
will terminate. If the time is kept below 16 seconds, no problems will occur.
If there is no data exchange on an established connection, a "sign of life" is sent at intervals
of 10 seconds. If there is no response to this ten times in succession, the connection is
automatically terminated. In the case of such a "quiet" connection, the cable can therefore be
removed for up to 100 seconds without the connection being terminated.
The information above applies, as already mentioned, to the data transfer phase. In the
connection establishment phase, the connection establishment request is sent every two
seconds and up to 32 attempts are made. The interruption can therefore be up to
approximately 64 seconds during the connection establishment phase. If this is exceeded,
the connection establishment is aborted and no connection will result.
CAUTION: The information above does not apply to faulttolerant connections (H
connections)!
A.4
When using the RFC1006 adapter "S7ONTCP.DLL", if there is a high transmission load with short
messages (< 10 bytes), the connections sometimes break down. How can you get round this
problem?
You should take measures to attempt to distribute the message load.
At a higher layer, implement mechanisms to ensure that the CP has received and
processed the messages.
When sending over the RFC1006 adapter, the sockets put the messages in a buffer if they
cannot be sent immediately. The user is informed that the messages have been sent even
though they have only been placed in the buffer of the socket (because they will be sent
later).
419
FAQs
A.5 Hardnet PROFIBUS
What are the effects of a high transmission load with short messages (<10 bytes) with TCP
(RFC1006)?
If send jobs are initiated in the user program more quickly than they can be processed by the
recipient, this can lead to buffer overload and cause a breakdown on the connection. This
problem occurs particularly with a high transmission load and short messages (<10 bytes).
Remedy
You can avoid the connection breakdown by reducing the number of send jobs at the user
program end.
Why is the TCP/IP connection terminated in a Windows operating system 10 seconds after
disconnecting the network cable regardless of the selected keepalive time?
In Windows operating systems, TCP/IP has a link monitoring function. As a result, removing
the TP cable from the network adapter causes a remote_abort after approximately 10 s.
A.5
Hardnet PROFIBUS
Are there restrictions for the CP 5603, CP 5613 A2 / CP 5614 A2 and CP 5623 / CP 5624 as DP
slave?
A CP 5603, CP 5613 A2 / CP 5614 A2 and CP 5623 / CP 5624 communications processor
as DP slave can communicate over the DPC2 protocol with only one (1) DP master. DPC2
data record jobs from other class 2 masters are rejected with communication errors. Reading
I/O data and slave diagnostics are possible without any restrictions. When used as DP
slaves, the communications processors listed above can also only be operated as DP-V0
slaves via OPC.
A.6
Softnet PROFIBUS
Is it permitted to operate SOFTNET PROFIBUS CPs together or combined with Hardnet CPs?
A maximum of two SOFTNET modules may be installed in one PC. Only one of these may
operate in configured mode.
420
FAQs
A.7 Programming instructions for the C interfaces
I have two PCs with SOFTNET modules attached to the bus and use the "PG operation" mode. When
I display the bus nodes in diagnostics on one of the PCs, the second SOFTNET PC does not appear.
How can I test the functionality of the network?
The SOFTNET modules are only active in PG operation when an application has actually
started communication. For test purposes, you could, for example, execute an SCPOpen
with the supplied FDL demonstration program and so activate the CP.
What do I need to remember when operating the CP 5512 and CP 5611 communications processors
as PROFIBUS DP slaves?
The CP 5512 and CP 5611 communications processors can be configured as PROFIBUS
SOFTNET DP slaves. If you use OPC as the interface, the SOFTNET DP slave submodule
must not include any special identification formats in the configuration.
Check the configuration of each SOFTNET DP slave module in HW Config. If special
identification formats exist, you can recognize this because the parameters "Output length
byte" and "Input length byte" in the "Direct Entry" dialog box are grayed out.
You can display these parameters as follows:
Open the " HW Config" program > select the "SOFTNET DP slave" > select the slave
module with the right mouse button > select the "Object Properties" menu command > click
the "Direct Entry..." button in the "Properties - DP slave" dialog.
After I plugged the 5611 and CP 5621 into the PCI slot, the BIOS message Resource Conflict PCI
Network Controller as Slot ... was displayed!
The resources required by the CP 5611 and CP 5621 (interrupt, memory ranges) are set by
the PCI BIOS and mapped to suitable system resources.
The PCI BIOS has detected that the required resources are not available. Change the
hardware configuration of the computer so that the required resources are free.
A.7
A.7.1
S7 protocols
How should I set the "dev_name" parameter when calling the "s7_init" and "s7_get_vfd" functions?
The "dev_name" parameter identifies the access point via which you will communicate. This
device name is the same as the entry made in the "Access point of the application" box in
the "Configuration Console" program. This can be the value "CP_L2_1:" that is installed as
default.
421
FAQs
A.7 Programming instructions for the C interfaces
PersistenceCount
TimeOut after
500
25 sec
1000
50 sec
1000
10
50 sec
PersistenceCount
TimeOut after
500
Immediately
1000
Immediately
1000
10
Immediately
PersistenceCount
TimeOut after
500
Immediately
1000
Immediately
1000
10
Immediately
What should I note about evaluating the return value of the "s7_receive" function?
If unexpected values occur for which no processing function is called, the "s7_discard_msg"
function must be called (for example in the default branch of a suitable switch statement).
422
FAQs
A.7 Programming instructions for the C interfaces
A.7.2
DP slave
Closing an application that uses the DP slave interface in the Task Manager or in the debugger does
not work. What can I do?
If you close the application without previously executing "dps_stop" and "dps_close", it can
take quite a long time before the process is actually closed. Always execute "DPS_stop" and
"DPS_close" before you close your application.
A.7.3
DP master
Number of slaves
256 KB
64
Number of slaves
252 KB
64
423
FAQs
A.7 Programming instructions for the C interfaces
What are the most important points to remember when creating a SOFTNET DP PROFIBUS
application?
Continuous polling on the DP interface (for example while instructions without inserting sleep
functions) can lead to poor performance on the bus because the DP drivers no longer have
adequate CPU capacity available.
If necessary, include pauses of a few milliseconds between the calls.
I receive error messages for dpn_init that are not listed in my manual on the DP programming
interface. What do these mean?
Two new error codes have been introduced:
DPN_LOAD_L2_VXD_ERROR (0x0097): The layer 2 drivers for the CP 5611 or CP 5411
(S7OASPCX.VXD) cannot be loaded.
DPN_OPEN_L2_VXD_ERROR (0x0098): The layer 2 drivers cannot be opened. Possible
causes:
Permanent bus disruption (for example, bus terminator missing);
another master station with the same station address is already active on the bus;
you will more information in the Windows event log.
I work with various groups of slaves. When I try to address group 1 by setting bit 0 as described in the
manual, an error occurs.
Selecting groups 1 to 8 in the structure element user_data[0] functions as follows:
Set bit 0: Group 8 is selected
Set bit 1: Group 7 is selected
...
Set bit 7: Group 1 is selected
During DP operation, the message "Bus short-circuit or bad transmission rate" appears. The
dpn_reset of my DP application is then no longer acknowledged.
This can only occur in isolated situations if there is a permanent (!) bus short-circuit.
Disconnect your CP 5...11 from the bus. The dpn_reset then terminates itself.
Eliminate the bus short-circuits and start your application again.
424
FAQs
A.7 Programming instructions for the C interfaces
A.7.4
FDL protocol
I use the SCP_receive call in the synchronous mode but sometimes when the function returns there is
no request block. Why does it do this?
Since the FDL interface with SOFTNET is available as of Windows NT, and because the
asynchronous mode must be used for Windows programs, the SCP_receive no longer
supports the timeout parameter.
This means that with SCP_receive, the value SCP_NOWAIT must always be used in the
timeout parameter.
Which parameter assignment do I need if I want to communicate with FDL over PROFIBUS?
The FDL protocol can be used with all parameter assignments. You must, however, specify
FLC with SCP_open.
If, for example, you set CP_L2_1: to DP master, you can run FDL if you execute SCP_open
with the parameter /CP_L2_1:/FLC.
With MPI, however, there is a special FDL parameter assignment that allows data lengths up
to 246 bytes but does not tolerate any other protocol.
Can I use all the FDL services of the CP 5613/CP 5613 A2 and CP 5623/CP 5624 unchanged on the
SOFTNET FDL interface?
The SOFTNET FDL interface is compatible with the FDL interface of the CP 5613/CP 5613
A2 and CP 5623/CP 5624.
However, the following services are not available:
FDL_READ_STATISTIC_CTR
FDL_READ_LAS_STATISTIC_CTR
LSAP_STATUS (only local SAPs, no remote access)
FDL_IDENT
Specifying the role with SAP_Activate under SOFTNET FDL is also restricted:
If Responder or Both_Roles is requested for one of the services, only this service is
permitted and all others are blocked.
If, however, Responder or Both_Roles is specified for two or more services, all services are
enabled.
425
FAQs
A.7 Programming instructions for the C interfaces
When using FDL, SCP_get_errno returns error codes that are not documented in my FDL manual!
Here is a complete list of all the error codes
Error code
E_SUCCESS
0x0000
E_RESOURCES
0x012a
E_PAR_ERR
0x012e
E_DPRAM
0x0132
SCP_RESOURCE
0x00ca
SCP_CONFIG_ERR
0x00cb
SCP_ILLEGAL
0x00cd
SCP_PARAM
0x00ce
SCP_DEVOPEN
0x00cf
SCP_BOARD
0x00d0
SCP_SOFTWARE
0x00d1
SCP_MEM
0x00d2
SCP_NOMESS
0x00d7
No message exists
SCP_USERMEM
0x00d8
SCP_TIMEOUT
0x00db
EUSERMAX
0x00e1
SCP_EINTR
0x00e2
Job aborted
SCP_NO_WIN_SERV
0x00e9
EPROTECT
0x00ea
SCP_DB_FILE_DOES_NOT_EXIS
T
0x00f0
SCP_DB_FILE_CLOSE_NOT_OK
0x00f1
SCP_SEND_NOT_SUCCESSFUL
0x00f2
SCP_Send failed
SCP_RECEIVE_NOT_SUCCESSF 0x00f3
UL
SCP_Receive failed
SCP_NO_DEVICE_AVAILABLE
0x00f4
No device available
SCP_ILLEGAL_SUBSYSTEM
0x00f5
SCP_ILLEGAL_OPCODE
0x00f6
SCP_buffer_TOO_SHORT
0x00f7
SCP_buffer_1_TOO_SHORT
0x00f8
SCP_ILLEGAL_PROTOCOL_SEQ 0x00f9
UENCE
SCP_ILLEGAL_PDU_ARRIVED
0x00fa
426
FAQs
A.7 Programming instructions for the C interfaces
Error code
SCP_REQUEST_ERROR
0x00fb
Request failed
SCP_NO_LICENSE
0x00fc
E_INIT_COM
0x0301
E_NO_HW
0x0310
E_HW_DEFEKT
0x0311
E_CNF
0x0312
E_BAUDRATE
0x0313
E_HSA
0x0314
E_TS
0x0315
E_OCC
0x0316
E_INT_NOT_PROV
0x0317
E_INT_BUSY
0x0318
E_SAP
0x0319
E_UNPLUGGED
0x031a
E_SYNI
0x031b
E_AMPRO
0x031c
Internal error
E_NO_FILE
0x0320
E_NO_ENTRY
0x0321
E_VERSION
0x0330
E_NO_SMC
0x0332
E_ONLINE
0x0380
Internal error
E_LOGDEV
0x0381
E_L2DRIVER
0x0382
427
FAQs
A.7 Programming instructions for the C interfaces
Error code
E_L4DRIVER
0x0384
E_SYSERROR
0x03FF
428
/1/
/2/
/3/
/4/
/5/
/6/
429
/7/
/8/
/9/
/10/
/11/
TCP/IP
Internet-Protokolle im professionellen Einsatz
Mathias Hein
International Thomson Publishing
ISBN 3-8266-400-4
/12/
/13/
RFC793 (TCP)
/14/
RFC791 (IP)
/15/
/16/
/17/
430
/18/
/19/
/20/
Order numbers
The order numbers for the SIEMENS documentation listed above can be found in the
catalogs "SIMATIC NET Industrial Communication, Catalog IK PI" and "SIMATIC
Programmable Logic Controllers SIMATIC S7 / M7 / C7, Catalog ST70".
You can order these catalogs and obtain further information from your local SIEMENS
office or national head office.
Some of the documents listed here are also on the Manual Collection CD supplied with
every CP and with the SIMATIC NET CD.
431
432
Glossary
Access point
The access point is a symbolic name with which the user program can access the assigned
communication interface / module.
OPC
OLE for Process Control - industrial standard allowing vendorindependent access to
industrial communication networks, defined on the basis of OLE.
The OPC interface was designed as an industrial standard by leading companies in the
automation industry with support from Microsoft Corporation. Previously, user programs that
access process data were restricted to the access techniques of the communication
networks of one manufacturer. The standardized OPC software interface now provides the
user wanting to use specific operator control and monitoring software with the option of
uniform access to communication networks of any vendor via the OPC interface.
PC station
In this context, a PC station means a PC with communications modules and applications.
The role of this PC might be, for example, to communicate with SIMATIC S7 devices and
perform process control tasks. This PC, which is equipped with runtime software, is also
referred to as a "runtime station".
The PC station is configured in SIMATIC NCM PC / STEP 7 for communication with
SIMATIC S7 devices.
The required runtime software is available on the PC station after installing APC (Advanced
PC Configuration).
PROFINET
Within the framework of Totally Integrated Automation (TIA), PROFINET represents a
consequent enhancement of:
PROFIBUS DP, the established fieldbus.
Industrial Ethernet, the communications bus for the cell level.
Experience gained from both systems was and is being integrated into PROFINET.
Commissioning PC Stations - Manual and Quick Start
Configuration Manual, Release 06/2011, C79000-G8976-C156-14
433
Glossary
PROFINET IO
Heterogeneous communication and engineering model for realtime communication between
PROFINET components. PROFINET IO, for example, provides protocol elements for cyclic
transfer of productive data.
SIMATIC NCM PC
SIMATIC NCM PC allows project engineering of SIMATIC NET PC components that is
compatible with STEP 7 and serves as a substitute for the previous PC project engineering
tools COML S7 and COM PROFIBUS PC Edition. A common database with STEP 7 ensures
integrated project engineering including all protocols.
Station Manager
With the Station Manager, you can configure a PC in much the same way as an S7 station
and download the configuration data over the network. The Station Manager is the basic
component for project engineering and runtime of OPC applications.
STEP 7 project
A STEP 7 project is created with SIMATIC NCM PC or with STEP 7/NCM. It contains the
project and project engineering data that can be downloaded to S7 stations and PC stations.
434
Index
A
Access points, 303
Configuration of, 51
Advanced PC Configuration, 11
SIMATIC NCM PC, 16
Diagnostics
Configuration Console, 307
Download, 14, 233, 252
Downloading project engineering data
Online mode - networked, 233, 253
XDB import, 204
DP master system, 218, 244
E
C
Characteristics, 11
Compatibility
SIMATIC NCM PC and STEP 7, 211
Configuration
DP master system, 218, 244
PROFINET IO system, 221, 246
Configuration Console, 271
Configuration Console, 16
Configuration Console, 16
Diagnostics, 307
Configuration tool STEP 7 Professional, 237
Configured mode, 17
Commissioning, 20
Getting started, 23
Configuring connections
Procedure, 224, 249
Connection type
FDL, 58
ISO transport, 60
ISO-on-TCP, 60
S7, 58
CP 1613, 300, 308
CP 1616
Controller, 64
Device, 65
Initializing, 66
Installing Linux drivers, 90
PROFINET IO test program, 91
Router, 73
D
Databases
LDB, 12
DCOM, 330
DCOM settings, 16
Engineering station, 11
I
Index, 15
Industrial Ethernet communication with OPC
Hardware installation, 100
OPC Scout, 109
Software installation, 100
Information service, 16, 286
Initial configuration, 29, 201
Remote configuration, 209, 238
With an XDB file, 20, 21, 34
with XDB file, 209, 238
Without an XDB file, 21, 37
Installation and commissioning
Guide to, 17
Installing hardware (PC modules), 23
Installing SIMATIC NET PC software, 23
Interface for open communication
(SEND/RECEIVE), 58, 60
M
Master, 218, 245
Mode of a module, 298
N
Name space prefix
Changing, 265
Deleting, 265
NCM PC and STEP 7, 211
NetPro, 208
435
Index
O
Offline mode, 205, 236, 255
Online mode, 205
OPC Scout, 16, 312
OPC server, 14
Connection properties, 57
Errors when connecting with, 48
Project engineering, 53
Properties, 55
P
Partial loading, 207
PC station
Configuring as DP slave, 226, 250
Creating, 212, 239
PC stations
In SIMATIC, 13
PG mode, 17
Commissioning, 19
Configuration, 40, 43
Getting started, 39
Process variables, 49
PROFIBUS communication with OPC
DP master, 123
DP slave, 124
Hardware installation, 118
OPC Scout, 126
Software installation, 118
PROFIBUS DP slave, 304
PROFINET IO controller, 221, 246
PROFINET IO system, 221, 246
Project engineering, 14, 24
T
Tools, 16, 207
Help, 210
V
Variables
Errors when adding, 49
X
XDB file, 209, 238
XDB import, 14
R
Remote configuration, 199, 209, 238
RFC 1006, 41, 46
S
Setting up the CP 1616, 64
SIMATIC NCM PC Config, 208
SIMATIC NCM PC Manager, 208
SIMATIC NCM PC project engineering tool, 207
SIMATIC NET, 11
SIMATIC Shell, 30
SIMOTION, 49
Slave, 218, 245
SNMP, 62
436