SlideShare ist ein Scribd-Unternehmen logo
1 von 35
Downloaden Sie, um offline zu lesen
Table of Contents
S7 communication between PC station and S7-1200
V1.1, Item ID: 39960679 3
Table of Contents
1 Introduction........................................................................................................ 4
2 Configuration of the S7-1200............................................................................ 6
2.1 Configuring Hardware .......................................................................... 6
2.2 Creating a User Program ..................................................................... 8
3 PC Station Configuration................................................................................ 13
4 Configuring the S7 Connection...................................................................... 18
4.1 Add S7 Connection ............................................................................ 18
4.2 Display and Change Properties of the S7 Connection in the
Inspector Window............................................................................... 19
5 Compiling and Downloading the Configuration and User Program of
the S7-1200....................................................................................................... 23
6 Compiling and Downloading the PC Station Configuration........................ 28
7 OPC Scout V10................................................................................................. 34
http://eyeteck.vn
1 Introduction
4
S7 communication between PC station and S7-1200
V1.1, Entry ID: 39960679
1 Introduction
This entry shows you how to configure an S7-1200, a PC station and an S7
connection in STEP 7 (TIA Portal) V11 so that you can exchange data between the
stations over Industrial Ethernet.
Create project
In Windows, select the command "Start  Programs  Siemens Automation 
TIA Portal V11" to start STEP 7 (TIA Portal) V11.
In the Portal view, select the "Create new project" action.
Enter the project name in the appropriate field.
Figure 1-1
Click the "Create" button to create a new project.
Figure 1-2
Switch to Project View
Use the "Project View" link to switch to the Project View.
http://eyeteck.vn
1 Introduction
S7 communication between PC station and S7-1200
V1.1, Item ID: 39960679 5
Figure 1-3
http://eyeteck.vn
2 Configuration of the S7-1200
6
S7 communication between PC station and S7-1200
V1.1, Entry ID: 39960679
2 Configuration of the S7-1200
Configure your S7-1200 in STEP 7 (TIA Portal) V11. Then create the user program
and define which data is to be monitored over the S7 connection of the OPC
server.
2.1 Configuring 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-1
Click the "PLC" button in the working area. Go to "PLC  SIMATIC S7-1200 
CPU" and select the required controller. Click the "OK" button to add the selected
S7-1200 CPU to your project.
http://eyeteck.vn
2 Configuration of the S7-1200
S7 communication between PC station and S7-1200
V1.1, Item ID: 39960679 7
Figure 2-2
Add IP address and assign subnet
In the project tree, double-click the "Devices & networks" item. This opens the
"Network View" working area of the hardware and network editor.
Click the PROFINET interface of the S7-1200 CPU.
In the inspector window you switch to the "Properties" tab. Click the "Ethernet
addresses" item in the area navigation.
In this example you enter the IP address 172.16.43.20 and the subnet mask
255.255.0.0 for the PROFINET interface of the S7-1200 CPU.
Then assign a subnet to the PROFINET interface. Click the "Add new subnet"
button to insert a new subnet.
The connection between the subnet, PN/IE_1, for example, and the S7-1200 is
now displayed in the "Net View" working area of the hardware and network editor.
http://eyeteck.vn
2 Configuration of the S7-1200
8
S7 communication between PC station and S7-1200
V1.1, Entry ID: 39960679
Figure 2-3
2.2 Creating a User Program
Add data block
In the project tree, navigate to the device folder of the S7-1200 CPU,
"PLC_1 [CPU 1212C 
]", for example. The device folder contains structured
objects and actions that belong to the device.
In the device folder you navigate to the "Program blocks" subfolder and double-
click the "Add new block" action. The "Add new block" dialog opens.
http://eyeteck.vn
2 Configuration of the S7-1200
S7 communication between PC station and S7-1200
V1.1, Item ID: 39960679 9
Figure 2-4
Click the "DB Data block" button. Enter the name of the data block and enable the
"Manual" option to assign the number of the data block manually. If you enable the
"Automatic" option, the number of the data block is assigned automatically.
Select the "Standard - compatible with S7-300/400" option for block access.
Data blocks with standard access have a fixed structure. The data elements in the
declaration include both symbolic names and a fixed address in the block. The
address is displayed in the "Offset" column. You can address the tags in this block
both symbolically and absolutely.
Apply the settings with "OK".
The data block DB1 "Data block 1" is used in this example.
http://eyeteck.vn
2 Configuration of the S7-1200
10
S7 communication between PC station and S7-1200
V1.1, Entry ID: 39960679
Figure 2-5
Define static tag in the data block
Define the static tag "static_01" of the "Bool" data type in the DB1 "Data block 1".
Click the "Compile" button.
http://eyeteck.vn
2 Configuration of the S7-1200
S7 communication between PC station and S7-1200
V1.1, Item ID: 39960679 11
Figure 2-6
Create Main [OB1]
In the "Program blocks" folder, you double-click the "Main [OB1]" block to open the
corresponding dialog window.
Figure 2-7
Create the program as shown in Fehler! Verweisquelle konnte nicht gefunden
werden.. The bit links are in the "Instructions" task card under "Basic instructions"
 Bit links".
