Cover

Generating the Connection Data for the open TCP/IP Communication using the OC Wizard
Open Communication Wizard Application  May 2010

Applikationen & Tools
Answers for industry.

Industry Automation and Drives Technologies Service & Support Portal This article is taken from the Service Portal of Siemens AG, Industry Automation and Drives Technologies. The following link takes you directly to the download page of this document. http://support.automation.siemens.com/WW/view/en/25209116

If you have any questions concerning this document please e-mail us to the following address: online-support.automation@siemens.com

Copyright  Siemens AG 2010 All rights reserved

2

OC Wizard V2.3, Entrys-ID: 25209116

s

Automation Task

1 2 3 4 5 6 7 8

Automation Solution Function Mechanisms of this Application

SIMATIC OC Wizard
Open Communication

Design

Installation Operation of the Application

Related Literature
Copyright  Siemens AG 2010 All rights reserved

History

OC Wizard V2.3, Entry-ID: 25209116

3

We reserve the right to make changes to these Application Examples at any time without prior notice. you recognize that we cannot be made liable for any damage/claims beyond the liability clause described. We do not accept any liability for the information contained in this document. typical for the type of contract. Such an exclusion shall not apply in the case of mandatory liability. fraudulent concealment of a deficiency or breach of a condition which goes to the root of the contract (“wesentliche Vertragspflichten”). Entrys-ID: 25209116 . Any claims against us – based on whatever legal reason – resulting from the use of the examples. Copyright  Siemens AG 2010 All rights reserved 4 OC Wizard V2. except in the event of intent or gross negligence or injury to life. body or health. The Application Examples do not represent customer-specific solutions. programs. engineering and performance data etc.g. installation. described in this Application Example shall be excluded. however. e. under the German Product Liability Act (“Produkthaftungsgesetz”). operation and maintenance. limited to the foreseeable damage. equipping and any eventuality. These application examples do not relieve you of the responsibility to use safe practices in application. gross negligence. Catalogs – the contents of the other documents have priority. The damages for a breach of a substantial contractual obligation are. guarantee for the quality of a product.Warranty and Liability Warranty and Liability Note The Application Examples are not binding and do not claim to be complete regarding the circuits shown.g. or injury of life. information. They are only intended to provide support for typical applications. in case of intent. You are responsible for ensuring that the described products are used correctly. The above provisions do not imply a change of the burden of proof to your detriment. Any form of duplication or distribution of these Application Examples or excerpts hereof is prohibited without the expressed consent of Siemens Industry Sector. When using these Application Examples. If there are any deviations between the recommendations provided in these application examples and other Siemens publications – e.3.. body or health.

................................................ 13 6 Copyright  Siemens AG 2010 All rights reserved Operation of the Application ...................................................2 Overview .............................................. 12 5.........................4 6.....................1 5............................................ 27 Step by step instruction: Copy connection / use as template ..........................7 6........... Entry-ID: 25209116 5 .......................................................1 Internet Link Specifications ....1 Hardware setup .............................................3....................... 16 Step by step instruction: Call OC Wizard from SIMATIC Manager.................................................................. 6 1............................ 36 OC Wizard V2............................................................................ 7 3 Function Mechanisms of this Application .......................................... 34 7 Related Literature .................................... 9 Operation principle of the example program ........................................................................ 6 Automation Solution ..................2 Overview .......................................... 14 General information on the dialog masks........................................Table of Contents Table of Contents Warranty and Liability ........... 35 7...1 2........................................ 9 3.............................1 2 Overview ......... 30 Required steps for connection configuration in UDT ........................... 10 4 Design ............................... 14 6.............................................. 23 Step by step instruction: Create new connection.......................6 6................................................................ 4 1 Automation Task...........................5 6. 33 Operating the example ............. 12 Installing the example........3 6......................................................8 Functions of the OC Wizard as an overview .........................................2 Installation of the Tool ..... 35 8 History......................... 11 4............. 7 2................................................................................................... 7 Required Hardware and Software Components .....................................................................................................................................................................................................1 6............ 24 Step by step instruction: Change connection................................................................................ 11 5 Installation...................................1 3................................2 6..........

