S Data Transfer with SEND/RECEIVE Interface

Similar documents
Production feedback via WinCC Data Transfer with XML file

Communication between HMI and Frequency Converter. Basic Panel, Comfort Panel, Runtime Advanced, SINAMICS G120. Application Example 04/2016

Library Description 08/2015. HMI Templates. TIA Portal WinCC V13.

SINAMICS G/S: Integrating Warning and Error Messages into STEP 7 V5.x or WinCC flexible


Exchange of large data volumes between S control system and WinCC

SIMATIC NET OPC Server Implementation


Automatic Visualization of the Sample Blocks in WinCC Advanced

Key Panel Library / TIA Portal

SINAMICS G/S: Tool for transforming Warning and Error Messages in CSV format

Configuration of an MRP Ring and a Topology with Two Projects

Determination of suitable hardware for the Process Historian 2014 with the PH-HWAdvisor tool

Display of SINAMICS Error Messages in Runtime Professional

Application example 12/2016. SIMATIC IOT2000 OPC UA Client SIMATIC IOT2020, SIMATIC IOT2040

Application example 02/2017. SIMATIC IOT2000 Connection to IBM Watson IoT Platform SIMATIC IOT2040



Multiuser Engineering in the TIA Portal

Display of SINAMICS Fault Messages in WinCC V7.4

TeleService of a S station via mobile network

Generating the Parameters for the Modbus/TCP Communication


Data Storage on Windows Server or NAS Hard Drives

Position Control with SIMATIC S and SINAMICS V90 via IRT PROFINET SINAMICS V90 PROFINET. Application description 03/2016

Setting up time synchronization of Process Historian and Information Server



Checking of STEP 7 Programs for the Migration of S7-318 to S CPU318 Migration Check. Application description 01/2015





Configuration of an MRP ring with SIMOCODE and SIMATIC S SIMOCODE pro V PN, SIMATIC S Siemens Industry Online Support


SIMATIC Energy Suite Visualization example of the "*.csv"-energy Data Files


Synchronizing recipes via a SIMATIC HMI Panel

User Login with RFID Card Reader


Windows firewall settings for X-Tools Server Pro. CMS X-Tools / V / CPU PN/DP. Application description 6/2016

Check List for Programming Styleguide for S7-1200/S7-1500


Engineering of the Configuration Control for IO Systems

X-Tools Loading Profile Files (LPF)

Visualizing Energy Data of a SITOP PSU8600


House Control with Touch Panel



Improving the performance of the Process Historian

WinCC Runtime Professional S7-Graph Overview and PLC Code Viewer

Check List for Programming Styleguide for S7-1200/S7-1500



APF report templates based on data from the WinCC User Archive

Acyclic communication between S and V90PN via PROFINET. Application example 12/

Networking a SINUMERIK 828D

STEP 7 Professional V14 SP1, Energy Suite V14 SP1, SENTRON PAC Measuring Devices, Modbus TCP

Topology Reporter Tool Description April 2012 Applications & Tools Answers for industry.

Diagnostics for enabled Configuration Control with S and ET200SP

Data Synchronization between Head and Field PLCs with Storage of the Process Values in CSV Files

SIMATIC Visualization Architect (SiVArc) Getting Started

Cover. WinAC Command. User documentation. V1.5 November Applikationen & Tools. Answers for industry.

PNDriver V2.1 Quick Start Guide for IOT2040 SIMATIC IOT

Configuring the F-I-Device function with the SENDDP and RCVDP blocks.

I-Device Function in Standard PN Communication SIMATIC S7-CPU, CP, SIMOTION, SINUMERIK. Configuration Example 08/2015

Integration of Process Historian / Information Server in a Domain

Monitoring of 24 V load circuits

Setting up 08/2017. Setting up the SIMATIC IOT2000 SIMATIC IOT2020, SIMATIC IOT2040

Applications & Tools. Service Concept: Auto Backup for the Comfort Panels. WinCC (TIA Portal) V12. Application Description May 2013


Setting up 01/2017. Setting up the SIMATIC IOT2000 SIMATIC IOT2020, SIMATIC IOT2040

Report operator actions with the WinCC WebNavigator


Applications & Tools. Communication between WinAC MP and a SIMATIC S7. Application for the PUT and GET Function Blocks of the S7 Communication

Migration of a Process Historian database

Time Synchronization with an HMI Operator Panel and a SIMATIC PLC

Transmitting HMI data to an external monitor