Use drag-and-drop to add the Normally open contact, the flip-flop and the
Assignment to Network 1 of the "Main [OB1]" block.
Assign the tags below to the flip-flop, to the normally open contact at inputs S and
R of the flip-flop and to the assignment at output Q of the flip-flop.
Table 2-1
Tag Description
M1.0 SR flip-flop input S: NO contact
M1.1 SR flip-flop input R: NO contact
DB1.DBX0.0 SR tag
M2.0 SR flip-flop output Q: Assignment
http://eyeteck.vn
2 Configuration of the S7-1200
12
S7 communication between PC station and S7-1200
V1.1, Entry ID: 39960679
Click the "Compile" button.
Figure 2-8
Notes The "%" character before the absolute address is added automatically by STEP
7 (TIA Portal) V11.
http://eyeteck.vn
3 PC Station Configuration
S7 communication between PC station and S7-1200
V1.1, Item ID: 39960679 13
3 PC Station Configuration
Before you start configuring the PC station in STEP 7 (TIA Portal) V11, determine
or change the IP address of the network card that you are using in your PC station.
You enter the IP address and subnet mask of the network card when you configure
the PC station in STEP 7 (TIA Portal) V11.
Determine and change the IP address and subnet mask of the network card
In Windows, under Network Connections, you open the Properties dialog of the
Local Area Network (LAN).
In this example the network card receives the IP address 172-16.40.11 and subnet
mask 255.255.0.0.
Notes The IP address configured for the PC station in STEP 7 (TIA Portal) V11 must
match the IP address set in Windows. If you are not using a router, the IP
addresses of the PC station and the S7-1200 CPU must be in the same subnet.
Figure 3-1
http://eyeteck.vn
3 PC Station Configuration
14
S7 communication between PC station and S7-1200
V1.1, Entry ID: 39960679
Add a PC Station
In STEP 7 (TIA Portal) V11 you open the project that contains the configuration for
the S7-1200 station.
In the project tree, double-click the "Add new device" item. The "Add new device"
dialog opens.
Figure 3-2
Click the "PC systems" button in the working area. Go to "PC systems  PC
general" and select the "PC station" item.
Click the "OK" button to add a PC station named "PC-System_1" to your project.
http://eyeteck.vn
3 PC Station Configuration
S7 communication between PC station and S7-1200
V1.1, Item ID: 39960679 15
Figure 3-3
This opens the "Device View" working area of the hardware and network editor.
In the project tree, navigate to the device folder of the PC station,
"PC-System_1 [SIMATIC PC station]", for example. The device folder contains
structured objects and actions that belong to the device.
In the device folder double-click the "Device configuration" object to open the
"Device View" working area of the hardware and network editor.
http://eyeteck.vn
3 PC Station Configuration
16
S7 communication between PC station and S7-1200
V1.1, Entry ID: 39960679
Figure 3-4
Configure user application and communication module of the PC station
Go to the "Device View" working area of the hardware and network editor and
configure and parameterize the modules of the PC station.
The "Hardware catalog" task card contains the user applications and
communication modules that you can configure in the PC station. Using drag-and-
drop add the "OPC server" user application to Slot 1 and the "IE general"
communication module to Slot 2 of the PC station.
Figure 3-5
http://eyeteck.vn
3 PC Station Configuration
S7 communication between PC station and S7-1200
V1.1, Item ID: 39960679 17
Add IP address and assign subnet
In the project tree, double-click the "Devices & networks" item. This opens the
"Network View" working area of the hardware and device editor.
Click the PROFINET interface of the network card in the PC station.
In the inspector window you switch to the "Properties" tab. In the area navigation
select the "Ethernet addresses" item.
In this example you enter the IP address 172.16.40.11 and subnet mask
255.255.0.0 for the network card.
Select the subnet that you have already assigned to the S7-1200 CPU and assign
it also to the network card of the PC station.
The connection between the subnet, PN/IE_1, for example, and the S7-1200 and
the PC station is now displayed in the "Net View" working area of the hardware and
device editor.
Notes The IP address configured for the PC station in STEP 7 (TIA Portal) V11 must
match the IP address set in Windows. If you are not using a router, the IP
addresses of the PC station and the S7-1200 CPU must be in the same subnet.
Figure 3-6
http://eyeteck.vn
4 Configuring the S7 Connection
18
S7 communication between PC station and S7-1200
V1.1, Entry ID: 39960679
4 Configuring the S7 Connection
4.1 Add S7 Connection
In the project tree, double-click the "Devices & networks" item. This opens the
"Network View" working area of the hardware and network editor.
In the toolbar of the Net View, click the "Connections" icon to switch to the mode
for setting the connections.
In the drop-down list box you select "S7 connection" as connection type.
Figure 4-1
In the graphical area of the Net View, click the OPC server in the PC station and
connect it to the S7-1200 CPU.
In the Net View, the S7 connection is displayed in the graphical area and in the
"Connections" table in the table area.
http://eyeteck.vn
4 Configuring the S7 Connection
S7 communication between PC station and S7-1200
V1.1, Item ID: 39960679 19
Figure 4-2
4.2 Display and Change Properties of the S7 Connection in
the Inspector Window
Proceed as described below to have the properties of the S7 connection displayed
in the inspector window.
‱ In the table area switch to the "Connections" table and select the configured S7
connection.
‱ In the inspector window you switch to the "Properties" tab.
General properties
In the area navigation select the "General" item to display the connection path.
The S7 connection is between the OPC server and the S7-1200 CPU.
http://eyeteck.vn
4 Configuring the S7 Connection
20
S7 communication between PC station and S7-1200
V1.1, Entry ID: 39960679
Figure 4-3
In the area navigation select the "Special connection properties" item.
Here you see a display of the special connection properties of the local end point,
"Active connection establishment", for example.
In this example, the OPC server establishes the S7 connection. The
communication partner, S7-1200 CPU, is participates passively in establishing the
connection.
http://eyeteck.vn
4 Configuring the S7 Connection
S7 communication between PC station and S7-1200
V1.1, Item ID: 39960679 21
Figure 4-4
In the area navigation select the "Address details" item.
Here you have a display of the local end point, the partner end point and the TSAP
of both end points.
http://eyeteck.vn
4 Configuring the S7 Connection
22
S7 communication between PC station and S7-1200
V1.1, Entry ID: 39960679
Figure 4-5
http://eyeteck.vn
5 Compiling and Downloading the Configuration and User Program of the S7-1200
S7 communication between PC station and S7-1200
V1.1, Item ID: 39960679 23
5 Compiling and Downloading the
Configuration and User Program of the S7-
1200
Compile
To compile the configuration and user program of the S7-1200 you right-click the
device folder of the S7-1200 CPU in the project navigation. There you select
"Compile  All".
http://eyeteck.vn
5 Compiling and Downloading the Configuration and User Program of the S7-1200
24
S7 communication between PC station and S7-1200
V1.1, Entry ID: 39960679
Figure 5-1
Download
To download the configuration and user program of the S7-1200 you right-click the
device folder of the S7-1200 CPU in the project navigation. There you select
"Download to device  All".
http://eyeteck.vn
5 Compiling and Downloading the Configuration and User Program of the S7-1200
S7 communication between PC station and S7-1200
V1.1, Item ID: 39960679 25
Figure 5-2
The "Extended download to device" dialog opens. Check the settings below:
‱ PG/PC interface type
‱ PG/PC interface
‱ Connection with the subnet
Under "Accessible devices in subnet" you select the relevant device and click the
"Load" button.
http://eyeteck.vn
5 Compiling and Downloading the Configuration and User Program of the S7-1200
26
S7 communication between PC station and S7-1200
V1.1, Entry ID: 39960679
Figure 5-3
Notes If the project has already been loaded once into the S7-1200 CPU, the "Load
preview" dialog is opened immediately instead of the "Extended download to
device" dialog.
The "Load preview" dialog opens. Click the "Load" button.
http://eyeteck.vn
5 Compiling and Downloading the Configuration and User Program of the S7-1200
S7 communication between PC station and S7-1200
V1.1, Item ID: 39960679 27
Figure 5-4
The dialog box containing the results of the download procedure opens. If the S7-
1200 is in "STOP" mode for the download procedure, check the "Start all" check
box. Click the "Finish" button. The status LED of the S7-1200 CPU indicates the
"RUN" mode after downloading.
Figure 5-5
http://eyeteck.vn
6 Compiling and Downloading the PC Station Configuration
28
S7 communication between PC station and S7-1200
V1.1, Entry ID: 39960679
6 Compiling and Downloading the PC
Station Configuration
Open the Station Configuration Editor
Open the Component Configuration Editor with the icon in the Windows taskbar.
Figure 6-1
Insert the modules, namely the OPC server and the network card, in the
Component Configuration Editor in accordance with the hardware configuration.
In this example you add the OPC server to Slot 1 and the network card to Slot 2.
Then change the station name in the Component Configuration Editor. The name
of the PC station must be identical in STEP 7 (TIA Portal) V11 and in the
Component Configuration Editor.
The station name "PC-System_1" is used in this example.
http://eyeteck.vn
6 Compiling and Downloading the PC Station Configuration
S7 communication between PC station and S7-1200
V1.1, Item ID: 39960679 29
Figure 6-2
http://eyeteck.vn
6 Compiling and Downloading the PC Station Configuration
30
S7 communication between PC station and S7-1200
V1.1, Entry ID: 39960679
Compile
To compile the configuration of the PC station you right-click the device folder of
the PC station in the project navigation. There you select "Compile  All".
Figure 6-3
Download
To download the configuration of the PC station you right-click the device folder of
the PC station in the project navigation. There you select "Download to device 
All".
http://eyeteck.vn
6 Compiling and Downloading the PC Station Configuration
S7 communication between PC station and S7-1200
V1.1, Item ID: 39960679 31
Figure 6-4
The "Extended download to device" dialog opens. Check the settings below:
‱ PG/PC interface type
‱ PG/PC interface
‱ Connection with the subnet
Under "Accessible devices in subnet" you select the relevant device and click the
"Load" button.
http://eyeteck.vn
6 Compiling and Downloading the PC Station Configuration
32
S7 communication between PC station and S7-1200
V1.1, Entry ID: 39960679
Figure 6-5
Notes If the project has already been loaded once into the S7-1200 CPU, the "Load
preview" dialog is opened immediately instead of the "Extended download to
device" dialog.
The "Load preview" dialog opens. Click the "Load" button.
http://eyeteck.vn
6 Compiling and Downloading the PC Station Configuration
S7 communication between PC station and S7-1200
V1.1, Item ID: 39960679 33
Figure 6-6
Commissioning of the PC station is completed after downloading of the
configuration.
http://eyeteck.vn
7 OPC Scout V10
34
S7 communication between PC station and S7-1200
V1.1, Entry ID: 39960679
7 OPC Scout V10
In this example the OPC Scout V10 is used as OPC client. Using the OPC client
you can access the data of the S7-1200 CPU over the OPC server.
Start the OPC Scout V10 by means of the menu "Start  SIMATIC  SIMATIC
NET  OPC Scout V10".
Establish connection to the OPC server
In the Server Explorer you double-click the "OPC.SimaticNET" item to establish a
connection to the OPC server.
Figure 7-1
http://eyeteck.vn
7 OPC Scout V10
S7 communication between PC station and S7-1200
V1.1, Item ID: 39960679 35
The configured S7 connection named "S7_Verbindung_1" is displayed in the
Server Explorer under OPC.SimaticNET in the "S7" folder.
Figure 7-2
http://eyeteck.vn
7 OPC Scout V10
36
S7 communication between PC station and S7-1200
V1.1, Entry ID: 39960679
Create OPC items
Add the items below to the DA view.
Table 7-1
S7:[S7_Verbindung_1]MX1.0 By means of the OPC item you monitor and control
the marker bit M1.0 in the S7-1200 CPU.
S7:[S7_Verbindung_1]MX1.1 By means of the OPC item you monitor and control
the marker bit M1.1 in the S7-1200 CPU.
S7:[S7_Verbindung_1]MX2.0 By means of the OPC item you monitor the marker
bit M2.0 in the S7-1200 CPU.
S7:[S7_Verbindung_1]DB1, X0.0 By means of the OPC item you monitor Bit 0.0 of
the DB1 data block in the S7-1200 CPU.
Figure 7-3
Monitor OPC items
Click the "Monitoring ON" button to monitor the values of the OPC items. The
values of the OPC items are displayed in the "Value" column.
Figure 7-4
http://eyeteck.vn
7 OPC Scout V10
S7 communication between PC station and S7-1200
V1.1, Item ID: 39960679 37
Write values
In the "New value" column you enter the value that you want to write to the S7-
1200.
Enter the values below in the "New value" column (see Table 7-2). Click the "Write"
button. The marker bit M2.0 and Bit 0 in DB1 are given the value "True".
The results of the write procedure are displayed in the "Value" column.
Table 7-2
OPC item New value
S7:[S7_Verbindung_1]MX1.0 True
S7:[S7_Verbindung_1]MX1.1 False
Figure 7-5
Enter the values below in the "New value" column (see Table 7-3). Click the "Write"
button. The marker bit M2.0 and Bit 0 in DB1 are reset to the value "False".
The results of the write procedure are displayed in the "Value" column.
Table 7-3
OPC item New value
S7:[S7_Verbindung_1]MX1.0 False
S7:[S7_Verbindung_1]MX1.1 True
Figure 7-6
http://eyeteck.vn