The communication blocks FB65 "TCON".3. FB63 "TSEND" and FB64 "TRCV" are used.1 Overview 1 1.1 Automation Task Overview All new SIMATIC S7-CPUs contain an integrated PROFINET interface which enables the TCP/IP communication. Introduction Copyright  Siemens AG 2010 All rights reserved 6 OC Wizard V2. FB66 "TDISCON".1 Automation Task 1. The connection description does not occur via a configuration (in NetPro). therefore the parameters for each connection must be specified in a data block. The configuration of the TCP/IP communication via this integrated interface is only possible using the open communication and its function blocks. Entrys-ID: 25209116 .

2 Required Hardware and Software Components The application was generated with the following components: Hardware components Table 2-1 Component PS307 5A CPU319-3 PN/DP PS407 10A CPU414-3 PN/DP 1 1 1 1 No.2 Automation Solution 2.0 from V2.1 Automation Solution Overview Using the “Open Communication Wizard” tool enables simple and clear specification of the connection parameters. This example project shows the configuration and programming of a communication relationship between a CPU319 and a CPU414 via the integrated Ethernet interface and the ISO-on-TCP protocol.1 Overview 2 2.5 Note OC Wizard V2.3. The Automation solution Application areas / customer benefits The Open Communication Wizard provides the following advantages:  Copyright  Siemens AG 2010 All rights reserved simplified generation of connection descriptions reduced susceptibility to errors only offers the required parameters existing connections will be uploaded and presented overview of the connections can be exported an existing connection can be used as template for a new connection (copy) an existing connection can be changed (change) the OC Wizard is integrated in the SIMATIC Manager and can be called from a STEP 7 project        2. Using the finished data block we then give a simple example project of how the communication is realized in the S7-300 and S7-400 CPU from a program technology point of view using the above blocks. Entry-ID: 25209116 7 . The tool then exports a UDT or a DB with all parameters of the connection description into your STEP 7 project. MLFB / order number 6ES7307-1EA00-0AA0 6ES7318-3EL00-0AB0 6ES7407-0KA01-0AA0 6ES7414-3EM05-0AB0 from V5.

3. Table 2-3 Copyright  Siemens AG 2010 All rights reserved Component 25209116_OC_Wizard_CODE_V23.4 SP5 onward the OC Wizard is also included on the STEP 7 DVD.4 + SP1 Microsoft Visual Studio .zip Note Tool . OC Wizard and example project The STEP 7 example project and the OC Wizard are available on the HTML page from which you downloaded this document.Net Framework manually. After Installation of STEP 7 at your PC this . Entrys-ID: 25209116 .Open Communication Wizard STEP 7 example project with the connection data 8 OC Wizard V2.NET Framework on your PG/PC.zip 25209116_STEP7Example. Therefore it is not necessary to install .NET Framework is already installed. From STEP 7 V5. The following list includes all files and projects that are used in this example.2 Required Hardware and Software Components Standard software components Table 2-2 Component SIMATIC STEP 7 Version 5.2 Automation Solution 2. MLFB / order number 6ES7810-4CC08-0YA5 Or higher Note Additional software components Operating the OC Wizard requires the installation of .NET 1 1 No.

3. Figure 3-1 General overview Copyright  Siemens AG 2010 All rights reserved Download connections from STEP 7 project Create new connection Change connection Insert or change parameter Use connection as template Create STL source Import and compile STL source in STEP 7 project OC Wizard V2.1 Function Mechanisms of this Application Overview The following schematic overview is the procedure for using the Open Communication Wizard.3 Function Mechanisms of this Application 3.1 Overview 3 3. Entry-ID: 25209116 9 .

2.3. memory byte 20 is sent to the partner station with each positive edge at FB63_REQ. 1. Instruction With a positive edge at FB65_REQ. Entrys-ID: 25209116 . 3. The partner receives the data and saves it in memory byte 20.3 Function Mechanisms of this Application 3.2 Operation principle of the example program 3. 10 OC Wizard V2.2 Operation principle of the example program The following overview displays operation principle and sequence of the example program. After the connection has been established. the FB65 “TCON” tries to establish a connection using the connection data from the DB10 “TCON_PAR“. Figure 3-2 FB65_REQ = 1 UDT120 FB65 “TCON” DB10 “TCON_PAR” FB63_REQ = 1 FB63 „TSEND“ FB66_REQ = 1 MB20 SENDDATA FB66 “TDISCON” MB20 RECVDATA FB64 “TRCV” Copyright  Siemens AG 2010 All rights reserved Table 3-1 No. 4. A rising edge at FB66_REQ reactivates the connection.