Applications & Tools. Time-of-Day Synchronization between WinCC Runtime Professional and S7 Controllers. WinCC Runtime Professional


Moving a Process Historian/ Information Server from Workgroup A to Workgroup B

Customizing of WinCC Controls. TIA Portal WinCC Runtime Professional. Application Description July Applications & Tools. Answers for industry.

Using Recipe Functions for persistent Data


TIA Portal Openness: Generating a Modular Machine with S TIA Portal Openness V14 SP1. Application Example 07/2017

Setting up a secure VPN connection between two SCALANCE S Modules Using a static IP Address

SIMATIC PCS 7 Minimal Configuration

Open user communication to 3rd party control system. STEP 7 (TIA Portal), S7-1200/S7-1500, Allen-Bradley. Library description 01/2015

RAID systems within Industry

STEP 7 function block to control a MICROMASTER 4 or SINAMICS G120/G120D via PROFIBUS DP


Plant Data Interface for the Food & Beverage Industry in SIMATIC PCS 7. Interface description based on Weihenstephan Standards

Setting up a secure VPN Connection between SCALANCE S and SSC Using a static IP Address. SCALANCE S, SOFTNET Security Client

Setting up a secure VPN Connection between the TS Adapter IE Advanced and Windows 7

Applikationen & Tools. Network Address Translation (NAT) and Network Port Address Translation (NAPT) SCALANCE W. Application Description July 2009


Application on Control Technology

Applications & Tools. Individual Access to Stored PDF- and HTML-Documents via Comfort Panel. WinCC Comfort V11. Application Description May 2012

Application about Drive Technology

Transcription:

Application Example 04/2016 S7-1500 Data Transfer with SEND/RECEIVE Interface WinCC/IndustrialDataBridge, S7-1500 https://support.industry.siemens.com/cs/ww/en/view/109483465

Warranty and Liability Warranty and Liability Note Security information The Application Examples are not binding and do not claim to be complete with regard to configuration, equipment or any contingencies. The Application Examples do not represent customer-specific solutions. They are only intended to provide support for typical applications. You are responsible for the correct operation of the described products. These Application Examples do not relieve you of the responsibility of safely and professionally using, installing, operating and servicing equipment. When using these Application Examples, you recognize that we cannot be made liable for any damage/claims beyond the liability clause described. We reserve the right to make changes to these Application Examples at any time and without prior notice. If there are any deviations between the recommendations provided in this Application Example and other Siemens publications e.g. Catalogs the contents of the other documents shall have priority. We do not accept any liability for the information contained in this document. Any claims against us based on whatever legal reason resulting from the use of the examples, information, programs, engineering and performance data etc., described in this Application Example shall be excluded. Such an exclusion shall not apply in the case of mandatory liability, e.g. under the German Product Liability Act ( Produkthaftungsgesetz ), in case of intent, gross negligence, or injury of life, body or health, guarantee for the quality of a product, fraudulent concealment of a deficiency or breach of fundamental contractual obligations ( wesentliche Vertragspflichten ). The compensation for damages due to a breach of a fundamental contractual obligation is, however, limited to the foreseeable damage, typical for the type of contract, except in the event of intent or gross negligence or injury to life, body or health. 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 AG. Siemens provides products and solutions with industrial security functions that support the secure operation of plants, systems, machines and networks. In order to secure plants, systems, machines and networks against cyber threats it is necessary to implement (and to maintain continuously) a holistic, state-of-the-art industrial security concept. With this in mind, Siemens products and solutions are only part of such a concept. It is the client s responsibility to prevent unauthorized access to his plants, systems, machines and networks. Systems, machines and components should only be connected with the company s network or the Internet, when and insofar as this is required and the appropriate protective measures (for example, use of firewalls and network segmentation) have been taken. In addition, Siemens recommendations regarding appropriate protective action should be followed. For more information on industrial security, visit http://www.siemens.com/industrialsecurity. Siemens products and solutions undergo continuous development to make them even more secure. Siemens explicitly recommends to carry out updates as soon as the respective updates are available and always only to use the current product versions. Use of product versions that are no longer supported, and failure to apply latest updates may increase customer s exposure to cyber threats. In order to always be informed about product updates, subscribe to the Siemens Industrial Security RSS Feed at http://www.siemens.com/industrialsecurity. Entry ID: 109483465, V1.0, 04/2016 2

