SIMATIC NET OPC Server Implementation

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


Configuration of an MRP Ring and a Topology with Two Projects

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

Automatic Visualization of the Sample Blocks in WinCC Advanced

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

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


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

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




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

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

Data Storage on Windows Server or NAS Hard Drives

APF report templates based on data from the WinCC User Archive

Setting up time synchronization of Process Historian and Information Server

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



Generating the Parameters for the Modbus/TCP Communication



Multiuser Engineering in the TIA Portal

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

Integration of Process Historian / Information Server in a Domain

Display of SINAMICS Error Messages in Runtime Professional

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


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



Migration of a Process Historian database

Display of SINAMICS Fault Messages in WinCC V7.4


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

X-Tools Loading Profile Files (LPF)

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



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

Production feedback via WinCC Data Transfer with XML file

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


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

Improving the performance of the Process Historian

Visualizing Energy Data of a SITOP PSU8600

House Control with Touch Panel

S Data Transfer with SEND/RECEIVE Interface

PNDriver V2.1 Quick Start Guide for IOT2040 SIMATIC IOT

RAID systems within Industry



Exchange of large data volumes between S control system and WinCC

SIMATIC Visualization Architect (SiVArc) Getting Started

User Login with RFID Card Reader

Transmitting HMI data to an external monitor

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

Key Panel Library / TIA Portal

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





Networking a SINUMERIK 828D

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


Calculating the expected PH storage requirements of SIMATIC BATCH batches

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

Integration of SIMATIC PCS 7 Asset Management into existing projects

SIMATIC PDM - Central access to MODBUS RTU devices

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


Integral calculation in PCS 7 with "Integral" FB or "TotalL" FB

Application on Control Technology

Report operator actions with the WinCC WebNavigator

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

Synchronizing recipes via a SIMATIC HMI Panel

SIMATIC PCS 7 Minimal Configuration

PCS 7 Process Visualization on Mobile Devices with RDP

X-Tools configuration to connect with OPC servers and clients

Time Synchronization with an HMI Operator Panel and a SIMATIC PLC

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

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

Engineering of the Configuration Control for IO Systems

WinCC Runtime Professional S7-Graph Overview and PLC Code Viewer

Universal Parameter Server

TeleService of a S station via mobile network

SINAMICS V: Speed Control of a V20 with S (TIA Portal) via MODBUS RTU, with HMI

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


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

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

Application about Drive Technology

Sending and Receiving SMS Messages via a SCALANCE M Router SCALANCE M874/M876, S7-1200/S CPU / V1.0. Application Example 06/2016

SIMOTION and HMI configuration

Setting up a secure VPN Connection between CP x43-1 Adv. and SOFTNET Security Client Using a static IP Address

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

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

Transcription:

Application example 05/2016 SIMATIC NET OPC Server Implementation PDI HMI@F&B https://support.industry.siemens.com/cs/ww/en/view/100744248

Warranty and liability Warranty and liability Note The Application Examples are not binding and do not claim to be complete regarding the circuits shown, equipping and any eventuality. The Application Examples do not represent customer-specific solutions. They are only intended to provide support for typical applications. You are responsible for ensuring that the described products are used correctly. These Application Examples do not relieve you of the responsibility to use safe practices in application, installation, operation and maintenance. 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 without prior notice. If there are any deviations between the recommendations provided in these Application Examples and other Siemens publications e.g. Catalogs the contents of the other documents 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 a condition which goes to the root of the contract ( wesentliche Vertragspflichten ). The damages for a breach of a substantial contractual obligation are, 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 the Siemens AG. Security information Siemens provides products and solutions with industrial security functions that support the secure operation of plants, systems, machines and networks. In order to protect plants, systems, machines and networks against cyber threats, it is necessary to implement and continuously maintain a holistic, state-of-the-art industrial security concept. Siemens products and solutions only form one element of such a concept. Customer is responsible to prevent unauthorized access to its plants, systems, machines and networks. Systems, machines and components should only be connected to the enterprise network or the internet if and to the extent necessary and with appropriate security measures (e.g. use of firewalls and network segmentation) in place. Additionally, Siemens guidance on appropriate security measures should be taken into account. For more information about industrial security, please visit http://www.siemens.com/industrialsecurity. Siemens products and solutions undergo continuous development to make them more secure. Siemens strongly recommends to apply product updates as soon as available and to always use the latest 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. To stay informed about product updates, subscribe to the Siemens Industrial Security RSS Feed under http://www.siemens.com/industrialsecurity. Entry-ID: 100744248, V1.0, 05/2016 2