Weitere Àhnliche Inhalte

Ähnlich wie Plc s7-1200-opc-to-pc-connection-guide

2.1.1.5 Packet Tracer - Create a Simple Network Using Packet Tracer (3).pdf
2.1.1.5 Packet Tracer - Create a Simple  Network Using Packet Tracer (3).pdf2.1.1.5 Packet Tracer - Create a Simple  Network Using Packet Tracer (3).pdf
2.1.1.5 Packet Tracer - Create a Simple Network Using Packet Tracer (3).pdfHaseebAli795005
 
06 station and network configuration v1.00_en
06 station and network configuration v1.00_en06 station and network configuration v1.00_en
06 station and network configuration v1.00_enconfidencial
 
Plc s7-300-special-communication1
Plc s7-300-special-communication1Plc s7-300-special-communication1
Plc s7-300-special-communication1BĂči Thể
 
procedure_to_config_OSS_over_IP (2).ppt
procedure_to_config_OSS_over_IP (2).pptprocedure_to_config_OSS_over_IP (2).ppt
procedure_to_config_OSS_over_IP (2).pptArbab Husain
 
Chapter 2_Architecture_edited_SDT
Chapter 2_Architecture_edited_SDTChapter 2_Architecture_edited_SDT
Chapter 2_Architecture_edited_SDTStephanie Stribling
 