Table of Contents Table of Contents Warranty and Liability... 2 1 Task... 4 1.1 Overview... 4 1.2 Requirements of the automation task... 5 2 Solution... 6 2.1 Overview... 6 Example project... 6 2.2 Description of the core functionality... 8 2.3 Sequence of the core functionality... 8 2.4 Hardware and software components... 10 3 Application example: Send/Receive provider module... 11 3.1 Overview... 11 3.2 SIMATIC S7-1500 project (TIA Portal V13)... 12 3.2.1 Opening and editing the configuration... 13 3.2.2 Preparing send data... 13 3.2.3 Communication blocks (TCON, TSEND)... 15 3.2.4 Communication block (TCON)... 16 3.2.5 Communication block (TSEND)... 19 3.2.6 Calling the Send/Receive function block [FB1] in OB1... 20 3.2.7 Simulating the application example... 21 3.2.8 Signal generator [FB10025]... 22 3.2.9 Operating the Application... 23 3.3 IDB configuration system (CS)... 24 3.3.1 Creating and configuring the IDB project... 25 3.3.2 Creating links... 25 3.3.3 Configuring the Send/Receive interface as provider... 27 3.3.4 MS Excel files as consumers... 29 3.3.5 Configuring the link settings... 32 Send/Receive transfer options... 33 Connecting variables (MS Excel file)... 33 3.4 Generating IDB Runtime configuration... 41 4 Error detection... 43 5 Links & Literature... 45 6 History... 45 Entry ID: 109483465, V1.0, 04/2016 3

1 Task 1.1 Overview 1 Task 1.1 Overview Introduction WinCC/IndustrialDataBridge (IDB) is a WinCC option which enables easy and fast configuration of data exchange between various automation systems across various standard interfaces, e.g.: OPC XML, WinCC OLE DB or Send/Receive. The WinCC/IndustrialDataBridge also provides data exchange with other applications for the analysis and storage of process values in Office formats, such as: CSV/TXT, Microsoft Excel or Microsoft Access. It is also possible to integrate databases (e.g. SQL Server, Oracle) for archiving larger amounts of data. The figure below shows a schematic overview of the different applications and format supported by the WinCC/IndustrialDataBridge. Figure 1-1 The data interfaces shown in Figure 1-1 are integrated via software modules. These modules are structured as follows: Entry ID: 109483465, V1.0, 04/2016 4

1 Task 1.2 Requirements of the automation task Provider module The provider module establishes the connection to the data provider which delivers the data. Consumer module The consumer module connects to the data consumer where the data are written. Note You can connect different providers and consumers with each other. The following must be observed: Not all providers are available as consumers and vice versa. Providers and consumers are an integral part of a connection. 1.2 Requirements of the automation task The application describes which software and settings are necessary to implement the following automation tasks: Reading data from an S7-1500 controller via the Send/Receive provider module and exporting it to an MS Office format, e.g. an MS Excel file. Entry ID: 109483465, V1.0, 04/2016 5

2 Solution 2.1 Overview 2 Solution 2.1 Overview This documentation leads you through the configuration of WinCC/IndustrialDataBridge using a practical example. The included TIA example project provides the required environment for the data transfers between provider and consumer modules to be created in the WinCC/IndustrialDataBridge. Example project The contained TIA project IDB-Send-Receive simulates S7 variable values (ID, names, quantity) of a SIEMENS PLC S7-1500 controller. This example provides WinCC/IndustrialDataBridge with the environment for transferring the S7 variable values which can then be transferred to MS Excel via the Send/Receive module. Figure 2-1 below shows a schematic overview of the sample project in TIA Runtime: Entry ID: 109483465, V1.0, 04/2016 6

2 Solution 2.1 Overview Figure 2-1 Delimitation This documentation does not explain how to create the included example project. This document does not contain a description of: WinCC/ConnectivityPack SIEMENS PLC S7-1500 controller TIA Portal V13 Assumed knowledge Basic knowledge of these topics is assumed. TIA Portal V13 Previous knowledge and experience with the following topics is assumed in order to be able to understand the TIA application function description: - Network technology (TCP/IP protocols) - Creating STEP7 projects Entry ID: 109483465, V1.0, 04/2016 7