Entry-ID: 25209116 11 .1.1 Hardware setup 4 4. S7-400 and the PG/PC are connected via Industrial Ethernet.1 Design Hardware setup The figure below shows the hardware setup of the example.168. S7-300.3.168. Figure 4-1 Communication partner A Communication partner B S7-400 with CPU414-3 S7-300 with CPU319 Copyright  Siemens AG 2010 All rights reserved 192.1.4 Design 4.30 Industrial Ethernet PG/PC with STEP 7 and Open Communication Wizard OC Wizard V2.31 192.

12 OC Wizard V2.1 Installation of the Tool 5 5.4 incl. If STEP 7 is not installed the installation of the Open Communication Wizard will be aborted. This requires STEP 7 being installed on this computer. Entrys-ID: 25209116 . Note The Open Communication Wizard works with STEP 7 projects.1 Installation Installation of the Tool The Open Communication Wizard is running under:     MS Windows 7 ultimate / professional MS Windows XP Professional with SP2 or SP3 MS Vista 32bit Ultimate and Business with or without SP1 MS Windows Server 2003 SP2 standard edition with or without R2 as working station Software Preconditions Installing the OC Wizard Retrieve the zip-file (25209116_OC_Wizard_CODE_V23. SP5) The Open Communication Wizard on the STEP 7 DVD can be found under “CD_2\Optional Components\OC Wizard“.zip) and go through the setup process. Before installation of the new version the old version of the OC-Wizard must be removed via the control panel of your PC Copyright  Siemens AG 2010 All rights reserved Installation of OC Wizards from STEP 7 DVD (V5. The tool is available after installation at Start->SIMATIC.3.exe.5 Installation 5. Execute Setup.

Click Search and select the appropriate station.3. Then assign the IP configuration. Use the browser to search the relevant project and click OK to confirm.2 Installing the example Install the hardware on the appropriate rack/ rail according to the installation guidelines. Copyright  Siemens AG 2010 All rights reserved Note The example is runnable immediately. Entry-ID: 25209116 13 .10.30. Adjust the IP address and the subnet mask.2 Installing the example 5. Installation of the hardware Installing the example project Table 5-1 No 5. Chapter Operating the example describes how to control the data transfer OC Wizard V2. Instruction Start the SIMATIC Manager.168. Assign the IP addresses via “PLC -> Edit Ethernet node“ to the individual stations. Then network all components via Industrial Ethernet. CPU319 has the address 192.168. In this example.10.31 and CPU414 has 192.zip) via the menu File -> Retrieve). 8. Retrieve the zipped project (Example_STEP7. Note / Explanation 7. 6.5 Installation 5.

TCON.g. The connection data is stored directly in your project in a UDT or DB. These comment lines are not available for other usage! Copyright  Siemens AG 2010 All rights reserved Note In the overview the connection data are shaded in gray. Uploading the connections from a STEP 7 project The Open Communication Wizard can read out the existing open connections from the STEP 7 project.CPU319. This facilitates the data input in case of many identical parameters. NOTICE NOTICE The OC Wizard enables you to identify your connections by assigning a connection name in plain text. This includes the following:    Connection data in a UDT. Changing these data may cause time stamp conflicts.1 Operation of the Application Functions of the OC Wizard as an overview All functions of the Open Communication Wizard are described here.block_length…. DB) of a station for structures which contain the connection data. The “step by step” instructions are given in the course of this document. Change an existing connection Uploaded open connections can be changed with the tool.1 Functions of the OC Wizard as an overview 6 6. A new block can be created as well as connection data be attached to an existing block. 14 OC Wizard V2. Connection data in structures with nesting depth > 1 (e. In STEP 7 the Open Communication Wizard searches the blocks (UDT. DB1. Subsequently.. The loaded data can be used for further processing. Generate new connection by means of the copying function New connections can be generated by copying and changing an uploaded connection. the data are filed at the same location in the STEP 7 project.TCP. The connection data in an instance data block.Verb1. This data can be used for example for your documentation. Creating data block with connection data The tool can save the connection data in a global data block. Exporting the overview of the uploaded connection An overview of the uploaded open connection of a station can be saved as *. This connection name is saved in some comment lines of the connection data. Entrys-ID: 25209116 .). if these data cannot be changed. Generating a new open connection The Open Communication Wizard enables you to configure new connections.csv file.3. All data blocks in the S7 program which use these UDT are affected by the changes.6 Operation of the Application 6.

1 Functions of the OC Wizard as an overview Open connection data shaded in gray can be used during copying. Specifying the connection name A name can be specified for a connection. Entry-ID: 25209116 15 .6 Operation of the Application 6. Copyright  Siemens AG 2010 All rights reserved OC Wizard V2.3. This facilitates the clarity in case of several connections. This connection name is stored in the comment of the data block.

3. Further information on the open communication is available on the internet.2 General information on the dialog masks 6. Entrys-ID: 25209116 . Dialog mask: STEP 7 project Figure 6-2 16 OC Wizard V2.6 Operation of the Application 6. This description serves as a supplementation of the step by step instruction which you find in the further course of the document. Dialog mask: Welcome Figure 6-1 Copyright  Siemens AG 2010 All rights reserved The Open Communication Wizard starts with this dialog.2 General information on the dialog masks Subsequently dialogs of the Open Communication Wizard are described from a general point of view. Here you find information on the Open Communication Wizard.

Entry-ID: 25209116 17 . From this station connection data are uploaded.csv file. The functions “Change” and “Copy” assume the selection of an uploaded connection in the overview. if the details on the STEP 7 project and/or the block folder are not changed in the dialog mask “Select Step 7 project and block folder” in the further course of the configuration. This gives you an overview of the connections of the selected station. OC Wizard V2. Furthermore the ID is preassigned with the next free value for a new connection The overview can be exported as *. After using the “Next” Button the upload of the specified project starts automatically. When calling the OC Wizard from the SIMATIC Manager the STEP 7 project and the block folder is automatically transferred from the SIMATIC Manager. The tool determines IP addresses of the selected station.3.6 Operation of the Application 6. Note The “STEP 7 project” dialog mask is only provided when directly calling the OC Wizard from Windows. The project and the block folder from which the OC Wizard was called is valid during the entire processing time and is only transferred new after exiting the OC Wizard and calling it again. Here you can switch between functions of the Open Communication Wizard. Therefore this mask is not offered when calling from the SIMATIC Manager.2 General information on the dialog masks The STEP 7 project selected in this dialog as well as the block folder can be considered as a source station. To do this click “export”. This station is at the same time used as target station. This is the case for the source station as well as for the target station. Copyright  Siemens AG 2010 All rights reserved Dialog mask: Upload connections Figure 6-3 In this dialog the uploaded connections in the overview are represented. The upload starts automatically. These IP addresses can be considered as local IP addresses.

WinAC RTX supports the connection types “TCP native” and “UDP” Dialog mask: Communication partner I Figure 6-5 18 OC Wizard V2.3. Open communication via “ISO-on-TCP” and “UDP” is for the S7-300 CPUs only supported from firmware version V2. Entrys-ID: 25209116 . Read back is performed automatically.2 General information on the dialog masks When calling the OC Wizard from the SIMATIC Manager the OC Wizard starts with this dialog. Dialog mask: Choose the type of your connection Figure 6-4 Copyright  Siemens AG 2010 All rights reserved Here you can choose which connection you wish to configure.6 Operation of the Application 6. Changing the connection types causes the values to be reset and the dialog masks to be represented differently.4 on. This mask is only displayed for the “New” function.

You can also configure these connections individually. In other cases this option is defined by the OC Wizard and cannot be changed. that rack and slot must be adjusted for S7400. OC Wizard V2. The connection name is filed in the comment. If you do not enter a connection name. Changing the options causes the values to be reset and the dialog masks to be represented differently. Please also note.6 Operation of the Application 6.3. a name which is automatically generated by the tool is used (in the format “autogen_name_”). Dialog mask: Communication partner II Figure 6-6 Copyright  Siemens AG 2010 All rights reserved Here you enter connection parameters. Entry-ID: 25209116 19 .2 General information on the dialog masks In this dialog the option “Only communication …” enables you to choose whether you wish to configure both partners at the same time. This option can be changed when creating a new “TCP native” or “ISO on TCP” connection. Changing the options causes the values to be reset and the dialog masks to be represented differently. that the correct interface has been selected. Please ensure.

These details are preassigned here.3.6 Operation of the Application 6.2 General information on the dialog masks Dialog mask: Connection parameters Figure 6-7 In this dialog you enter the port number for the connection. Copyright  Siemens AG 2010 All rights reserved We recommend using a port number from the range 2000 to 5000. You can accept this preassignment or also specify a different target project or target folder to which the completed block is compiled and inserted. Entrys-ID: 25209116 . The selected STEP 7 project and the block folder can in this dialog be considered as target station. Dialog mask: Chose destination project Figure 6-8 In the dialog please specify to which project and to which block folder the generated UDT or DB should be imported. 20 OC Wizard V2. If you specified a different target project and after using the “Next” Button a new upload of the specified project starts automatically.

it will be generated.2 General information on the dialog masks If a connection is changed (function “Change”). Dialog mask: Overview Figure 6-9 Copyright  Siemens AG 2010 All rights reserved To check the performed changes the connections are again represented as an overview in this dialog.3.6 Operation of the Application 6. OC Wizard V2. The changes are shaded in gray. The project and the block folder from which the OC Wizard was called are shaded in gray in this mask. connection data can be assigned to the data block. When using a symbolic name ensure that the symbolic name is defined in your S7 program. details in this dialog cannot be changed. after a successful analysis. The connection data are filed in the same data block and at the same location. Assign any block name. An existing data block is analyzed by the OC Wizard and. Note When calling the OC Wizard from the SIMATIC Manager the STEP 7 project and the block folder is automatically transferred from the SIMATIC Manager. If the block does not yet exist in your S7 program. The OC Wizard checks whether the specified block already exists in your S7 program. Note Up to this dialog mask no changes have yet been made in the STEP 7 project. The connection configuration created with the OC Wizard is saved in this block folder. Continuing the OC Wizard by pressing the “Next” button causes the compilation and insertion of the bock into your selected target project. Entry-ID: 25209116 21 .

3. 22 OC Wizard V2. the changes in the STEP 7 project are made successfully.6 Operation of the Application 6.2 General information on the dialog masks Dialog mask: Compilation report Figure 6-10 Copyright  Siemens AG 2010 All rights reserved In this dialog the results of the compilation are displayed. If an error message is displayed in the report. you check whether the used block is not opened otherwise. If no errors are displayed in the report. Entrys-ID: 25209116 . Otherwise no changes are made.

OC Wizard V2. You can also start the OC Wizard via the Options (tools) menu. Click the OC Wizard in the context menu of the block folder.3.6 Operation of the Application 6. 1. Copyright  Siemens AG 2010 All rights reserved 2. The OC Wizard starts with this dialog. Entry-ID: 25209116 23 . Open your project. The OC Wizard is started now and transfers the STEP 7 project and this block folder as source and target folder for further processing. The further process and operation of the OC Wizard is identical with calling the OC Wizard from Windows. Note When calling the OC Wizard from the SIMATIC Manager. the read-back process can slow down the display of this dialog a little. The connection data from your block folder is now read back automatically. Further information on this dialog is available in chapter “Dialog mask: List of connections”. Go to the desired block folder.3 Step by step instruction: Call OC Wizard from SIMATIC Manager Description OC Wizard 1) 2) 3) 4) Start the SIMATIC Manager. The “OC Wizard” menu item is only active if a block folder has been selected.3 Step by step instruction: Call OC Wizard from SIMATIC Manager 6. the data from the called block folder is read and transferred in this block folder. Note: For larger projects.

