Your position now:HOME >> Industry News
Industry News

About OPC communication

  Date:2017-09-23 22:30:18 Hits:499

problem:
How to use Ethernet to establish the connection between S7-200 and WinCC?
answer:
The following components are required:
PC with Ethernet card and SIMATIC NET CD 07/2001
STEP 7 - Micro / WIN 3.2 + SP1 or higher
WinCC V5.1 or higher
PC / PPI cable or a CP 5611/5511 with MPI cable
The following types of CPU 22x
- CPU 222 not less than 1.10 version
- CPU 224 not less than version 1.10
- CPU 226 not less than 1.00
- CPU 226XM 1.00 or later
CP 243-1 (6GK7 243-1-1EX00-0XE0)
Hub with network connection cable or direct connection cable
In order to establish a connection between the S7-200 and WinCCTo via Ethernet, proceed as follows:
1. STEP 7 - Micro / WIN
Configure the CP243-1 as a server
Open STEP 7 - Micro / WIN and configure the CP243-1 in "Tools> Ethernet-Assistant".
Create a program on the server CPU
Open the PG / PC interface and set it to PC internal (local)
2. Configure the PC station
Open SIMATIC NCM PC Manager or STEP 7 (depending on the installation program), create a new project and insert a PC station.
Insert an OPC server in slot 1.
Insert an IE_CP in slot 2.
Double-click IE_CP and open the properties.
Now type the IP address and subnet mask and confirm with "OK".
3. Establish a connection to the OPC server
Open NETPRO and insert a new connection.
Double-click the new connection, type "unspecified" as the connection partner, "S7 connection" as the connection and confirm with "Apply". .
In the next window "Properties S7 connection", type the partner IP address (CP243-1) and click address details. The company is located in:
Enter the connection resource "10" for the partner and confirm with "OK".
4. Set up the configuration console on the PC station
Go to "Start> Simatic> SIMATIC NET> Settings> Set PC Station" and select this menu.
In the next dialog "Modules" choose Ethernet card.
Select "General" and select "Configured Operation" with "Index 2" in "Operation Mode of Module". Please confirm with "Apply".
Open the Component Configurator and select "Add".
In "Type" and "Index" 1 and "Name", enter OPC-Server and confirm with OK. & amp; amp; lt;>
5. Transfer the configuration
Return to NETPRO and click PC Station
In the menu bar, select "Save and Transfer" and load the configuration with the "Loading the selected station" button.
6. Start OPC Scout


Start OPC Scout via "Start> Simatic> SIMATIC NET> Industrial Ethernet> SOFTNET Industrial Ethernet> OPC Scout".
Double-click OPC.Simatic NET, set a new group name (CP243-1) and confirm with "OK".
Double-click the new group and in "connections> S7> objects", select the appropriate project.
Click New Definition and select Data Type, Address and Number of Values ​​and confirm with OK. The company is located in:
Click the button labeled "->" to select the entry and confirm with "OK". The company is located in:
 The connection between the CPU and the OPC server is established.
7. Create a WinCC project and new tags
Open WinCC and create a new project.
By right-clicking the mouse, click Tag Management and select "Add new driver".
In the next window, select "Opc.chn" and confirm with "Open".
Go to Tag Management and select "System Parameter" in "OPC> OPC Groups" by right-clicking the mouse button.
Open "OPC-Item-Manager> \\" and select OPC.SimaticNET and "Browse Server".
In "OPC.SimaticNET> \ S7:> S7 connection_1> objects", select the appropriate tag and click "Add Items".


It is now possible to transfer data between the CPU and WinCC.


Previous:Nothing
Next:PLC and ingredients control system
All rights reserved:Zhangjiagang ChiYu Automation Equipment Co., Ltd. Tel:0086 512 58666449 Fax:0086 512 58666449 Contact:Wang Yanhua Mob:0086 13812994059 E-mail:chiyumixer@chiyumixer.com