Table of contents Table of contents Warranty and liability... 2 1 Overview of a plant wide automation concept for Food and Beverage Industry... 4 2 General requirements... 5... 6 3.1 Configuration of OPC symbol file for SIMATIC PLCs... 6 3.1.1 Modification of OPC symbol files... 6 3.2 Configuration of OPC symbol file for SIMOTION controllers... 8 3.2.1 Generate OPC export from SIMOTION Scout engineering... 8 3.3 Merging of OPC symbol files... 12 3.4 Implementation of OPC symbol files... 13 4 Abbreviations... 16 5 Related literature... 17 6 History... 17 Entry-ID: 100744248, V1.0, 05/2016 3

1 Overview of a plant wide automation concept for Food and Beverage Industry 1 Overview of a plant wide automation concept for Food and Beverage Industry In the Food and Beverage Industry is substantial room for improvement, to increase the efficiency and effectiveness of existing and planned new production lines. An essential contribution to this will provide the integrated linking of production lines and machines from the inbound of raw material to production, packaging up to the outgoing goods, as well as the consistent recording of production parameters like quantities, machine time, etc. These data can be analyzed at management systems and sustainable measures for improvement can be initiated. Today this partly causes big efforts, because machines and components of different manufacturers have to be linked and the collected data has to be synchronized. Therefore a plant wide integration concept for line integration from Siemens AG includes the machine level, supervisory systems up to MES (Manufacturing Execution System) from incoming goods across food processing and food packaging areas to outgoing goods and storage. This concept contains different modules such as Line Monitoring, Line Control and Line HMI (Human Machine Interface). One of such modules is the machine interface, which is described herein. Brief architecture description The following picture gives an overview about the communication between line HMI and machines. PDI interface module provides several interfaces Data Blocks (DB) for SIMATIC PLCs and SIMOTION programs (PR) and the corresponding WinCC structures. Based on requirement, OEM can choose and implement the interface at the machine level controller and WinCC can access the machine data via structured tags. Using WinCC faceplates the machine information is visualized. Figure 1-1 Communication topology Entry-ID: 100744248, V1.0, 05/2016 4

2 General requirements 2 General requirements Prerequisite PDI V2 must be implemented in all unit controllers and controllers must have Ethernet connectivity to SIMATIC NET OPC Server. Hardware and Software requirements Software SIMATIC NET V12 SP2 which is released with WinCC V 7.3. SIMATIC NET V12 SP2 should be installed on WinCC Server. Layout overview of a Line HMI Figure 2-1 S88 levels In the picture above a schematic structure of a PDI Line HMI project is shown. The green colored symbols are available as a PDI Line HMI template, and can be used with or without modifications. The usage of the HMI templates is described in detail in further chapters. Entry-ID: 100744248, V1.0, 05/2016 5

3.1 Configuration of OPC symbol file for SIMATIC PLCs There are predefined SIMATIC NET OPC Symbol files available for S7-300, S7-400, S7-1200 and S7-1500 PLCs which can be downloaded from the Siemens Industry Online Support: Line HMI Library for TIA in the Food & Beverage Industry ATI files are named S7<PLC type 1>_S7<PLC type 2>_<PDI name>.ati and work only for PLC type 1 and PLC type 2 because of PLC type s specific settings in the variable s runtime name. The symbol file is structured hierarchically and has a structure similar to PDI data blocks. 3.1.1 Modification of OPC symbol files The predefined SIMATIC NET OPC Symbol files need to be adapted to PLC s IP address and DB number and to the project s hierarchy names. The ATI files can only be opened with Symbol editor which is automatically installed with SIMATIC NET. For modification of IP address each variable s Runtime name need to be adapted. This can be done manually as shown below. Figure 3-1 Modification of IP address in ATI file For modification of DB number each variable s Runtime name need to be adapted. This can be done manually as shown below. Figure 3-2 Modification of DB number in ATI file Entry-ID: 100744248, V1.0, 05/2016 6

For modification of project s hierarchy the below shown structure of Plant, Area, Line and Unit need to be adapted. This can be done manually as shown below. Figure 3-3 Modification of plant hierarchy in ATI file Alternatively the OPC Symbol file can be exported as csv file and modified in Microsoft Excel or Notepad and reimported again. Figure 3-4 Export/Import OPC Symbol file Entry-ID: 100744248, V1.0, 05/2016 7

3.2 Configuration of OPC symbol file for SIMOTION controllers 3.2.1 Generate OPC export from SIMOTION Scout engineering For SIMOTION the OPC symbol file is generated form SIMOTION Scout engineering. There are several steps necessary to perform the OPC export successfully. 1. Create a new watch table as shown below. Figure 3-5 Create new watch table 2. Name the watch table. Figure 3-6 Name watch table Entry-ID: 100744248, V1.0, 05/2016 8