2 Solution 2.2 Description of the core functionality - SIEMENS PLC S7-1500 controller - TIA Portal V13 2.2 Description of the core functionality The application example is used to familiarize with the configuration interface of IndustrialDataBridge. It shows in detail how to create and configure the IDB project within the WinCC/IndustrialDataBridge using the WinCC project included in the delivery. The application example covers the following topics: Creating a new project and the required link(s) Defining the provider and consumer types Configuring the provider properties Configuring the consumer properties Configuration of the link settings Configuring the relevant provider and consumer variables Generating the Runtime configuration 2.3 Sequence of the core functionality Chapter 3 shows the work steps required for configuring the WinCC/IndustrialDataBridge using the TIA example project IDB-Send-Receive included in the delivery to create a link between the Send/Receive interface as data source and Microsoft Excel as data destination. Figure 2-2 shows a schematic diagram of the process sequence and the interfaces used in the WinCC/IndustrialDataBridge. Entry ID: 109483465, V1.0, 04/2016 8

2 Solution 2.3 Sequence of the core functionality Figure 2-2 Entry ID: 109483465, V1.0, 04/2016 9

2 Solution 2.4 Hardware and software components 2.4 Hardware and software components The application was created with the following components: Hardware component Table 2-1 Component Qty Article number S7-1500 1 S7-1518-4-PN/DP Software components Table 2-2 Component Qty Article number WinCC/IndustrialDataBridge 1 6AV6371-1DX07-3... V7.3 STEP7 TIA Portal V13 SP1 1 6AV2105-...3-0 Update 5 Windows 7 SP1 64-bit 1 Microsoft Excel 2013 1 Example file and project The table below contains the example project contained in this documentation: Table 2-3 Component IDB-Send-Receive.zip Note This zip file contains the project required for Application example No. 2. Download and unzip Download the example project available as download and unzip the received zip archive. Entry ID: 109483465, V1.0, 04/2016 10

3.1 Overview 3 Application example: Send/Receive provider module In this chapter, you will learn how to transfer data from an S7-1500 controller to an MS Excel file with the Send/Receive interface using the WinCC/IndustrialDataBridge and TIA Portal V13. 3.1 Overview The application example shows how to perform the following steps in the WinCC/IndustrialDataBridge using the TIA project IDB-Send-Receive.zap13 : Creating a new IDB project Creating the respective link Configuring the respective provider/consumer links Setting the transmission behavior. Figure 3-1 Entry ID: 109483465, V1.0, 04/2016 11

3.2 SIMATIC S7-1500 project (TIA Portal V13) 3.2 SIMATIC S7-1500 project (TIA Portal V13) Objective of this application The following application example enables the user to read data from an S7-1500 controller using the Send/Receive module as provider and to write them in an Excel file. To use Send/Receive as a provider or consumer, users need to prepare three different components: STEP 7 project IDB configuration system (CS) IDB runtime (RT) Range of functions/topics not covered The focus of this chapter is the function description of the main configuration steps and not how to create the TIA project. The application example does not describe how the implementation in an existing S7 environment. Assumed knowledge Previous knowledge and experience with the following topics is assumed in order to be able to understand the TIA application function description: Network technology (TCP/IP protocols) Step 7 projects SIEMENS PLC S7-1500 controller TIA Portal Entry ID: 109483465, V1.0, 04/2016 12

3.2 SIMATIC S7-1500 project (TIA Portal V13) 3.2.1 Opening and editing the configuration Create a new project in the TIA Portal with proper hardware configuration. Open the TIA project IDB-Send-Receive-zap13 included in the delivery in TIA Portal V13. Select the TIA project included in the delivery by clicking on Project > Retrieve in the menu bar. Then click Open. Configure the IP addresses and subnets for the S7-1500 controller. Figure 3-2 3.2.2 Preparing send data To prepare the send data, proceed as follows: Data type UDT (Send_Data) The following table shows how to create a new UDT data type: Table 3-1 No. Procedure 1 Create a new UDT data type in the project tree under PLC Data type, e.g. (Send_Data). (1) 2 In the existing UDT data type (Send_Data), define the following elements (2): ID => data type as (Int) Name => data type as (String[12]) Value => data type as (Int) Entry ID: 109483465, V1.0, 04/2016 13

3.2 SIMATIC S7-1500 project (TIA Portal V13) No. Procedure 1 2 Data block (XData [DB6]) The table below shows how to create the data block and configure it with the existing UDT data type Send_Data. No. Procedure 1 Create a new data block in the project tree under Program blocks. For example, (XData[DB6]). (1) 2 Within the created (XData[DB6]) data block, create the variable Send with data type Send_Data. (2) 2 1 Entry ID: 109483465, V1.0, 04/2016 14

3.2 SIMATIC S7-1500 project (TIA Portal V13) 3.2.3 Communication blocks (TCON, TSEND) The following communication blocks in function block Send/Receive[FB1] are used for communication with the IndustrialDataBridge: TCON: Establishing communication connection. TSEND: Sending data over the communication connection. Figure 3-3 Input / output variable definition In this example, the following input/output variables have been configured: Entry ID: 109483465, V1.0, 04/2016 15

