Friday, February 18, 2011

SCADA system with S7 and Wincc HMI

Communication on the WinCC side, for example, is via the CP5613 (DP master) and on the S7-200 side via the integrated DP interface or EM277 (DP slave).

The following brief instructions on setting up the connection is based on the following requirements:
Computer equipped with CP5613 and associated CP5613 driver
S7-22x with EM277
COM PROFIBUS V5.x
STEP 7 Micro/WIN32 version V3.1
SIMATIC WinCC higher than V5.02

Note:
COM PROFIBUS is not available for WinCC V6. As from WinCC V6, NCM PC is included for configuring the slaves. Alternatively this can also be done with the SIMATIC Manager.

The figures in this entry have been created in a WinCC V5 system environment.


Step 1:
Create an NCM file with COM PROFIBUS
No.

Procedure
1
Insert the CP5613 and the EM277:

              Fig. 01
2
Configure the EM277:
Insert the GSD file
Set PROFIBUS address 10
Set the I/O configuration to 8 bytes Out / 8 bytes In


             Fig. 02

More information on configuring the EM277 is available in the manual "S7-200 Programmable Controller System Manual, CPU22x". The manual is available in Entry ID1109582.
Parameterize the I/O offset in the variables memory to the value 5000 (according to the example in the S7-22x manual, page A-55).


             Fig. 03

3
Create the NCM file:
Select CP5613
Export the NCM file

Step 2:
Settings in the CP5613 and the PG/PC interface

No.
Procedure


1
Under "Properties > FMS/DP Protocol" select "Activate DP" and select the NCM file


             Fig. 04
2
Restart the CP and check the CP data via "Diagnostics > Read DP Databases".

         Fig. 05
3
Create the address area of the inputs/outputs in the variables memory in the same way as the offset set in COM PROFIBUS:
VW 5000 -> QW 0 (Receive buffer)
IW 0 -> VW 5008 (Send buffer)



            Fig. 06
Step 3:
Settings on the WinCC side
No.
Procedure
1
Insert the PROFIBUS DP channel in the WinCC Tag Management:


Fig. 07
2
Under System Parameter you set the CP Board number to the value "1".


           Fig. 08
3
Insert a new connection and set the slave address of the EM277 as shown in the figure.



             Fig. 09
4
Create the tags in the WinCC Tag Management as shown in the figure.


             Fig. 10

No comments:

Post a Comment

Control Global | Process Automation Technologies