Entrys-ID: 25209116 . Further information on this dialog is available in chapter “Dialog mask: STEP 7 project”. Note If already configured open connections exist in your project.4 Step by step instruction: Create new connection In this chapter we show you step by step the procedure for generating a new open connection.4 Step by step instruction: Create new connection 6. OC Wizard Copyright  Siemens AG 2010 All rights reserved 4. Click “Next” in to get to the next dialog. See: (Step-by-step instruction: Copy connection / Use as template). Click “Next” in this dialog.6 Operation of the Application 6. In this dialog you select a STEP 7 project and a block folder. Further information on this dialog is available in chapter “Dialog mask: Welcome”.3. In this dialog the option “New” has been selected as a standard. Further information on this dialog is available in chapter “Dialog mask: Upload connections” 24 OC Wizard V2. Description 3. you can also create new connections via the “Copy” option. 5.

Here you select the types of the new connection. Click “Next” in this dialog. Further information on this dialog is available inchapter “Dialog mask: Choose the type of your connection”. Entry-ID: 25209116 25 . Further information on this dialog is available in chapter “Dialog mask: Communication partner I”. In these dialogs you enter the parameters for open communication. “Dialog mask: Connection parameters”.4 Step by step instruction: Create new connection Description 6.6 Operation of the Application 6. OC Wizard V2. Further information on these dialogs are available in chapter “Dialog mask: Communication partner II”. OC Wizard 7. Copyright  Siemens AG 2010 All rights reserved 8.3.