3.2 SIMATIC S7-1500 project (TIA Portal V13) Figure 3-4 3.2.4 Communication block (TCON) Figure 3-5 shows an overview of the configuration structure of the communication block TCON with the respective input/output variables: Figure 3-5 Establishing the communication connection The table below shows how to establish the communication connection: Entry ID: 109483465, V1.0, 04/2016 16

3.2 SIMATIC S7-1500 project (TIA Portal V13) Table 3-2 Interface Assignment REQ Input variable: Connect ID Connection ID: 1 CONNECT Connection data: PLC_1_Connection_DB Configuring the connection The following table shows how to configure the TCON communication block: Table 3-3 No. Procedure 1. In the Local area: Select TCP in the Connection type drop-down list. (1) Enter 1 in the field Connection ID (dec) (2). Click on New in the Connection data drop-down list to automatically created the connection PLC_1_Connection_DB (3) 2. In the Partner area: Select Unspecified in the End point drop-down list. (4) Enter the IP address of the IDB computer in the Address input field. (5) Click on the option box Active connection establishment to define the IDB as the active partner. (6) Entry ID: 109483465, V1.0, 04/2016 17

3.2 SIMATIC S7-1500 project (TIA Portal V13) No. Procedure 3. In the Address details area: Enter 2000 for the Local Port in the Port (decimal) field. (7) Enter 2000 for the Partner Port in the Port (decimal) field. (8) 4 3 2 1 5 6 7 8 Entry ID: 109483465, V1.0, 04/2016 18

3.2 SIMATIC S7-1500 project (TIA Portal V13) 3.2.5 Communication block (TSEND) Figure 3-6 shows an overview of the interconnection of the communication block TSEND with the respective input/output variables: Figure 3-6 Sending data over the communication connection The table below shows how to establish the communication connection: Table 3-4 Interface Assignment REQ ID DATA Input variable: Send Connection ID: 1, see TCON configuration UDT variable: Send from XData data block Entry ID: 109483465, V1.0, 04/2016 19

3.2 SIMATIC S7-1500 project (TIA Portal V13) 3.2.6 Calling the Send/Receive function block [FB1] in OB1 The table below shows how to call FB1 (instance DB [DB3]) in OB1: Table 3-5 Interface Assignment Connect Send DB_Global_simulation[DB5]: In_connect DB_Global_simulation[DB5]: In_send Entry ID: 109483465, V1.0, 04/2016 20

3.2 SIMATIC S7-1500 project (TIA Portal V13) 3.2.7 Simulating the application example The values of the Value and ID variables are simulated in the networks 2 to 5 of OB1. Table 3-6 No. 1. Simulation of the Value variable. (1) 2. Simulation of the ID variable. (2) Description 1 2 Entry ID: 109483465, V1.0, 04/2016 21

3.2 SIMATIC S7-1500 project (TIA Portal V13) 3.2.8 Signal generator [FB10025] Function block [FB10025] is used to simulate pulse signals for sending the data to the IDB (RT). Note More information on the LGF library for: STEP7 (TIA Portal) S7-1200 S7-1500 Can be found under the following Entry ID: 109479728 Figure 3-7 shows the configuration of the signal generator in OB1 in this application example (networks: 6, 7 & 8): Figure 3-7 Entry ID: 109483465, V1.0, 04/2016 22

3.2 SIMATIC S7-1500 project (TIA Portal V13) 3.2.9 Operating the Application Table 3-7 No. Procedure 1. Open the included TIA application IDB-Send-Receive.zap13 in TIA V13. 2. Load the PLC program into the controller (1). 3. In the toolbar, click the Go online button (2). 4. Open the OB1 organization block (3). 5. In the toolbar, click the Monitor on/off button. (4) 6. Right-click the Connect interface in Network 1. Then left-click on Modify and right-click on Modify to 1. (5) Entry ID: 109483465, V1.0, 04/2016 23

3.3 IDB configuration system (CS) 3.3 IDB configuration system (CS) This chapter shows all steps required in the IDB configuration system (CS) for creating and configuring an IDB project for establishing a link between data source and data destination. Figure 3-8 IDB configuration system (CS) IDB project Link Provider interface Consumer interface Send / Receive SR > Excel Link settings MS Excel Generating the Runtime configuration Entry ID: 109483465, V1.0, 04/2016 24

