1.1Requirements for communication between the S7-200 and a WinCC flexible PC Runtime via Ethernet:
Software:
SIMATIC NET CD 11/2003
STEP 7 Micro/WIN V4.0
WinCC flexible Advanced
Hardware:
CPU 22x:
CPU 222 or 224 release 1.1 or higher, CPU 226 or CPU 226 XM release 1.00 or higher
CP 243-1: (order number 6GK7 243-1-1EX00-0XE0) or CP 243-1IT (order number 6GK7 243-1GX00-0XE0)
PC with a standard Ethernet card
Network cable
Hub or switch
1.2Requirements for communication between the S7-200 and a Windows-based operator panel via Ethernet:
Software:
STEP 7 Micro/WIN V4.0 or higher
WinCC flexible standard
Hardware:
CPU 22x: CPU 222 or 224 release 1.1 or higher, CPU 226 or CPU 226 XM release 1.00 or higher
CP243-1: (Order number: 6GK7 243-1-1EX00-0XE0) or CP 243-1IT (order number 6GK7 243-1GX00-0XE0)
Network cable
Hub or switch
Windows-based operator panel as of 170 series with Ethernet interface
Note: The OP270 and TP270 do not have an on-board Ethernet interface. You can use a CF Ethernet card to extend the OP270 and TP270 by an Ethernet interface.
2. Configuring the CP 243-1 with STEP 7 Micro/WIN The settings for the CP 243-1 are defined in STEP 7 Micro/Win via the Ethernet Wizard. For assistance with all the information go to STEP 7 Micro/WIN Online Help via F1.
No.
Procedure
1
Starting the Ethernet Wizard
Open STEP 7 Micro/WIN.
Start the Ethernet Wizard via "Tools > Ethernet Wizard...."
Click on "Next".
Fig. 01 - Ethernet Wizard
2
Confirm message
Click "Yes" to confirm the message that appears.
=> Your STEP 7 Micro/WIN configuration is compiled, and the symbolic addressing is activated.
Fig. 02 - STEP 7 Micro/WIN message
3
Specifying module position If your PC is connected to the S7-200, click the "Read modules" button to determine the position of the CP 243-1 module automatically. Otherwise, the module position can also be entered manually.
Important:
WinCC flexible Runtime or the Windows-based operator panel can only establish a connection with a CP243-1 if the module is configured to "position 0". The TSAP for the remote station must be set to 02.00.
Check if the CP is connected in the module position "ZERO" and change the module position if necessary.
Identify or enter the module position "ZERO".
Click on "Next".
Fig. 03 - Enter module position
4
Specifying IP address
Define an IP address for the CP 243-1.
Caution:
The IP address for this application may not be taken automatically from a server because the WinCC flexible Runtime or the Windows-based operator panel requires a fixed reference partner (CP 243-1) for the Ethernet communication.
Note: The communication connection type for this module can be defined by the "Automatic Setting".
Click on "Next" to continue.
Fig. 04 - Set IP address
Note:
The BOOTP server is a pared-down DHCP server.
5
Parameterizing PtP connection
Specify the command byte for the module and the number of point-to-point connections with the CP 243-1.
Click on "Next".
Fig. 05 - Number of connections
6
Configuring connection
The configuration for connecting the CP 243-1 to WinCC flexible Runtime or to a Windows-based operator panel must be defined as in Fig. 06.
Click OK to confirm the entries.
Warning:
The TSAP must always be specified in four-digit format, with a leading zero (02.00).
Fig. 06 - Configuring connections
7
Using CRC protection Set the CRC protection the way you want it. It is advisable to work without CRC protection first of all. The "Keep Alive Interval" can be specified with the default time.
Activate the CRC protection and change the time of the "Keep Alive Interval" if required.
Click on "Next".
Fig. 07 - CRC protection and Keep Alive Interval
8
Assigning memory
Specify a memory area for the configuration of the CP 243-1.
Recommended:
If you click on Suggest address, the Wizard can identify a variable memory area.
Click on "Next".
Fig.08 - Memory for the configuration
9
Creating project components If you click on "Close", the Ethernet Wizard generates the project components for the set configuration. Among other things, subprograms and the variable memory are created in the data block.
Click the "Close" button.
Fig. 09 - Creating the project components
10
Confirm message
Click "Yes" to confirm the message that appears.
Fig. 10 - Close Ethernet Wizard
11
Call ETH0_CTRL
In your STEP 7 Micro/WIN program, you must call the ETH0_CTRL subroutine in each cycle.
Finally, load the entire configuration into the S7-200.
Fig. 11 - Example of calling the ETH0_CTRL subroutine
3. Configuring a WinCC flexible PC Runtime
No.
Procedure
1
Creating a PC project
Run WinCC flexible.
Create a project with the device type "PCs > WinCC flexible RT".
Fig. 12 - Creating WinCC flexible RT
2
Specifying connection parameters
Navigate to "Communication > Connections" and create a new connection in the right pane of the project window.
Select the communication driver "SIMATIC S7 200".
Under interface, select "ETHERNET".
Enter the IP address and the subnet mask for the WinCC flexible RT and the S7-200 (see Fig. 04 ( 56 KB ) ).
Fig. 13 - Setting connection parameters
3
Select access point
Open the PG/PC interface under "Start > Control panel > Set PG/PC interface
In the PG/PC interface you must set the access point S7ONLINE to "TCP/IP -> [Used network card]".
Fig. 14 - Set PG/PC interface
4
Configuring network card The IP address and subnet mask for the PC, which are defined via the control panel, need to match the IP address and subnet mask in WinCC flexible (Fig. 13 ( 35 KB ) ).
Enter the IP address and the subnet mask that you have parameterized in Fig. 13 ( 35 KB ) .
Fig.15 - Parameterizing network card
5
Start WinCC flexible Runtime
Once you have completed the configuration in WinCC flexible, you can start the Runtime.
4. Configuring a Windows-based operator panel The connection to the S7-200 must be configured in the WinCC flexible project. You must parameterize the configuration of the Ethernet adapter directly in the operator panel.
4.1 Operator panel settings
No.
Procedure
1
Select Ethernet adapter
Open the Network menu command in the "Control Panel".
Select the driver for the Onboard Ethernet card in the "Adapters" tab and click on "Properties".
Fig. 16 - Network configuration
2
Specifying connection parameters
Select "Specify an IP address".
Set your IP address as 192.168.1.50 and your subnet mask as: 255.255.255.0 (see Fig. 17).
Note:
The IP address and subnet mask must match the IP address and subnet mask specified in WinCC flexible - as in Fig. 17.
Click "OK" to close the dialog.
Fig. 17 - Setting IP address
3
Changing the device name
Click "OK" to confirm the message that appears.
Switch to the "Communication" menu in the "Control Panel".
Note:
In the "Device Name" tab, the device name must be changed (for example, ID7803) to enable communication.
Change the device name under "Device Name".
Click "OK" to close the dialog.
Fig. 18 - Changing the device name
4
Saving the settings
Open the "OP" menu.
Click on the "Save Registry" button in the "Persistent Storage" tab in order to save the tab settings.
Reboot the MP270B.
Fig. 19 - Saving settings
4.2 Creating a WinCC flexible configuration
No.
Procedure
1
Select operator panel
Run WinCC flexible.
Create a project, for example for the device type "MP 270B 6" Touch".
Fig. 20
2
Specifying connection parameters
Navigate to "Communication > Connections" and create a new connection in the right pane of the project window.
Select the communication driver "SIMATIC S7 200".
Under interface, select "ETHERNET".
Enter the IP address and the subnet mask for the MP 270B and the S7-200 - as in Fig. 04 ( 56 KB ) .
Fig. 21 - Enter connection parameters
3
Transfer configuration
Once you have completed the configuration in WinCC flexible, you can transmit this to the MP270B.