Autoboss v30 manual
Autoboss v30 manualAutoboss v30 manual
Autoboss v30 manualBill Zhao
 
Manual del sistema del controlador programable S7-200 CPU21x
Manual del sistema del controlador programable S7-200 CPU21xManual del sistema del controlador programable S7-200 CPU21x
Manual del sistema del controlador programable S7-200 CPU21xSANTIAGO PABLO ALBERTO
 
Paxton Access 477-901-US Instruction Manual
Paxton Access 477-901-US Instruction ManualPaxton Access 477-901-US Instruction Manual
Paxton Access 477-901-US Instruction ManualJMAC Supply
 
ICT AIM project Energy Management Device Keletron
ICT AIM project Energy Management Device KeletronICT AIM project Energy Management Device Keletron
ICT AIM project Energy Management Device KeletronYiannis Hatzopoulos
 
61883659_WinCC_RuntimeAdv_access_SQL_via_script_DOCU_en (1).pdf
61883659_WinCC_RuntimeAdv_access_SQL_via_script_DOCU_en (1).pdf61883659_WinCC_RuntimeAdv_access_SQL_via_script_DOCU_en (1).pdf
61883659_WinCC_RuntimeAdv_access_SQL_via_script_DOCU_en (1).pdfmohamedhayballa1
 
Ae13 system komm_hb
Ae13 system komm_hbAe13 system komm_hb
Ae13 system komm_hbconfidencial
 
User Guide
User GuideUser Guide
User Guideglbarker
 
Kotra Pavan Kumar(es)
Kotra Pavan Kumar(es)Kotra Pavan Kumar(es)
Kotra Pavan Kumar(es)Pavan Kumar
 
Rodrigo Almeida - Microkernel development from project to implementation
Rodrigo Almeida - Microkernel development from project to implementationRodrigo Almeida - Microkernel development from project to implementation
Rodrigo Almeida - Microkernel development from project to implementationFelipe Prado
 
smartlock_final_report
smartlock_final_reportsmartlock_final_report
smartlock_final_reportElliot Barer
 
Cpu224 xp eth-ethernet_interface
Cpu224 xp eth-ethernet_interfaceCpu224 xp eth-ethernet_interface
Cpu224 xp eth-ethernet_interfacearco zhang
 
15 final steps of configuration v1.00_en
15 final steps of configuration v1.00_en15 final steps of configuration v1.00_en
15 final steps of configuration v1.00_enconfidencial
 