Further information on this dialog is available in chapter “Dialog mask: Overview”. 26 OC Wizard V2. Click “Finish“. Copyright  Siemens AG 2010 All rights reserved 11. Further information on this dialog is available in chapter “Dialog mask: Compilation report”. Further information on this dialog is available in chapter “Dialog mask: Chose destination project”. In this dialog you check your details and click “Next”. Entrys-ID: 25209116 .4 Step by step instruction: Create new connection Description 9. OC Wizard 10.6 Operation of the Application 6.3. In this dialog you enter any UDT or DB name. A new connection was configured.

Click “Next” in this dialog.3. In this dialog you select an uploaded connection in the overview.5 Step by step instruction: Change connection In this chapter we show you step by step the procedure for changing an existing connection. Activate the “Change” option and click “Next”. Copyright  Siemens AG 2010 All rights reserved In this dialog you select a STEP 7 project and a block folder.5 Step by step instruction: Change connection 6. Entry-ID: 25209116 27 . OC Wizard 13.6 Operation of the Application 6. Further information on this dialog is available in chapter “Dialog mask: Upload connections”. Further information on this dialog is available in chapter “Dialog mask: STEP 7 project”. 14. OC Wizard V2. Further information on this dialog is available in chapter “Dialog mask: Welcome”. Description 12.