3.3 IDB configuration system (CS) 3.3.1 Creating and configuring the IDB project Opening the IDB configuration system (CS) Start the IDB (CS) using the desktop link IndustrialDataBridge CS or with the entry from the start menu Start > All programs > Siemens Automation > IndustrialDataBridge > IndustrialDataBridge CS. Creating a new project Create a new project as described in the table below: Table 3-8 No. Procedure 1. Click Projects > New project in the menu bar. 2. In the Create a new project window, enter a project name, e.g. IDB_SendReceive_Application (1), and a storage path for the new IDB project (2). 3. Click the Create button (3). The created project is displayed in the list in the navigation area. The next step is to create a link. 3.3.2 Creating links To create a link between provider and consumer, proceed as follows: Note A link with the Send/Receive interface as provider and the Excel interface as consumer is created. Entry ID: 109483465, V1.0, 04/2016 25

3.3 IDB configuration system (CS) Table 3-9 No. Procedure 1. Right-click the project name node IDB_SendReceive_Application in the tree structure and select Add new link. (1) 2. Creating SR > Excel link In the Add new link dialog, enter a unique name for the link to be created, e.g. SR > Excel. (1) Select Send/Receive as provider in the provider field. (2) Select Excel as data destination in the consumer field. (3) Then click OK (4). 1 2 3 Note: For a better overview, it is sensible to identify the link with the name of the desired provider and the respective consumer when assigning names. Provider > Consumer Entry ID: 109483465, V1.0, 04/2016 26

3.3 IDB configuration system (CS) No. Procedure 3. The created link is displayed under the project name in the project tree. The next step is configuring the provider interface (Send/Receive). 3.3.3 Configuring the Send/Receive interface as provider To create the Send/Receive interface, proceed as follows: Entry ID: 109483465, V1.0, 04/2016 27

3.3 IDB configuration system (CS) Table 3-10 No. Procedure 1. Double-click the provider node Provider(Send/Receive) within the desired link in the project tree. 2. In the Send/Receive provider configuration window / in the General area Enter the total data length of the variables to be read as a sum in bytes in the Data length (bytes) field. The data length of the variables is calculated as follows: - ID => Int = (2 bytes) - Name => String = (12 bytes) +(2 bytes header information) = (14 bytes) - Value => Int = (2 bytes) Thus the data length of the variable to be entered is: (18 bytes). (1) Enable the Active establishing of connection checkbox. (2) Entry ID: 109483465, V1.0, 04/2016 28

3.3 IDB configuration system (CS) No. Procedure 3. In the Send/Receive provider configuration window / in the Addresses area In the IndustrialDataBridge IP address field, enter the same IDB IP address as you have entered in TIA V13 in the Configuration / Connection parameters tab in the Partner area. (1) In the PLC IP address field, enter the same PLC IP address as you have entered in TIA V13 in the Configuration / Connection parameters tab in the Local area. (2) In the IndustrialDataBridge port field, enter the same port address as you have entered in TIA V13 in the Configuration / Connection parameters tab in the Address extension / Partner Port area. (3) In the PLC port field, enter the same port address as you have entered in TIA V13 in the Configuration / Connection parameters tab in the Address extension / Local Port area. (4) 1 2 3.3.4 MS Excel files as consumers Storage location structure It is advisable to create a structured storage location for better overview. For multiple links, this has the benefit of being able to divide the logs to be created depending on consumer type. 4 3 Entry ID: 109483465, V1.0, 04/2016 29

3.3 IDB configuration system (CS) To configure the MS Excel interface, proceed as follows: Table 3-11 No. Procedure 1. Double-click the Consumer(Excel) consumer node in the project tree. 2. In the project area in the Excel save configuration tab in the Excel configuration area, click on [...] and select the folder for the Excel logs to be created. Entry ID: 109483465, V1.0, 04/2016 30

3.3 IDB configuration system (CS) No. Procedure Enter the name of the SR Excel file to be created in the Save as browser window in the File name text field (1). Then click Save (2). 3. The File name text field in the Excel configuration area is filled in automatically. Entry ID: 109483465, V1.0, 04/2016 31

3.3 IDB configuration system (CS) No. Procedure 4. In the Advance options tab In the Sheet names tab, select the Set sheet name as option (1) and enter SR Excel as a name in the Sheet 1 input field (2). Select option 1 for each workbook in the Sheets per workbook area. (3) In the Automatic save options, enable the Save after a specific time checkbox and enter the desired save period, e.g. 1 minute. (4) In the Suffix of the file name area, enable the Date/time option. (5) 3 4 3.3.5 Configuring the link settings Double-click the Settings node in the project tree and open the Settings window in the work area. The Settings window contains three tabs: Transfer options, Connection mapping and Connections. Entry ID: 109483465, V1.0, 04/2016 32