3. Mark and copy the PDI in PROGRAMS. 4. Paste to new watch table. Figure 3-7 Copy PDI in PROGRAMS and paste to watch table 5. Redo for all PDIs which should be exported. 6. Click on menu Options and choose the command Export OPC data. Figure 3-8 Menu Options and Export OPC data Entry-ID: 100744248, V1.0, 05/2016 9

7. Select Data for Export settings as shown below (1) and click on OK. 8. Browse path for target directory (2) and click on OK. 9. Select TCP/IP for Protocol and select the Interface which is connected to SIMATIC NET OPC Server (3) and click on OK. 10. Click on No for no gateway (4). Figure 3-9 Export parameter 1 2 3 4 11. See OPC data export status display for successful export. Figure 3-10 OPC data export status display Entry-ID: 100744248, V1.0, 05/2016 10

12. The exported files need to be copied to SIMATIC NET OPC Server. 13. Open the STI file with symbol editor on SIMATIC NET OPC Server and save it again as ATI file. 14. The file OPC_AE.xml need to be copied to C:\ProgramData\Siemens\SIMATIC.NET\opc2\binS7\simotion\xml\OPC_AE.x ml on SIMATIC NET OPC Server. 15. When several OPC_AE.xml files exist from different SIMOTION controllers then these files need to be merged using SIMOTION OPC File Manager on SIMATIC NET OPC Server. 16. Click on add to select OPC_AE.xml of all SIMOTION controller s OPC export. 17. Click on Create output file to merge all OPC_AE.xml to one file which is stored in the Destination path. Do not change Destination path folder. Figure 3-11 Simotion OPC File Manager Entry-ID: 100744248, V1.0, 05/2016 11

3.3 Merging of OPC symbol files The OPC symbol files need to be merged to one file for use in SIMATIC NET OPC Server. The OPC symbol file can be exported as csv file. 1. Export all OPC symbol files as csv file 2. Open Symbol Editor and import all csv files step by step Figure 3-12 Export/Import OPC Symbol file 3. Open Symbol Editor and import all csv files step by step. Figure 3-13 Merged OPC file Figure 3-1 Merged OPC Symbol file 4. Save the ATI file with specific name e.g. the plant name. Entry-ID: 100744248, V1.0, 05/2016 12

3.4 Implementation of OPC symbol files The merged OPC symbol file needs to be implemented in SIMATIC NET OPC Server. 1. Open Communication Settings and select Shut down OPC Servers (1). 2. Click on Stop (2) to shut down OPC Servers and wait until box appears (3), then click on OK. Figure 3-14 SIMATIC NET Communication settings - Shut down OPC Servers 1 3 2 3. Select the entry Symbols (4) in folder OPC settings. 4. Double click in line below Active symbol files (5). 5. At File name click on button (6) on the right and select merged symbol file. 6. Click at Additional settings for SIMOTION and select SIMOTION module. 7. Select the network access point (7) which is connected to the SIMOTION controllers and click on Apply button. Figure 3-15 Communication settings 4 5 6 7 Entry-ID: 100744248, V1.0, 05/2016 13

8. Select the folder Access points (8). 9. Select for CP_PN_1 (9) the network access point (10) which is connected to the SIMATIC PLCs and click on Apply button. Figure 3-16 SIMATIC NET Communication settings Access point CP_PN_1 9 8 10 Entry-ID: 100744248, V1.0, 05/2016 14

10. For connection and quality check open SIMATIC NET s OPC Scout V10. 11. Expand the folder OPC_SimaticNET > \SYM (11). 12. Browse to specific variables, select them and drag and drop them to DA view window below (12). 13. Click on Monitoring ON (13) and check quality of variables. Figure 3-17 12 11 13 Entry-ID: 100744248, V1.0, 05/2016 15

4 Abbreviations 4 Abbreviations Table 4-1: Abbreviations Abbreviation DB F&B EM FPT HMI IF KPI LM LMS OMAC OPL PLC PDI PCC WS Explanation Data Block Food and Beverage Energy Management Face Human Machine Interface Interface Key Performance Indicator Line Monitoring Line Monitoring System Open Modular Architecture Controls Optimized Packaging Line Programmable Logic Controller Plant Data Interface Plant Communication Concept Weihenstephan Entry-ID: 100744248, V1.0, 05/2016 16

5 Related literature 5 Related literature Table 5-1 Topic \1\ Siemens Industry Online Support https://support.industry.siemens.com \2\ Download page of this entry https://support.industry.siemens.com/cs/ww/en/view/100744248 \3\ Line Integration at the Food & Beverage Industry (Overview) https://support.industry.siemens.com/cs/ww/en/view/109483779 6 History Table 6-1 Version Date Modifications V1.0 05/2016 First version Entry-ID: 100744248, V1.0, 05/2016 17