Copyright  Siemens AG 2010 All rights reserved 17. Further information on this dialog is available in chapter “Dialog mask: Communication partner II”. Further information on this dialog is available in chapter “Dialog mask: Communication partner I”. OC Wizard 16.5 Step by step instruction: Change connection Description 15.6 Operation of the Application 6. Click “Next” in this dialog. In these dialogs you can change the parameters for open communication. 28 OC Wizard V2. Click “Next” in this dialog.3. Further information on this dialog is available in chapter “Dialog mask: Chose destination project”. Entrys-ID: 25209116 . “Dialog mask: Connection parameters”.

5 Step by step instruction: Change connection Description 18. Copyright  Siemens AG 2010 All rights reserved OC Wizard V2. Further information on this dialog is available in chapter “Dialog mask: Overview”.6 Operation of the Application 6.3. Entry-ID: 25209116 29 . The selected connection was changed. In this dialog you check your details and click “Next”. Further information on this dialog is available in chapter “Dialog mask: Compilation report”. Click “Finish“. OC Wizard 19.

6 Step by step instruction: Copy connection / use as template 6.6 Step by step instruction: Copy connection / use as template In this chapter we show you step by step the procedure for copying or using an existing connection as template for creating a new connection.6 Operation of the Application 6. Further information on this dialog is available in chapter “Dialog mask: STEP 7 project”. OC Wizard Copyright  Siemens AG 2010 All rights reserved 21. Further information on this dialog is available in chapter “Dialog mask: Welcome”. Click “Next” in this dialog. Further information on this dialog is available in chapter “Dialog mask: Upload connections”.3. Description 20. In this dialog you select an uploaded connection in the overview. In this dialog you select a STEP 7 project and a block folder. 30 OC Wizard V2. 22. Activate the “Copy” option and click “Next”. Entrys-ID: 25209116 .