Ähnlich wie Plc s7-1200-opc-to-pc-connection-guide (20)

2.1.1.5 Packet Tracer - Create a Simple Network Using Packet Tracer (3).pdf
2.1.1.5 Packet Tracer - Create a Simple  Network Using Packet Tracer (3).pdf2.1.1.5 Packet Tracer - Create a Simple  Network Using Packet Tracer (3).pdf
2.1.1.5 Packet Tracer - Create a Simple Network Using Packet Tracer (3).pdf
 
06 station and network configuration v1.00_en
06 station and network configuration v1.00_en06 station and network configuration v1.00_en
06 station and network configuration v1.00_en
 
Plc s7-300-special-communication1
Plc s7-300-special-communication1Plc s7-300-special-communication1
Plc s7-300-special-communication1
 
Stone i tech
Stone i techStone i tech
Stone i tech
 
procedure_to_config_OSS_over_IP (2).ppt
procedure_to_config_OSS_over_IP (2).pptprocedure_to_config_OSS_over_IP (2).ppt
procedure_to_config_OSS_over_IP (2).ppt
 
Chapter 2_Architecture_edited_SDT
Chapter 2_Architecture_edited_SDTChapter 2_Architecture_edited_SDT
Chapter 2_Architecture_edited_SDT
 
Autoboss v30 manual
Autoboss v30 manualAutoboss v30 manual
Autoboss v30 manual
 
Manual del sistema del controlador programable S7-200 CPU21x
Manual del sistema del controlador programable S7-200 CPU21xManual del sistema del controlador programable S7-200 CPU21x
Manual del sistema del controlador programable S7-200 CPU21x
 
Paxton Access 477-901-US Instruction Manual
Paxton Access 477-901-US Instruction ManualPaxton Access 477-901-US Instruction Manual
Paxton Access 477-901-US Instruction Manual
 
ICT AIM project Energy Management Device Keletron
ICT AIM project Energy Management Device KeletronICT AIM project Energy Management Device Keletron
ICT AIM project Energy Management Device Keletron
 
61883659_WinCC_RuntimeAdv_access_SQL_via_script_DOCU_en (1).pdf
61883659_WinCC_RuntimeAdv_access_SQL_via_script_DOCU_en (1).pdf61883659_WinCC_RuntimeAdv_access_SQL_via_script_DOCU_en (1).pdf
61883659_WinCC_RuntimeAdv_access_SQL_via_script_DOCU_en (1).pdf
 
Ae13 system komm_hb
Ae13 system komm_hbAe13 system komm_hb
Ae13 system komm_hb
 
User Guide
User GuideUser Guide
User Guide
 
Kotra Pavan Kumar(es)
Kotra Pavan Kumar(es)Kotra Pavan Kumar(es)
Kotra Pavan Kumar(es)
 
Pavan(ES)
Pavan(ES)Pavan(ES)
Pavan(ES)
 
Rodrigo Almeida - Microkernel development from project to implementation
Rodrigo Almeida - Microkernel development from project to implementationRodrigo Almeida - Microkernel development from project to implementation
Rodrigo Almeida - Microkernel development from project to implementation
 
smartlock_final_report
smartlock_final_reportsmartlock_final_report
smartlock_final_report
 
Cpu224 xp eth-ethernet_interface
Cpu224 xp eth-ethernet_interfaceCpu224 xp eth-ethernet_interface
Cpu224 xp eth-ethernet_interface
 
15 final steps of configuration v1.00_en
15 final steps of configuration v1.00_en15 final steps of configuration v1.00_en
15 final steps of configuration v1.00_en
 
UDP Report
UDP ReportUDP Report
UDP Report
 

KĂŒrzlich hochgeladen

Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...apidays
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxKatpro Technologies
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfEnterprise Knowledge
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024Results
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUK Journal
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel AraĂșjo
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Enterprise Knowledge
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?Igalia
 

KĂŒrzlich hochgeladen (20)

Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 

