Friday, February 18, 2011

Profibus DP with Wincc

With a PROFIBUS-DP connection you can visualize inputs/outputs of your I/Os directly in WinCC. For this WinCC provides a PROFIBUS channel for the connection of your PC to the PROFIBUS devices. Proceed as follows to create a PROFIBUS-DP connection in WinCC:
1.   Configuring the PC Station 
  • Create a PC station in the SIMATIC Manager. This PC station represents your WinCC server or your WinCC single-station system. 

Fig. 1: Creating a PC station
  • Open the Hardware Configuration editor by double-clicking on "Configuration". 
  • Add an application to the rack. 

Fig. 2: Adding an application
  • Add a CP5613 (or the PROFIBUS CP used) to the rack. 

Fig. 3: Adding CP5613
  • Open the Properties of the CP by double-clicking on the CP. 
  • Select the "Operating Mode" tab and enable the CP as master. Please make sure that you assign the application already created to the CP.

Fig. 4: Defining the operating mode
  • Close the Properties dialog. Add the PROFIBUS slaves (e.g.: ET200M, ET200S etc.). Make sure that the slaves receive the correct PROFIBUS address. You set the PROFIBUS address directly on the slaves via DIP switches.
  • Save and compile the configuration. 
  • Load the configuration into the PC station. Make sure that the PG/PC interface is set to "PC Internal" and that the configuration just created corresponds to the actual configuration of your PC. You can check the actual configuration by starting the Station Configuration Editor (German: "Komponenten Konfigurator") either via the desktop or via the icon in the Start taskbar.

Fig. 5: Station Configuration Editor
2.   Configuring the WinCC Project 
  • Start the WinCC Explorer and create a new WinCC project.
  • Select "Tag Management" in the WinCC Explorer and open the pop-up menu with a right-click. 

Fig. 6: Adding a new driver
  • Select "Add New Driver...". In the dialog that then opens you select "PROFIBUS-DP" and acknowledge the selection with "Open". 
  • Now add a new connection to the channel ("right-click > New Driver Connection..."). 

Fig. 7: Adding a new driver connection
  • Open the Properties of the connection and enter the PROFIBUS address of a slave. You need a new connection for each other slave. 

Fig. 8: Setting the slave address
  • Open the system parameters of the PROFIBUS channel  ("right-click on PROFIBUS-DP > System Parameters"). 
  • In the"CP board number" field you enter a "1" for the first CP. If there are two or more CPs in the PC, increase the number accordingly (up to a maximum of 4).

Fig. 9: Defining the CP board number
  • Close the dialog with "OK". 
  • Now you can create tags below the connection and configure them with the appropriate I/O addresses of the PROFIBUS slave.

Fig. 10: Creating tags
  • Finally you can set the access point "CP_L2_1" to CP5613_5614 (PROFIBUS) by calling the configuration via "Start > SIMATIC > SIMATIC NET > Settings > Setting PC station". 

Fig. 11: S7 access points
  • Select "Access Points" and double-click on CP_L2_1. In the dialog that opens you change the setting for the access point defined.

Fig. 12: Properties of CP_L2_1
Note:
If you are using more than on PROFIBUS CP, you have to select the relevant access points (CP_L2_x) accordingly.
CP1 > CPL2_1
CP2 > CPL2_2
CP3 > CPL2_3
CP4 > CPL2_4


No comments:

Post a Comment

Control Global | Process Automation Technologies