3. Further information on this dialog is available in chapter “Dialog mask: Chose destination project”. In this dialog you enter any UDT or DB name. Copyright  Siemens AG 2010 All rights reserved 25. Further information on this dialog is available in chapter “Dialog mask: Communication partner I”. OC Wizard 24. Further information on this dialog is available in chapter “Dialog mask: Communication partner II”. OC Wizard V2.6 Operation of the Application 6. Entry-ID: 25209116 31 . In these dialogs you can change the parameters for open communication. “Dialog mask: Connection parameters”. Click “Next” in this dialog.6 Step by step instruction: Copy connection / use as template Description 23.

Click “Finish“. Entrys-ID: 25209116 . Further information on this dialog is available in chapter “Dialog mask: Compilation report”.6 Step by step instruction: Copy connection / use as template Description 26. Further information on this dialog is available in chapter “Dialog mask: Overview”.3.6 Operation of the Application 6. Copyright  Siemens AG 2010 All rights reserved 32 OC Wizard V2. A new connection was configured from the template. In this dialog you check your details and click “Next”. OC Wizard 27.

Generate a new data block for this. the UDT must be integrated into a data block.6 Operation of the Application 6.3. The parameters are now default according to your settings and can be used by the FB65 “TCON“. In the data block you generate a new variable of the UDT type (here: UDT120).7 Required steps for connection configuration in UDT After the UDT was entered into your STEP 7 project. Entry-ID: 25209116 33 .7 Required steps for connection configuration in UDT 6. OC Wizard V2. Figure 6-11 Copyright  Siemens AG 2010 All rights reserved Note This step is only necessary if connection data are filed in a UDT. Connection data filed in a data block can be used directly.

the connection can be cancelled with a rising edge at FB66_REQ. 28. Evaluate the rising edge of FB64_NDR to process the received data.3.6 Operation of the Application 6.8 Operating the example 6. 34 OC Wizard V2. Instruction Triggering the connection setup with rising edge at FB65_REQ in both communication partners. 30. Data is continuously received in the S7-400. After sending was completed. 31. As soon as the connection has been established (FB65_connected) you trigger the data transfer in the CPU319 with a rising edge at FB63_REQ. Entrys-ID: 25209116 . 29. Figure 6-12 Copyright  Siemens AG 2010 All rights reserved Table 6-1 No. This step must be performed in both communication partners. For each communication partner a separate variable table exists (CONTROL).8 Operating the example The example is controlled via the attached variable tables.

com/WW/ view/en/23904550 \ \ Copyright  Siemens AG 2010 All rights reserved OC Wizard V2.automation.automation.3.siemens. Entry-ID: 25209116 35 .siemens.com/WW/ view/en/1214574 http://support.com/WW/ view/en/22868211 http://support.1 Related Literature Internet Link Specifications This list is not complete and only represents a selection of relevant information. Table 7-1 Subject \ “System software for S7300/400 system.7 Related Literature 7 7.automation.siemens.and standard functions” manual Examples and FAQs for open communication via Industrial Ethernet Automation system S7-400 CPU data Title http://support.

2008 04.1.8 History 8 History Table 8-1 Version V1.02. Entrys-ID: 25209116 .3 Date 04.0 Updating for Open Communication Wizard V2.2008 19.0 V2.1 V2.1.2 V2.2010 First issue Updating for Open Communication Wizard V2.1 V2.1 Modification of header and footer Add-on with integration of OC Wizard in STEP 7 Add-on with WinAC Modification of GUI Modifications Copyright  Siemens AG 2010 All rights reserved 36 OC Wizard V2.2007 15.2010 03.05.03.02.3.12.2009 02.4 V2.2009 25.1.06.0 V2.09.