Tech Note 110 Configuring the S7 I/O Server for Windows 95 to Access S7 PLCs Via the Profibus Network All 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#: 000710 Created: May 1998 Siemens SIMATIC NET S7-5412 is a software package that allows you to connect PCs and PLCs to a CP5412(A2) communications card via the Profibus communication network. This Tech Note explains how to configure the S7 I/O Server for Windows 95 using the SIMATIC NET software package, version 4.x, to connect to the Siemens CP5412(A2) card. The steps in this Tech Note include how to: 1. Install the CP5412(A2) Card and Software 2. Create a Database using COML S7 3. Configure the CP5412(A2) 4. Configure the S7 I/O Server Step 1: Install the CP5412(A2) Card and Software 1. Install the CP5412(A2) card according to the instructions provided by Siemens. Keep in mind that the card requires a free ISA slot and a free 16K-memory area. Possible start addresses for the memory area are D0000 and E0000. If shadowbios or cache are located within this area, they should be disabled. Possible IRQ settings for the CP5412(A2) are 5, 10, 12, and 15. 2. Define the I/O address of the configuration register using the four jumpers on the CP5412(A2). See the Siemens documentation for more information. 3. Install the SIMATIC NET S7-5412/Windows 95 software and its authorization, according to the instructions provided by Siemens. 4. Install the Wonderware S7 I/O Server and the corresponding license file. Step 2: Create a Database Using COML S7 You need to configure a database, using the COML S7 software, that has the basic parameters for the SAPI-S7 interface that will allow the S7 I/O Server to communicate with Siemens S7 PLCs. This is known as "projecting" the COML S7 software. The S7 I/O server communicates with the SAPI-S7 interface, which in turn communicates with S7 PLCs via the CP card. (SAPI-S7 is a C programming interface that provides access to S7 services on PCs.) 1. Start COM L S7 by selecting Start/Simatic/SIMATIC NET/COML S7, as shown in Figure 1. https://wdnresource.wonderware.com/support/kbcd/html/1/config21.htm 1/9
FIGURE 1. STARTING COML S7 2. Select New from the File menu and create a new connection database for the CP5412(A2). You will get a screen in which a number of parameters have to be defined, as shown in Figure 2. FIGURE 2. CREATING A NEW DATABASE Here are the entries that are necessary for every S7 connection to a PLC: Node name: Name of the station. Used only for documentation purposes. It has no meaning to the project. https://wdnresource.wonderware.com/support/kbcd/html/1/config21.htm 2/9
Network type: In this case, select Profibus since the CP installed is a CP5412(A2) Editing of individual S7 connections The next settings are specific to each S7 connection: Name: Symbolic name of the S7 connection (max. 32 characters). Can be freely chosen. This name occurs again when you want to create topics in the S7-DDE-server. VFD name: Virtual Field Device name. Max.32 characters. This name is used by an application to specify which S7 connection to use. The VFD name is used during the topic configuration in the I/O Server. Remote addr.: This is the Profibus address for the PLC that you want to connect to. It should match the setting defined in Step7 programming software. Local TSAP: Transport Service Access Point for the local Station. The TSAP is the layer 4 address. The first two digits specify the device. The last two digits have to be zero. Recommended setting: 01.00 Remote TSAP: TSAP of the PLC. It consists of two parts: group: specification of the device: 01 = PG, 02 = OS, 03 = others group: addresses of the SIMATIC components: (Bit 0..2) = Rack (Subsystem), (Bit 3..7) = Plug in port Recommended setting: 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.03 3. Once all of the parameters of the S7 connections from the PC to the S7 PLCs are specified, save the database as both an ASCII text file and as a binary file. The ASCII version of the database (with a.txt extension) is used for making changes at a later time; the binary database (with an.ldb extension) is used in the next step when the hardware is configured. Step 3: Configure the CP5412(A2) Follow these steps to configure the CP5412(A2) and link it to the database you just created. 1. Start the SIMATIC NET program by selecting Start/Simatic/SIMATIC NET/Setting the PG-PC Interface, as shown in Figure 3. https://wdnresource.wonderware.com/support/kbcd/html/1/config21.htm 3/9
FIGURE 3. STARTING THE SIMATIC NET PROGRAM If you have an ethernet network adapter already installed, TCP/IP will be the only module that you see when you first start the program. 2. In the Modules section, click the Install button to install a new CP, as shown in Figure 4. FIGURE 4. INSTALLING A NEW CP 3. In the Install/Remove Modules dialog box, select CP5412A2 and click the Install button as shown in Figure 5. https://wdnresource.wonderware.com/support/kbcd/html/1/config21.htm 4/9
FIGURE 5. THE INSTALL/REMOVE MODULES DIALOG BOX 4. In the Select Device dialog box, select the first option if you are installing your first CP5412(A2), as shown in Figure 6. FIGURE 6. THE SELECT DEVICE DIALOG BOX The program then returns the hardware settings for the CP5412(A2) card, as shown in Figure 7. https://wdnresource.wonderware.com/support/kbcd/html/1/config21.htm 5/9
FIGURE 7. HARDWARE SETTINGS Once the CP5412(A2) card is installed, the main menu for configuring the PG- PC interface will appear as shown in Figure 8. FIGURE 8. MAIN MENU FOR CONFIGURING THE PG-PC INTERFACE https://wdnresource.wonderware.com/support/kbcd/html/1/config21.htm 6/9
5. Select the CP5412(A2) module and then click the Properties button. Click the S7- Protocol tab (See Figure 9). FIGURE 9. THE S7-PROTOCOL TAB 6. Select the box for Activate S7 and then click the Search button to select the database that you created in Step 2 on page 1 of this Tech Note. Under the Mode tab you can reset, restart, and test the CP5412(A2). 7. Perform a Functional Test in the Mode tab. The CP5412(A2) should respond with an OK status. If not, you may want to verify the System settings in the Control Panel and see if there are any conflicts reported for the card. 8. When exiting the program for configuring the hardware, a warning message will appear (See Figure 10), indicating that the "CP_L2_1:" logic name will be linked to your CP. Click Yes to confirm. FIGURE 10. WARNING MESSAGE Step 4: Configure the S7 I/O Server Note that you must complete the previous steps before you can configure valid topics in the S7 https://wdnresource.wonderware.com/support/kbcd/html/1/config21.htm 7/9
I/O Server. 1. Start the S7 I/O Server. From the Configure menu, select Topic Definition, as shown in Figure 11. FIGURE 11. NEW TOPIC DEFINITION IN S7 I/O SERVER 2. When you create the first topic, a message will appear (See Figure 12), indicating that the SAPI library does not provide the names of the configured CPs in the previous step. As a result, you must manually add the "logic" names for each CP that you configured. For your first CP5412(A2), you should use CP_L2_1: (Be sure to include the colon). FIGURE 12. MESSAGE INDICATING THAT THE SAPI LIBRARY DOES NOT PROVIDE THE NAMES OF CONFIGURED CPS Once the CP has been included, a topic can be defined as shown in Figure 13. The values for VFD and connection are read from the Siemens software. Consequently, the drop down lists should provide the available options for VFD and Connection. If the options do not appear, go over Step 2: Configure the Hardware and Step 4: Configure the S7 I/O Server to make sure you did not miss anything. https://wdnresource.wonderware.com/support/kbcd/html/1/config21.htm 8/9
FIGURE 13. S7 SERVER TOPIC DEFINITION You are now ready to use the S7 I/O Server. Before you develop your InTouch application, you should test communications with wwclient (which is available on the Knowledge Base) by advising a point in the PLC that is already defined. For example, in Figure 14, point DB100,b1 is advised. FIGURE 14. TESTING COMMUNICATIONS WITH WWCLIENT B. Mohseni The Tech Note is published occasionally by Wonderware Technical Support. Editors: Sabrina Abercromby and Kelly Hauser; Publisher: Wonderware C orporation, 100 Technology Drive, Irvine C A 92618. There is also technical information on our software products at Wonderware Technical Support, our WonderFax fax-ondemand system at (949) 450-5050, and the C omprehensive Support Knowledge Base. For technical support questions, send an e-mail to support@wonderware.com. back to top 2013 Wonderware C orporation. All rights reserved. Terms of Use. https://wdnresource.wonderware.com/support/kbcd/html/1/config21.htm 9/9