FAQ 07/2015
Connecting a PC Station to
an S7-1200 using OPC
TIA Portal
https://support.industry.siemens.com/cs/ww/en/view/39960679
Security
informa-
tion
This entry is from the Siemens Industry Online Support. The general terms of use
(http://www.siemens.com/terms_of_use) apply.
Siemens provides products and solutions with industrial security functions that
support the secure operation of plants, solutions, machines, equipment and/or
networks. They are important components in a holistic industrial security
concept. With this in mind, Siemens’ products and solutions undergo continuous
development. Siemens recommends strongly that you regularly check for
product updates.
For the secure operation of Siemens products and solutions, it is necessary to
take suitable preventive action (e.g. cell protection concept) and integrate each
component into a holistic, state-of-the-art industrial security concept. Third-party
products that may be in use should also be considered. For more information
about industrial security, visit http://www.siemens.com/industrialsecurity.
To stay informed about product updates as they occur, sign up for a product-
specific newsletter. For more information, visit
http://support.automation.siemens.com.
d
e
v
r
e
s
e
r
s
t
h
g
i
r
l
l
A
5
1
0
2
G
A
s
n
e
m
e
S
i
Connectiong a PC Station to an S7-1200 using OPC
Entry-ID: 39960679, V1.2, 07/2015
2
Contents
1
2
3
d
e
v
r
e
s
e
r
s
t
h
g
i
r
l
l
A
5
1
0
2
G
A
s
n
e
m
e
S
i
2.4
Introduction ........................................................................................................ 4
Procedure for S7-1200 up to firmware V3 ....................................................... 5
Configuration of the S7-1200 ............................................................... 7
2.1
Configuring the Hardware .................................................................... 7
2.1.1
Creating a User Program ................................................................... 10
2.1.2
2.2
Configuring the PC Station ................................................................. 13
Configuring the S7 Connection .......................................................... 20
2.3
Adding the S7 Connection.................................................................. 20
2.3.1
Displaying and Changing Properties of the S7 Connection in the
2.3.2
Inspector Window ............................................................................... 21
Compiling and Downloading the Configuration and User
Program of the S7-1200 ..................................................................... 22
Compiling and Downloading the PC Station Configuration ................ 25
2.5
OPC Scout V10 .................................................................................. 31
2.6
Procedure for S7-1200 V4 and Higher ........................................................... 35
Configuration of the S7-1200 ............................................................. 37
3.1
Configure the Hardware ..................................................................... 37
3.1.1
3.1.2
Create a User Program ...................................................................... 42
Configuration of the PC Station .......................................................... 46
3.2
Configure the S7 Connection ............................................................. 55
3.3
Add the S7 Connection ...................................................................... 55
3.3.1
3.3.2
Display and Change Properties of the S7 Connection in the
Inspector Window ............................................................................... 56
Compile and Download the Configuration and User Program of
the S7-1200 ........................................................................................ 59
Compile and Download the PC Station Configuration ....................... 63
OPC Scout V10 .................................................................................. 68
Establish Connection to the OPC Server ........................................... 68
Symbolic Access ................................................................................ 68
3.5
3.6
3.6.1
3.6.2
3.4
Connectiong a PC Station to an S7-1200 using OPC
Entry-ID: 39960679, V1.2, 07/2015
3
1 Introduction
1
Introduction
This entry shows you how to configure an S7-1200, a PC station and an S7
connection in the TIA Portal so that you can exchange data between the stations
over Industrial Ethernet.
Note
In the TIA Portal you need STEP 7 Professional, because with STEP 7 Basic you
cannot configure a PC station, but only the SIMATIC S7-1200.
d
e
v
r
e
s
e
r
s
t
h
g
i
r
l
l
A
5
1
0
2
G
A
s
n
e
m
e
S
i
Connectiong a PC Station to an S7-1200 using OPC
Entry-ID: 39960679, V1.2, 07/2015
4
2 Procedure for S7-1200 up to firmware V3
2
Procedure for S7-1200 up to firmware V3
This chapter shows:
How you configure an SIMATIC S7-1200 and a PC station in TIA Portal
How you project an S7 connection for data exchange between SIMATIC
S7-1200 and PC station
Creating a Project
In Windows, select the command "Start > All Programs > Siemens Automation
> TIA Portal V12" to start the TIA Portal.
In the Portal view, select the "Create new project" action.
Enter the project name in the appropriate field.
Figure 2-1
d
e
v
r
e
s
e
r
s
t
h
g
i
r
l
l
A
5
1
0
2
G
A
s
n
e
m
e
S
i
Click the "Create" button to create a new project.
Figure 2-2
Connectiong a PC Station to an S7-1200 using OPC
Entry-ID: 39960679, V1.2, 07/2015
5
2 Procedure for S7-1200 up to firmware V3
Switch to Project View
Use the "Project View" link to switch to the Project View.
Figure 2-3
d
e
v
r
e
s
e
r
s
t
h
g
i
r
l
l
A
5
1
0
2
G
A
s
n
e
m
e
S
i
Connectiong a PC Station to an S7-1200 using OPC
Entry-ID: 39960679, V1.2, 07/2015
6
2 Procedure for S7-1200 up to firmware V3
2.1
Configuration of the S7-1200
You configure your S7-1200 station in the TIA Portal. Then you create the user
program and define which data is to be monitored over the S7 connection of the
OPC server.
2.1.1
Configuring the Hardware
Add an S7-1200 Station
In the project tree, double-click the "Add new device" item. The "Add new device"
dialog opens.
Figure 2-4
d
e
v
r
e
s
e
r
s
t
h
g
i
r
l
l
A
5
1
0
2
G
A
s
n
e
m
e
S
i
Click the "Controllers" button in the working area. Go to "Controllers >
SIMATIC S7-1200 > CPU" and select the required controller. Click the "OK" button
to add the selected S7-1200 CPU to your project.
Connectiong a PC Station to an S7-1200 using OPC
Entry-ID: 39960679, V1.2, 07/2015
7
2 Procedure for S7-1200 up to firmware V3
Figure 2-5
d
e
v
r
e
s
e
r
s
t
h
g
i
r
l
l
A
5
1
0
2
G
A
s
n
e
m
e
S
i
Define IP address and assign subnet
In the project tree, double-click the "Devices & networks" item. The devices and
networks editor opens.
Connectiong a PC Station to an S7-1200 using OPC
Entry-ID: 39960679, V1.2, 07/2015
8