3.3 IDB configuration system (CS) Figure 3-9 Send/Receive transfer options For the transfer configuration of the Send/Receive provider, proceed as follows in the Transfer options tab: Table 3-12 No. Procedure 1. In the Send/Receive transfer options window Select the option field Send always all values in the Data transfer settings area. Connecting variables (MS Excel file) In the Settings window, click on the Connection mapping tab and proceed as follows: Entry ID: 109483465, V1.0, 04/2016 33

3.3 IDB configuration system (CS) Note The Connection mapping tab contains the following areas: Send/Receive provider Excel consumer Connection mapping settings Default name options Connections This application example considers the following column names from the Send/Receive provider area for preparing and creating an Excel file: Table 3-13 Byte assignment ID Name Value Header Int String Int information 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 ID: contains a running number => first byte is 0. Name: contains the variable name => first byte is 2. Value: contains the variable value => first byte is 16. Preparing the Excel file: To transfer variables from the Send/Receive provider to an Excel file, the desired byte assignment from the Send/Receive provider area must be mapped to the Excel consumer area as follows: Table 3-14 First byte (Send/Receive provider) Column name (Excel consumer) 0 ID 2 Name 16 Value Entry ID: 109483465, V1.0, 04/2016 34

3.3 IDB configuration system (CS) First byte (Send/Receive provider) Column name (Excel consumer) The figure shows how the completed Excel file looks after preparation: Entry ID: 109483465, V1.0, 04/2016 35

3.3 IDB configuration system (CS) The procedure is as follows: Mapping column names: Column name (ID) Table 3-15 No. Procedure 1. In the Send/Receive provider area Enter byte number 0 in the First byte field. (1) In the Requested data type drop-down list, select Unsigned short (VT_UI2) (2). 2. In the Connection mapping settings area The Connection name field shows the byte number entered in the Send/Receive Provider area and the selected data type 0, UI2 (1). Note: If the selected variable name cannot be displayed in the Connection name field, deactivate and then re-activate the Enable default name option (2). 1 Entry ID: 109483465, V1.0, 04/2016 36

3.3 IDB configuration system (CS) No. Procedure 3. In the Excel consumer area Enter the column name ID to be mapped in the Column name text field (1). In the Data type drop-down list, select Unsigned short (VT_UI2) (2). 4. In the Default name options area If the column names in the provider and consumer areas differ, the option Name equal to provider and consumer is recommended. 5. Now the connection name in the Connection mapping settings area has changed to 0, UI2->ID (1). Click on the icon to create the connection between the two selected column names of both areas (provider and consumer) (2). 1 6. Repeat steps 1 and 5 for the remaining Value column. In doing so, keep in mind that byte number 16 is the first byte for the Value column. Table 3-14 Entry ID: 109483465, V1.0, 04/2016 37

3.3 IDB configuration system (CS) Column name (Name) No. Procedure 1. In the Send/Receive provider area Enter byte number 2 in the First byte field. (1) In the Requested data type drop-down list, select OLE/Binary Automation string (VT_BSTR) (2). Enter 12 as the string length in the Number field. (3) In the Interpret as drop-down list, select Byte-String as data type (4). 2. In the Connection mapping settings area The Connection name field shows the byte number entered in the Send/Receive Provider area and the selected data type 2, BSTR (1). Note: If the selected variable name cannot be displayed in the Connection name field, deactivate and then re-activate the Enable default name option (2). 1 Entry ID: 109483465, V1.0, 04/2016 38

3.3 IDB configuration system (CS) No. Procedure 3. In the Excel consumer area Enter the column name Name to be mapped in the Column name text field (1). In the Data type drop-down list, select OLE/Binary Automation string (VT_BSTR) (2). 4. In the Default name options area If the column names in the provider and consumer areas differ, the option Name equal to provider and consumer is recommended. 5. Now the connection name in the Connection mapping settings area has changed to 2, BSTR->Name (1). Click on the icon to create the connection between the selected column names of both areas (provider and consumer) (2). 1 Entry ID: 109483465, V1.0, 04/2016 39

3.3 IDB configuration system (CS) No. Procedure 6. In the Connections area This area shows all existing connections. Entry ID: 109483465, V1.0, 04/2016 40

