1、Tech Note 196Configuring the S7 I/O Server to Access S7 PLCs via TCP/IP and a Standard Ethernet Card for Windows NT 4.0All Tech Notes and KBCD documents and software are provided “as is“ without warranty of any kind. See the Terms of Use for more information.Topic#: 000896Created: October 17, 2000Th
2、is Tech Note describes the necessary steps for establishing TCP/IP communications via the Wonderware S7 I/O Server to an S7-400 PLC, through a standard Ethernet card in the PC and a CP 443-1 module in the S7-400 Universal Rack for Windows NT 4.0.This Tech Note assumes the user has a basic working kn
3、owledge and understanding of the Siemens Simatic Net, Siemens Step 7 and Wonderware FactorySuite I/O Server software.The following steps are covered: Configuring Siemens hardware and Software o Creating a Database Using COML S7 o Configuring/Activating the Standard Ethernet Card o Verifying the TCP/
4、IP Interface o Accessing/Configuring the CP 443-1 TCP Module Configuring a Topic for the Wonderware S7 I/O Server Testing S7 Communications with the Wonderware S7 I/O ServerNote For Siemens Simatic Net configuration, this Tech Note uses examples from Siemens Simatic Net v5.0.Configuring Siemens Hard
5、ware and SoftwareStep 1: Creating a Database Using COML S7 (v2.11)The following steps are based on version 2.11 of the Siemens COML S7 software. Wonderware Technical Support recommends that you use the current available version of COML S7 from Siemens.The COML S7 program is used to create the .TXT a
6、nd .LDB files required for Simatic Net to interface a standard Ethernet card to the CP 443-1 TCP module on the S7-400 Universal Rack (UR).Perform the following steps to create the .TXT and .LDB files. 1.Start the COML S7 program; the SIMATIC NET COML S7 dialog boxshould appear as shown in Figure 1.F
7、igure 1. Creating a .TXT file2. Use the following information to create your .TXT file:Node name: Name of the station. Used only for documentation purposes. It has no meaning to the project.Network type: Select TCP/IP from the drop-down list box since the CP installed in the PC is a standard Etherne
8、t card.Name: Enter a meaningful connection name (maximum 32 characters). This connection name will appear again when you create topics in the S7 I/O Server.VFD name: This VFD name is used by an application to specify which S7 connection to use. The Virtual Field Device (VFD) name is used duringthe t
9、opic configuration in the I/O Server.Remote addr.: This is the IP address of the CP 443-1 TCP to connect to on the S7-400 UR. It should match the IP address defined in Step7 programming software.Local TSAP: The Transport Service Access Point (TSAP) is the layer 4 address. The first two digits specif
10、y the device. The last two digits must bezero. Wonderware Technical Support recommends a setting of 01.00Remote TSAP: This address consists of two parts:o group: specification of the device: 01 = PG, 02 = OS, 03 = others o group: addresses of the SIMATIC components: (Bit 0.2) = Rack (Subsystem), (Bi
11、t 3.7) = Plug in portWonderware Technical Support recommends a setting of 03.0x, where x = slot of the CPU (not the CP). Since the CPU is normally installed next to the power supply (which takes 2 slots), the usual setting here is 03.033.When completed, save the .TXT file under File/Save Text Databa
12、se as shown in Figure 2, then click OK. Figure 2. Saving the .TXT File4.Generate an .LDB file under File/Generate Binary DB as shown in Figure 3, then click OK.Figure 3. Generating an .LDB FileStep 2: Configuring/Activating a standard Ethernet card with the SiemensSimatic Net, Setting the PG-PC Inte
13、rface (v5.0), Software1.Start the Setting the PG/PC Interface program. From the Access point of application drop-down list box, select S7ONLINE (STEP 7) as shown in Figure 4.Figure 4. Setting the PG/PC Interface (V5.0)2.From the Interface parameter set used list box, highlight TCP/IP - (Adapter Type
14、) and click on Properties.Note In this example, TCP/IP - (Adapter Type) appears under the Interface parameter set used list box; however, this will not be the case when you are initially setting up. To install the TCP/IP under the Install button, consult your Siemens documentation. 3.In the Properti
15、es dialog box, click on the S7-Protocol tab. Click on the Search button and select the directory where the .TXT and .LDB files were saved in COML S7. When complete, click OK.Figure 5. Configuring ISO Interface4. Once the SAPI-S7 Database path points to the .LDB file, click the TCP/IP Network tab and
16、 then click the Network Options button, as shown in Figure 6.Figure 6. TCP/IP Dialog Box5.In the Network dialog box , click the Protocols tab . Under the Network Protocols section, highlight TCP/IP Protocol, then click OK, as shown in Figure 7.Figure 7. Defining Network Protocols6.You will be return
17、ed to the Setting the PG/PC Interface (V5.0) dialog box with the TCP/IP - (Adapter Type) highlighted, click OK. 7.When complete, the following Warning dialog box will appear stating that the access path has changed. Click OK.Figure 8. Warning Message8. You will then be prompted to restart the parame
18、ter settings, click OK.Step 3: Verifying the TCP/IP InterfaceFollow these steps to test that the Ethernet card, with the Simatic Net Software, can interface via the TCP/IP interface. 1.In the Setting the PG/PC Interface (V5.0) dialog box, highlight TCP/IP - (Adapter Type) and click the Diagnostics b
19、utton. 2.In the Diagnostics dialog box, click the SR Protocol tab. Under the SR Status section, click the Test button. If correctly interfaced, you should see the results as shown in Figure 9.Figure 9. Verifying the InterfaceAccessing/Configuring the CP 443-1 TCP ModuleThe CP 443-1 TCP module should
20、 be configured with a standard profile. If this has not been done, create an S7 project that matches your S7 hardware configuration.Note If you require assistance in creating an S7 project, consult Siemens S7 documentation or contact Siemens Technical Support or a Siemens distributor.Perform the fol
21、lowing steps to access the CP 443-1 TCP module using Simatic Manager Step 7 (v5.0 + Service Pack 1) andStep 7 S7/M7 Hardware Configuration (v5.0 + Service Pack 1). 1.Open-up the S7 project, SIMATIC Manager S7-400 window, and double-click on Hardware, as shown in Figure 10.Figure 10. S7-Project Windo
22、w2.Under the Slot list box, select the CP 443-1 TCP module (located in the S7 UR) and double-click, as shown in Figure 11.Figure 11. Selecting the CP443-1 TCP Module3.When complete, the Properties CP 443-1 TCP dialog box should appear. Under the General tab, in the Interface section, click the Prope
23、rties button, as shown in Figure 12.Figure 12. Properties CP 443-1 TCP Dialog Box4.In the Properties Ethernet Node CP 443-1 TCP dialog box, click the Parameters tab. Under the Subnet section, highlight Ethernet(1). 5.In the IP address field, enter in the IP address assigned for this CP 443-1 module.
24、 The IP address should be the same as the Remote address defined in Step2: Creating a Database Using COML S7. 6.Next, for the Subnet mask enter 255.255.255.0 or the Appropriate Subnet mask for yur network. When complete, click OK. See Figure 13.Figure 13. Properties Ethernet Node CP 443-1 TCP Dialog
25、 Box7.You will return to the Properties - CP 443-1 TCP dialog box. If configured correctly, you should see a “Yes“ next toConnected, under the Interface section. 8.In the Properties - CP 443-1 dialog box, confirm a valid CP 443-1 module connection by clicking the Diagnostics tab. In the Module Diagn
26、ostics section, click the Run button. If a valid connection has been established, the following Industrial Ethernet Diagnostics window will appear.Figure 14. Industrial Ethernet Diagnostics Dialog Box9.Next, ping the CP 443-1 module by the IP address and verify the module replies as shown in Figure
27、15.Figure 15. Pinging the CP 443-1 ModuleConfiguring a Topic for the Wonderware S7 I/O Server (v7, 1, 1, 12)1.Start the Wonderware S7 I/O Server. From the Server menu bar, click on Configure and then select Topic Definition. The Topic Definition dialog box should appear. 2.Click the New button and t
28、he S7 Topic Definition dialog box should appear. Define your topic by entering a meaningful name in the Topic Name entry box. Use the drop-down list boxes to make your selections for CP-Name, VFD and Connection as shown in Figure 16. If correctly configured, the entries shown should be available for
29、 selection.Figure 16. Specifying a TopicTesting S7 TCP/IP Communications with the Wonderware S7 I/O ServerAfter you have configured the Siemens S7 software and hardware, and the Wonderware S7 I/O Server, you can use the WWClient to test communications to the S7 PLC, through the standard Ethernet car
30、d in the PC , to the S7 CPU via the CP 443-1 TCP module.The following shows an example of WWClient successfully advising item “MB90“ from an S7 PLC based off the Siemens Simatic Net, Siemens Step 7 and Wonderware S7 I/O Server settings, configured throughout this Tech Note.Figure 17. Testing Communi
31、cations using WWClientR. AcostaThe Tech Note is published occasionally by Wonderware Technical Support. Editors: Sabrina Abercromby and Kelly Hauser; Publisher: Wonderware Corporation, 100 Technology Drive, Irvine CA 92618. There is also technical information on our software products at our WonderF
32、ax fax-on-demand system at (949) 450-5050, and the Comprehensive Support Knowledge Base.For technical support questions, send an e-mail to .back to top2002 Wonderware Corporation. All rights reserved. Terms of Use.Figure 5. Configuring ISO Interface4. Once the SAPI-S7 Database path points to the .LDB file,