Plc s7-1200-opc-to-pc-connection-guide

  • 1. Table of Contents S7 communication between PC station and S7-1200 V1.1, Item ID: 39960679 3 Table of Contents 1 Introduction........................................................................................................ 4 2 Configuration of the S7-1200............................................................................ 6 2.1 Configuring Hardware .......................................................................... 6 2.2 Creating a User Program ..................................................................... 8 3 PC Station Configuration................................................................................ 13 4 Configuring the S7 Connection...................................................................... 18 4.1 Add S7 Connection ............................................................................ 18 4.2 Display and Change Properties of the S7 Connection in the Inspector Window............................................................................... 19 5 Compiling and Downloading the Configuration and User Program of the S7-1200....................................................................................................... 23 6 Compiling and Downloading the PC Station Configuration........................ 28 7 OPC Scout V10................................................................................................. 34 http://eyeteck.vn
  • 2. 1 Introduction 4 S7 communication between PC station and S7-1200 V1.1, Entry ID: 39960679 1 Introduction This entry shows you how to configure an S7-1200, a PC station and an S7 connection in STEP 7 (TIA Portal) V11 so that you can exchange data between the stations over Industrial Ethernet. Create project In Windows, select the command "Start  Programs  Siemens Automation  TIA Portal V11" to start STEP 7 (TIA Portal) V11. In the Portal view, select the "Create new project" action. Enter the project name in the appropriate field. Figure 1-1 Click the "Create" button to create a new project. Figure 1-2 Switch to Project View Use the "Project View" link to switch to the Project View. http://eyeteck.vn
  • 3. 1 Introduction S7 communication between PC station and S7-1200 V1.1, Item ID: 39960679 5 Figure 1-3 http://eyeteck.vn
  • 4. 2 Configuration of the S7-1200 6 S7 communication between PC station and S7-1200 V1.1, Entry ID: 39960679 2 Configuration of the S7-1200 Configure your S7-1200 in STEP 7 (TIA Portal) V11. Then create the user program and define which data is to be monitored over the S7 connection of the OPC server. 2.1 Configuring 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-1 Click the "PLC" button in the working area. Go to "PLC  SIMATIC S7-1200  CPU" and select the required controller. Click the "OK" button to add the selected S7-1200 CPU to your project. http://eyeteck.vn
  • 5. 2 Configuration of the S7-1200 S7 communication between PC station and S7-1200 V1.1, Item ID: 39960679 7 Figure 2-2 Add IP address and assign subnet In the project tree, double-click the "Devices & networks" item. This opens the "Network View" working area of the hardware and network editor. Click the PROFINET interface of the S7-1200 CPU. In the inspector window you switch to the "Properties" tab. Click the "Ethernet addresses" item in the area navigation. In this example you enter the IP address 172.16.43.20 and the subnet mask 255.255.0.0 for the PROFINET interface of the S7-1200 CPU. Then assign a subnet to the PROFINET interface. Click the "Add new subnet" button to insert a new subnet. The connection between the subnet, PN/IE_1, for example, and the S7-1200 is now displayed in the "Net View" working area of the hardware and network editor. http://eyeteck.vn
  • 6. 2 Configuration of the S7-1200 8 S7 communication between PC station and S7-1200 V1.1, Entry ID: 39960679 Figure 2-3 2.2 Creating a User Program Add data block In the project tree, navigate to the device folder of the S7-1200 CPU, "PLC_1 [CPU 1212C 
]", for example. The device folder contains structured objects and actions that belong to the device. In the device folder you navigate to the "Program blocks" subfolder and double- click the "Add new block" action. The "Add new block" dialog opens. http://eyeteck.vn
  • 7. 2 Configuration of the S7-1200 S7 communication between PC station and S7-1200 V1.1, Item ID: 39960679 9 Figure 2-4 Click the "DB Data block" button. Enter the name of the data block and enable the "Manual" option to assign the number of the data block manually. If you enable the "Automatic" option, the number of the data block is assigned automatically. Select the "Standard - compatible with S7-300/400" option for block access. Data blocks with standard access have a fixed structure. The data elements in the declaration include both symbolic names and a fixed address in the block. The address is displayed in the "Offset" column. You can address the tags in this block both symbolically and absolutely. Apply the settings with "OK". The data block DB1 "Data block 1" is used in this example. http://eyeteck.vn
  • 8. 2 Configuration of the S7-1200 10 S7 communication between PC station and S7-1200 V1.1, Entry ID: 39960679 Figure 2-5 Define static tag in the data block Define the static tag "static_01" of the "Bool" data type in the DB1 "Data block 1". Click the "Compile" button. http://eyeteck.vn
  • 9. 2 Configuration of the S7-1200 S7 communication between PC station and S7-1200 V1.1, Item ID: 39960679 11 Figure 2-6 Create Main [OB1] In the "Program blocks" folder, you double-click the "Main [OB1]" block to open the corresponding dialog window. Figure 2-7 Create the program as shown in Fehler! Verweisquelle konnte nicht gefunden werden.. The bit links are in the "Instructions" task card under "Basic instructions"  Bit links". Use drag-and-drop to add the Normally open contact, the flip-flop and the Assignment to Network 1 of the "Main [OB1]" block. Assign the tags below to the flip-flop, to the normally open contact at inputs S and R of the flip-flop and to the assignment at output Q of the flip-flop. Table 2-1 Tag Description M1.0 SR flip-flop input S: NO contact M1.1 SR flip-flop input R: NO contact DB1.DBX0.0 SR tag M2.0 SR flip-flop output Q: Assignment http://eyeteck.vn
  • 10. 2 Configuration of the S7-1200 12 S7 communication between PC station and S7-1200 V1.1, Entry ID: 39960679 Click the "Compile" button. Figure 2-8 Notes The "%" character before the absolute address is added automatically by STEP 7 (TIA Portal) V11. http://eyeteck.vn
  • 11. 3 PC Station Configuration S7 communication between PC station and S7-1200 V1.1, Item ID: 39960679 13 3 PC Station Configuration Before you start configuring the PC station in STEP 7 (TIA Portal) V11, determine or change the IP address of the network card that you are using in your PC station. You enter the IP address and subnet mask of the network card when you configure the PC station in STEP 7 (TIA Portal) V11. Determine and change the IP address and subnet mask of the network card In Windows, under Network Connections, you open the Properties dialog of the Local Area Network (LAN). In this example the network card receives the IP address 172-16.40.11 and subnet mask 255.255.0.0. Notes The IP address configured for the PC station in STEP 7 (TIA Portal) V11 must match the IP address set in Windows. If you are not using a router, the IP addresses of the PC station and the S7-1200 CPU must be in the same subnet. Figure 3-1 http://eyeteck.vn
  • 12. 3 PC Station Configuration 14 S7 communication between PC station and S7-1200 V1.1, Entry ID: 39960679 Add a PC Station In STEP 7 (TIA Portal) V11 you open the project that contains the configuration for the S7-1200 station. In the project tree, double-click the "Add new device" item. The "Add new device" dialog opens. Figure 3-2 Click the "PC systems" button in the working area. Go to "PC systems  PC general" and select the "PC station" item. Click the "OK" button to add a PC station named "PC-System_1" to your project. http://eyeteck.vn
  • 13. 3 PC Station Configuration S7 communication between PC station and S7-1200 V1.1, Item ID: 39960679 15 Figure 3-3 This opens the "Device View" working area of the hardware and network editor. In the project tree, navigate to the device folder of the PC station, "PC-System_1 [SIMATIC PC station]", for example. The device folder contains structured objects and actions that belong to the device. In the device folder double-click the "Device configuration" object to open the "Device View" working area of the hardware and network editor. http://eyeteck.vn
  • 14. 3 PC Station Configuration 16 S7 communication between PC station and S7-1200 V1.1, Entry ID: 39960679 Figure 3-4 Configure user application and communication module of the PC station Go to the "Device View" working area of the hardware and network editor and configure and parameterize the modules of the PC station. The "Hardware catalog" task card contains the user applications and communication modules that you can configure in the PC station. Using drag-and- drop add the "OPC server" user application to Slot 1 and the "IE general" communication module to Slot 2 of the PC station. Figure 3-5 http://eyeteck.vn
  • 15. 3 PC Station Configuration S7 communication between PC station and S7-1200 V1.1, Item ID: 39960679 17 Add IP address and assign subnet In the project tree, double-click the "Devices & networks" item. This opens the "Network View" working area of the hardware and device editor. Click the PROFINET interface of the network card in the PC station. In the inspector window you switch to the "Properties" tab. In the area navigation select the "Ethernet addresses" item. In this example you enter the IP address 172.16.40.11 and subnet mask 255.255.0.0 for the network card. Select the subnet that you have already assigned to the S7-1200 CPU and assign it also to the network card of the PC station. The connection between the subnet, PN/IE_1, for example, and the S7-1200 and the PC station is now displayed in the "Net View" working area of the hardware and device editor. Notes The IP address configured for the PC station in STEP 7 (TIA Portal) V11 must match the IP address set in Windows. If you are not using a router, the IP addresses of the PC station and the S7-1200 CPU must be in the same subnet. Figure 3-6 http://eyeteck.vn
  • 16. 4 Configuring the S7 Connection 18 S7 communication between PC station and S7-1200 V1.1, Entry ID: 39960679 4 Configuring the S7 Connection 4.1 Add S7 Connection In the project tree, double-click the "Devices & networks" item. This opens the "Network View" working area of the hardware and network editor. In the toolbar of the Net View, click the "Connections" icon to switch to the mode for setting the connections. In the drop-down list box you select "S7 connection" as connection type. Figure 4-1 In the graphical area of the Net View, click the OPC server in the PC station and connect it to the S7-1200 CPU. In the Net View, the S7 connection is displayed in the graphical area and in the "Connections" table in the table area. http://eyeteck.vn
  • 17. 4 Configuring the S7 Connection S7 communication between PC station and S7-1200 V1.1, Item ID: 39960679 19 Figure 4-2 4.2 Display and Change Properties of the S7 Connection in the Inspector Window Proceed as described below to have the properties of the S7 connection displayed in the inspector window. ‱ In the table area switch to the "Connections" table and select the configured S7 connection. ‱ In the inspector window you switch to the "Properties" tab. General properties In the area navigation select the "General" item to display the connection path. The S7 connection is between the OPC server and the S7-1200 CPU. http://eyeteck.vn
  • 18. 4 Configuring the S7 Connection 20 S7 communication between PC station and S7-1200 V1.1, Entry ID: 39960679 Figure 4-3 In the area navigation select the "Special connection properties" item. Here you see a display of the special connection properties of the local end point, "Active connection establishment", for example. In this example, the OPC server establishes the S7 connection. The communication partner, S7-1200 CPU, is participates passively in establishing the connection. http://eyeteck.vn
  • 19. 4 Configuring the S7 Connection S7 communication between PC station and S7-1200 V1.1, Item ID: 39960679 21 Figure 4-4 In the area navigation select the "Address details" item. Here you have a display of the local end point, the partner end point and the TSAP of both end points. http://eyeteck.vn
  • 20. 4 Configuring the S7 Connection 22 S7 communication between PC station and S7-1200 V1.1, Entry ID: 39960679 Figure 4-5 http://eyeteck.vn
  • 21. 5 Compiling and Downloading the Configuration and User Program of the S7-1200 S7 communication between PC station and S7-1200 V1.1, Item ID: 39960679 23 5 Compiling and Downloading the Configuration and User Program of the S7- 1200 Compile To compile the configuration and user program of the S7-1200 you right-click the device folder of the S7-1200 CPU in the project navigation. There you select "Compile  All". http://eyeteck.vn
  • 22. 5 Compiling and Downloading the Configuration and User Program of the S7-1200 24 S7 communication between PC station and S7-1200 V1.1, Entry ID: 39960679 Figure 5-1 Download To download the configuration and user program of the S7-1200 you right-click the device folder of the S7-1200 CPU in the project navigation. There you select "Download to device  All". http://eyeteck.vn
  • 23. 5 Compiling and Downloading the Configuration and User Program of the S7-1200 S7 communication between PC station and S7-1200 V1.1, Item ID: 39960679 25 Figure 5-2 The "Extended download to device" dialog opens. Check the settings below: ‱ PG/PC interface type ‱ PG/PC interface ‱ Connection with the subnet Under "Accessible devices in subnet" you select the relevant device and click the "Load" button. http://eyeteck.vn
  • 24. 5 Compiling and Downloading the Configuration and User Program of the S7-1200 26 S7 communication between PC station and S7-1200 V1.1, Entry ID: 39960679 Figure 5-3 Notes If the project has already been loaded once into the S7-1200 CPU, the "Load preview" dialog is opened immediately instead of the "Extended download to device" dialog. The "Load preview" dialog opens. Click the "Load" button. http://eyeteck.vn
  • 25. 5 Compiling and Downloading the Configuration and User Program of the S7-1200 S7 communication between PC station and S7-1200 V1.1, Item ID: 39960679 27 Figure 5-4 The dialog box containing the results of the download procedure opens. If the S7- 1200 is in "STOP" mode for the download procedure, check the "Start all" check box. Click the "Finish" button. The status LED of the S7-1200 CPU indicates the "RUN" mode after downloading. Figure 5-5 http://eyeteck.vn
  • 26. 6 Compiling and Downloading the PC Station Configuration 28 S7 communication between PC station and S7-1200 V1.1, Entry ID: 39960679 6 Compiling and Downloading the PC Station Configuration Open the Station Configuration Editor Open the Component Configuration Editor with the icon in the Windows taskbar. Figure 6-1 Insert the modules, namely the OPC server and the network card, in the Component Configuration Editor in accordance with the hardware configuration. In this example you add the OPC server to Slot 1 and the network card to Slot 2. Then change the station name in the Component Configuration Editor. The name of the PC station must be identical in STEP 7 (TIA Portal) V11 and in the Component Configuration Editor. The station name "PC-System_1" is used in this example. http://eyeteck.vn
  • 27. 6 Compiling and Downloading the PC Station Configuration S7 communication between PC station and S7-1200 V1.1, Item ID: 39960679 29 Figure 6-2 http://eyeteck.vn
  • 28. 6 Compiling and Downloading the PC Station Configuration 30 S7 communication between PC station and S7-1200 V1.1, Entry ID: 39960679 Compile To compile the configuration of the PC station you right-click the device folder of the PC station in the project navigation. There you select "Compile  All". Figure 6-3 Download To download the configuration of the PC station you right-click the device folder of the PC station in the project navigation. There you select "Download to device  All". http://eyeteck.vn
  • 29. 6 Compiling and Downloading the PC Station Configuration S7 communication between PC station and S7-1200 V1.1, Item ID: 39960679 31 Figure 6-4 The "Extended download to device" dialog opens. Check the settings below: ‱ PG/PC interface type ‱ PG/PC interface ‱ Connection with the subnet Under "Accessible devices in subnet" you select the relevant device and click the "Load" button. http://eyeteck.vn
  • 30. 6 Compiling and Downloading the PC Station Configuration 32 S7 communication between PC station and S7-1200 V1.1, Entry ID: 39960679 Figure 6-5 Notes If the project has already been loaded once into the S7-1200 CPU, the "Load preview" dialog is opened immediately instead of the "Extended download to device" dialog. The "Load preview" dialog opens. Click the "Load" button. http://eyeteck.vn
  • 31. 6 Compiling and Downloading the PC Station Configuration S7 communication between PC station and S7-1200 V1.1, Item ID: 39960679 33 Figure 6-6 Commissioning of the PC station is completed after downloading of the configuration. http://eyeteck.vn
  • 32. 7 OPC Scout V10 34 S7 communication between PC station and S7-1200 V1.1, Entry ID: 39960679 7 OPC Scout V10 In this example the OPC Scout V10 is used as OPC client. Using the OPC client you can access the data of the S7-1200 CPU over the OPC server. Start the OPC Scout V10 by means of the menu "Start  SIMATIC  SIMATIC NET  OPC Scout V10". Establish connection to the OPC server In the Server Explorer you double-click the "OPC.SimaticNET" item to establish a connection to the OPC server. Figure 7-1 http://eyeteck.vn
  • 33. 7 OPC Scout V10 S7 communication between PC station and S7-1200 V1.1, Item ID: 39960679 35 The configured S7 connection named "S7_Verbindung_1" is displayed in the Server Explorer under OPC.SimaticNET in the "S7" folder. Figure 7-2 http://eyeteck.vn
  • 34. 7 OPC Scout V10 36 S7 communication between PC station and S7-1200 V1.1, Entry ID: 39960679 Create OPC items Add the items below to the DA view. Table 7-1 S7:[S7_Verbindung_1]MX1.0 By means of the OPC item you monitor and control the marker bit M1.0 in the S7-1200 CPU. S7:[S7_Verbindung_1]MX1.1 By means of the OPC item you monitor and control the marker bit M1.1 in the S7-1200 CPU. S7:[S7_Verbindung_1]MX2.0 By means of the OPC item you monitor the marker bit M2.0 in the S7-1200 CPU. S7:[S7_Verbindung_1]DB1, X0.0 By means of the OPC item you monitor Bit 0.0 of the DB1 data block in the S7-1200 CPU. Figure 7-3 Monitor OPC items Click the "Monitoring ON" button to monitor the values of the OPC items. The values of the OPC items are displayed in the "Value" column. Figure 7-4 http://eyeteck.vn
  • 35. 7 OPC Scout V10 S7 communication between PC station and S7-1200 V1.1, Item ID: 39960679 37 Write values In the "New value" column you enter the value that you want to write to the S7- 1200. Enter the values below in the "New value" column (see Table 7-2). Click the "Write" button. The marker bit M2.0 and Bit 0 in DB1 are given the value "True". The results of the write procedure are displayed in the "Value" column. Table 7-2 OPC item New value S7:[S7_Verbindung_1]MX1.0 True S7:[S7_Verbindung_1]MX1.1 False Figure 7-5 Enter the values below in the "New value" column (see Table 7-3). Click the "Write" button. The marker bit M2.0 and Bit 0 in DB1 are reset to the value "False". The results of the write procedure are displayed in the "Value" column. Table 7-3 OPC item New value S7:[S7_Verbindung_1]MX1.0 False S7:[S7_Verbindung_1]MX1.1 True Figure 7-6 http://eyeteck.vn