3.4 Generating IDB Runtime configuration 3.4 Generating IDB Runtime configuration To generate the Runtime configuration file, proceed as follows: Table 3-16 No. Procedure 1. Click Save in the IDB menu bar (1). 2. Then click Generate runtime configuration (2). 3. Save the IDB configuration file IDB_SendReceive_Application.xml in the appropriate folder. 4. Click the Runtime configuration button in the IDB menu bar (3). Result 5. In the Runtime configuration area: Enable the Connect automatically and enable connection(s) checkbox. In the Start-up option area: In the Open existing configuration file text field, click on the [...] button. Activate the Enable automatic track checkbox. Select 5 seconds in the Waiting time before connecting (seconds) field as wait time. This serves for activating/deactivating the respective connections. Then click "OK". Generating the IDB runtime configuration is now complete. Start the IndustrialDataBridge (RT) and proceed as follows: Start the TIA application as described in chapter 3.2.9 Operating the Application. Let the IndustrialDataBridge(RT) run for 1-2 minutes. Then click on Stop and then Disconnect in the IndustrialDataBridge(RT) toolbar. The transferred values can be found in the target folder in the respective consumer file. MS Excel The following mappings are examples for results of the data transfer to MS Excel file: Entry ID: 109483465, V1.0, 04/2016 41

3.4 Generating IDB Runtime configuration Figure 3-10 Entry ID: 109483465, V1.0, 04/2016 42

4 Error detection 4 Error detection This chapter lists frequently occurring errors of the respective application examples: Table 4-1 No. Behavior Possible cause(s) 1. Error message upon activation of the SIMATIC WinCC Runtime. 2. You have IDB installed and cannot configure a STEP 7 project via the Send/Receive interface. Possibly, your computer is not configured as server computer. The use of Send/Receive as provider or consumer requires a STEP 7 project as well. This project cannot be configured in IDB. A STEP 7 project is created and loaded to the PLC. Without this project, Send/Receive will not function in IDB Runtime. 3. You cannot get data, although the Connectivity Pack is installed. 4. IDB runtime signals an error during start-up. The Microsoft Message Queue (MSQM) Server Core service might not be activated. How to activate your service is described in the WinCC/Connectivity Pack system manual under How to install Microsoft Message Queuing. Possibly, you do not have administrator rights. Proceed as follows to rectify the error: Right-click on the start menu entry Programs > Siemens Automation > IndustrialDataBridge > execute as administrator and select the context menu item IndustrialDataBridge(RT). Possibly, the IDB runtime service has not been started yet. Proceed as follows to rectify the error: Right-click on the start menu item Computer. Then click Manage. Doubleclick on Services and applications > Services in the Computer Management window. Right-click on IndustrialDataBridge runtime > Properties. Select the option Automatic from the drop-down list in the Startup type area, then click on the Start button. Entry ID: 109483465, V1.0, 04/2016 43

4 Error detection No. Behavior Possible cause(s) 5. MS Excel delivers less values compared with the CSV /TXT file The CSV/TXT file as consumer type has a significantly higher access speed than the Excel data type. Entry ID: 109483465, V1.0, 04/2016 44

5 Links & Literature 5 Links & Literature Table 5-1 Topic Title \1\ Siemens Industry Online http://support.industry.siemens.com Support \2\ Download page of the entry https://support.industry.siemens.com/cs/ww/en/view/10 9483465 \3\ System Manual WinCC/Connectivity Pack V7.3 https://support.industry.siemens.com/cs/ww/en/view/10 2768149/68357937035 \4\ System manual WinCC/IndustrialDataBridge V7.2 \5\ SIMATIC HMI WinCC V7.2 WinCC/IndustrialDataBridge Getting Started \6\ Data Transmission from WinCC Professional Runtime with the help of IndustrialDataBridge \7\ Communication between SIMATIC WinCC IndustrialDataBridge and SIMATIC S7 \8\ Info on SIMATIC/IndustrialDataBridge V7.3 https://support.industry.siemens.com/cs/ww/en/view/73 968374/54432553995 https://support.industry.siemens.com/cs/ww/en/view/73 968329/48054187787 https://support.industry.siemens.com/cs/ww/en/view/10 9476988 https://support.industry.siemens.com/cs/ww/en/view/10 4117374 https://support.industry.siemens.com/cs/de/en/view/95 157030 6 History Table 6-1 Version Date Modifications V1.0 04/2016 First version Entry ID: 109483465, V1.0, 04/2016 45