Service & Support. How can you establish a connection between a S7-1200 PLC and SIMATIC NET OPC? S7-1200 PLC, SIMATIC NET OPC.



Similar documents
Service & Support. How can you establish a connection between an S PLC and SIMATIC NET OPC? S PLC, SIMATIC NET OPC.

TECHNICAL NOTE TNOI34

WinCC. Communication Manual. Manual 2. This manual is part of the documentation package with the order number: 6AV6392-1CA05-0AB0 C79000-G8276-C156-01

FAQ Communication over IE

PROCESS AUTOMATION PLANNING AND INTEGRATION INFORMATION LB8106* Integration in Siemens SIMATIC PCS 7

PROFINET IRT: Getting Started with The Siemens CPU 315 PLC

S7 OPC Server Tutorial

HTML Code Generator V 1.0 For Simatic IT Modules CP IT, IT, IT

The goal is to program the PLC and HMI to count with the following behaviors:

FAQ about Drive Technology

1 Application Description Objective Goals... 3

Using the WAGO PROFINET Coupler as Remote I/O with a Siemens S7 PLC

ABB industrial drives. Quick start-up guide Drive Manager for SIMATIC

How-To-Do. Hardware Configuration SLIO CPU 014

Profinet to EDV111 Series LED Signs Siemens Function Block Software Manual

SIMATIC Expert Communication Connecting S7-400H to PC Station (WinCC)

USER GUIDE. Ethernet Configuration Guide (Lantronix) P/N: Rev 6

1 Application Description System Topology Hardware and Software Requirements... 3

Creating the program. TIA Portal. SIMATIC Creating the program. Loading the block library. Deleting program block Main [OB1] Copying program blocks

Tutorial: Configuring GOOSE in MiCOM S1 Studio 1. Requirements

8/23/13 Configuring the S7 I/O Server for Windows 95 to Access S7 PLCs Via the Profibus Network

Installing a Browser Security Certificate for PowerChute Business Edition Agent

8/23/13 Configuring the S7 Server for Windows NT 4.0 to Access S7-400 PLCs via the Siemens CP1613 Card for ISO (Industrial Ethernet)

PROFINET IO Diagnostics 1

Service & Support. How do you create a communication of VNC with an Industrial Thin Client SIMATIC ITC? Thin Client.

SIMATIC NET. Step by Step: Ethernet Communication between OPC Server and S7-200 incl. CP Overview and Environment. Contents

CPU PN/DP: Configuring an ET. 200S as PROFINET IO device SIMATIC. PROFINET CPU PN/DP: Configuring an ET 200S as PROFINET IO device

Training Document for Comprehensive Automation Solutions Totally Integrated Automation (T I A) MODUL E04

Cisco - Configure the 1721 Router for VLANs Using a Switch Module (WIC-4ESW)

Cover PROFINET IO. Code Reader System SIMATIC MV440 / MV420. FAQ June Service & Support. Answers for industry.

SIMATIC PCS 7. SIMATIC Maintenance Station PDM A stand-alone Solution. Siemens AG All Rights Reserved.

Tech Tips Helpful Tips for Pelco Products

1 How configure S7 PLC in the configuration tool

Cover sheet PROFINET IO. SIMATIC MV440 Code Reading System. FAQ February Service & Support. Answers for industry.

Service & Support. How do you create a communication of RDP with an Industrial Thin Client SIMATIC ITC? Thin Client.

FAQ Communication over IE

How many high-speed counters (HSCs) are provided by the SIMATIC S PLC? SIMATIC S FAQ March Service & Support. Answers for industry.

S7 for Windows S7-300/400

Service & Support. How do you configure time synchronization using the NTP procedure (without SICLOCK) for small PCS 7 plants?

Getting Started - SINAMICS Startdrive. Startdrive. SINAMICS Getting Started - SINAMICS Startdrive. Introduction 1

Applications & Tools. Migration to TIA Portal. WinCC Basic / Comfort / Advanced STEP 7 V5.x / WinCC flexible 2008 SP3. Migration Guide September 2013

Validity 1. Improvements in STEP 7 2. Improvements in WinCC 3. Simatic. Readme. Readme

BASLER ACE QUICK INSTALLATION GUIDE

DCOM Setup. User Manual

Service & Support. How Can You Have Diagnostics Data of IPCs Displayed in WinCC? WinCC, IPC and DiagMonitor. FAQ July Answers for industry.

Applications & Tools. Configuration of Messages and Alarms in WinCC (TIA Portal) WinCC (TIA Portal) Application description December 2012

SIMATIC PDM V6.0. Getting Started Edition 12/2004

STEP 7 MICRO/WIN TUTORIAL. Step-1: How to open Step 7 Micro/WIN

IGSS. Interactive Graphical SCADA System. Quick Start Guide

Training document for the company-wide automation solution Totally Integrated Automation (T I A) MODULE A5. PLC-Simulation with S7-PLCSIM

S-SupremaConfigurationGuide-DOC 7/23/2014. Suprema Biometrics Configuration Guide ACS OnSite Aparato

Training Document for Comprehensive Automation Solutions Totally Integrated Automation (T I A) MODULE A5 Programming the CPU 314C-2DP

How-To-Do. EtherCAT Communication with CPU 300S

Training Document for Comprehensive Automation Solutions Totally Integrated Automation (T I A) MODULE C2. High Level Programming with S7-SCL

PPC S SMART PRACTICE AIDS

Basic Engineering in SmartPlant Instrumentation

Configuring the SST DeviceNet OPC Server

SIMATIC. S7 300 PLC CPU 317T-2 DP: Controlling a virtual axis. Introduction. Preparation. Learning units 3. Further information 4.

CCNA Discovery Networking for Homes and Small Businesses Student Packet Tracer Lab Manual

E-Blocks Easy Internet Bundle


Package Contents. D-Link DSN-3200/3400 Installation Guide. DSN-3200/3400 xstack Storage Area Network (SAN) Array. CD-ROM with User Guide.

Symantec Enterprise Vault

Merging Labels, Letters, and Envelopes Word 2013

Application Note Siemens PLC and SIMATIC STEP 7 / TIA Portal

Recommended Network Setup

Flexi Soft Ethernet IP: Implicit Messaging with a Omron PLC

28 What s New in IGSS V9. Speaker Notes INSIGHT AND OVERVIEW

Connecting the DG-102S VoIP Gateway to your network

DEPLOYING A VISUAL BASIC.NET APPLICATION

S SIMATIC S Welcome. Automation task. Hardware section 2. Software section 3. Security. Getting Started 05/2014 A5E AC

HOW TO CREATE AN HTML5 JEOPARDY- STYLE GAME IN CAPTIVATE

Service & Support. How do you synchronize the time of the HMI Basic Panel with a S PLC? S PLC, HMI Basic Panel.

Windows Vista / Windows 7 Installation Guide

SIEMENS. Operating Web Server. Opening program and changing message text properties

Applications & Tools. Remote Control Concept with SCALANCE S Modules over IPsec-secured VPN Tunnel SCALANCE S. Application Description February 2010

Configuring Your Firewall for Client Access in Professional Edition

WinCC Runtime Professional Readme SIMATIC HMI. WinCC V11 SP1. Readme WinCC Runtime Professional. Special considerations for Windows 7.

Network/Floating License Installation Instructions

TRIAL SOFTWARE GUIDE 1. PURPOSE OF THIS GUIDE 2. DOWNLOAD THE TRIALSOFTWARE 3. START WIDS 4. OPEN A SAMPLE COURSE, PROGRAM

Having Fun with QNAP and your Home Automation

Network Setup Guide. 1 Glossary. 2 Operation. 1.1 Static IP. 1.2 Point-to-Point Protocol over Ethernet (PPPoE)

Building an Embedded Processor System on a Xilinx Zync FPGA (Profiling): A Tutorial

Installation Guide for Windows May 2016

SQL Server 2005: Report Builder

BIGPOND ONLINE STORAGE USER GUIDE Issue August 2005

How to Program a Commander or Scout to Connect to Pilot Software

BECKHOFF. Application Notes. BC9000: Getting Started Guide. For additional documentation, please visit.

Technical Information Sheet Page 1 of 8

Windows 7 Printer Driver Installation procedure

Creating Forms With Adobe LiveCycle Designer 8.2

Loyalty Program Guide

MANUFACTURER RamSoft Incorporated 243 College St, Suite 100 Toronto, ON M5T 1R5 CANADA

Continuous PROFIBUS PA Instruments and Step 7. Configuring a Siemens Continuous Level PROFIBUS PA device in a S7-300 or S7-400 PLC

How to install USB driver (MICRO/I)

Application Note Profinet Modules

Service & Support. Higher-level safe switch-off of the power supply of functionally nonsafe standard modules? Wiring Examples.

QuickPanel Control DeviceNet Master Communications Card (IC754DVNM01) Quick Start Guide. Thursday September 20, 2007

OUTLOOK WEB APP (OWA): MAIL

Transcription:

Cover How can you establish a connection between a S7-1200 PLC and SIMATIC NET OPC? S7-1200 PLC, SIMATIC NET OPC FAQ November 2009 Service & Support Answers for industry.

Question This entry is from the Service&Support portal of Siemens AG, Sector Industry, Industry Automation and Drive Technologies. The general terms of use (http://www.siemens.com/terms_of_use) apply. Clicking the link below directly displays the download page of this document. http://support.automation.siemens.com/ww/view/en/39960679 Question Answer How can you establish a connection between a S7-1200 PLC and SIMATIC NET OPC? The instructions and notes listed in this document provide a detailed answer to this question. 2 Version 1.0, Item-ID: 39960679

Table of content Table of content 1 Introduction... 4 1.1 Use case... 4 1.2 Requirements... 4 2 Setting up your S7-1200 PLC by STEP 7 Basic... 5 2.1 Hardware configuration... 5 2.2 Software configuration... 7 2.3 Finalize S7-1200 PLC work... 10 3 Create and configure PC-Station... 13 3.1 Create new STEP 7project... 13 3.2 Add SIMATIC PC station... 13 3.3 Add OPC server... 14 3.4 Add Ethernet interface IE General... 16 3.5 Save and compile project... 19 4 Setup Station Configurator... 20 4.1 Open from start menu... 20 4.2 Import station from STEP 7 project... 20 5 Connection in STEP 7 NetPro... 21 5.1 Set PG/PC interface... 21 5.2 Download hardware configuration... 21 5.3 Configure network with NetPro... 23 6 OPC Scout... 27 6.1 Create new group... 27 6.2 Select connection and create items... 27 6.3 View values... 28 Version 1.0, Item-ID: 39960679 3

1 Introduction 1 Introduction 1.1 Use case The possibility of connecting a S7-1200 with an OPC server is not mentioned in the manual given that it is not officially released by Siemens. In the following chapters you find a description on how to realize such a connection. As it is not possible to create a PC Station with STEP 7 Basic V10.5 you need to use the NCM PC tool of SIMATIC NET Edition 2008. Figure 1-1 1.2 Requirements PG/PC STEP 7 Basic V10.5 SIMATIC NET Edition 2008 NCM PC tool OPC Server OPC Scout S7-1200 PLC Ethernet Cable (Crossed) Figure 1-2 4 Version 1.0, Item-ID: 39960679

2 Setting up your S7-1200 PLC by STEP 7 Basic 2 Setting up your S7-1200 PLC by STEP 7 Basic Configure your S7-1200 PLC and provide data to be watched via OPC connection. 2.1 Hardware configuration For the hardware configuration use the project view of STEP 7 Basic V10.5. Create project Select the menu command project > new... The dialog box create a new project. opens. Enter the name S7-1200_OPC_SIMATIC-NET in the Project name input field. Click the Create button. Figure 2-1 Add new PLC to project Double click the project tree command Add new device. The Add new device dialog box opens. In the work area click the button SIMATIC PLC and select your PLC by clicking its MLFB. Click the OK button. Version 1.0, Item-ID: 39960679 5

2 Setting up your S7-1200 PLC by STEP 7 Basic Figure 2-2 Change IP address of Ethernet port Double click the command Devices & Networks in the project tree. In the Devices & Networks work area click the Ethernet port of your S7-1200 PLC. In the navigation area of the Properties tab select the Ethernet addresses instruction. Define the IP address 192.168.0.110 for the Ethernet port in the IP address input field. Click the Add new subnet button. In the Devices & Networks work area you find the subnet PN/IE_1 connected to your S7-1200 PLC. 6 Version 1.0, Item-ID: 39960679

2 Setting up your S7-1200 PLC by STEP 7 Basic Figure 2-3 2.2 Software configuration To see any value changes you will now create a small program in which two hardware inputs and a hardware output of your PLC are connected to a software flip-flop. Add global data block In the Project tree click the expand button of your PLC folder (e.g. PLC_1 [CPU 12 ]). Open the sub-folder Programm blocks by clicking its expand button and double click the instruction Add new block. In the dialog box Add new block select the button Data block (DB), enter the name Data_block_1 in the Name input field and uncheck the Symbolic access only check box. Click the OK button. The Data_block_1 work area opens. Version 1.0, Item-ID: 39960679 7

2 Setting up your S7-1200 PLC by STEP 7 Basic Figure 2-4 Create static data in global data block Create a bool-typed tag named static_01 in the Data_block_1 work area. 8 Version 1.0, Item-ID: 39960679

2 Setting up your S7-1200 PLC by STEP 7 Basic Figure 2-5 Create program in Main [OB1] In the Program blocks folder of your PLC double click the instruction Main [OB1]. Copy the program shown in the next picture. You find the bit logic operations in the Bit logic folder in the Instructions pane on the instructions task card. Drag n Drop the Normally open contacts, the Output coil and the Set/Reset flip-flop in network 1 of your Main [OB1] work area, according to the picture shown below. Make sure the input fields are filled in the same way as shown in the picture and in the table. Figure 2-6 contacts Table 2-1 SR FlipFlop input S: normally open contact I1.0 SR FlipFlop input R: normally open contact I1.1 SR tag DB1.DBX0.0 SR FlipFlop output Q: output coil Q1.0 Version 1.0, Item-ID: 39960679 9

2 Setting up your S7-1200 PLC by STEP 7 Basic Hint The % in front of the addresses will be added by STEP 7 Basic V10.5 automatically. 2.3 Finalize S7-1200 PLC work Highlight the PLC_1 [CPU12 ] folder in your project tree in order to compile, download and run your S7-1200 PLC. Compile and download program Press the Download to device button in the Toolbar. Figure 2-7 The Extended download to device dialog box opens. Make sure the selected PG/PC interface and subnet are correct. Select PLC_1. Click the Load Button. 10 Version 1.0, Item-ID: 39960679

2 Setting up your S7-1200 PLC by STEP 7 Basic Figure 2-8 If you have downloaded your project before, the load preview dialog box may open instead of the Extended download to device dialog box. Another dialog box may open before, asking to stop the S7-1200 PLC for downloading. Ackknowledge clicking the OK button. Figure 2-9 The load preview dialog box opens. Click the load button. Version 1.0, Item-ID: 39960679 11

2 Setting up your S7-1200 PLC by STEP 7 Basic Figure 2-10 Switch S7-1200 PLC to run The load result dialog box opens. Check the Start all check box and press the Finish button. Your S7-1200 PLC status LED changes from stop to run. Figure 2-11 12 Version 1.0, Item-ID: 39960679

3 Create and configure PC-Station 3 Create and configure PC-Station To access data of your S7-1200 PLC via OPC you have to create and configure a S7-connection in a STEP 7 project. 3.1 Create new STEP 7project Open your SIMATIC NCM PC tool. To create a new STEP 7 project click on the menu command File > new. The new project dialog box opens. Write S7-1200_OPC-Test in the name input field. Click the OK button. Figure 3-1 3.2 Add SIMATIC PC station Click on the menu command Insert > station > SIMATIC PC-Station. A SIMATIC PC-Station is has been added to your project. Version 1.0, Item-ID: 39960679 13

3 Create and configure PC-Station Figure 3-2 3.3 Add OPC server Select OPC server Select the SIMATIC PC-Station in the project tree and click on the menu command Edit > Open Object. The HW Config dialog box opens. Figure 3-3 Click on line one of the (0) PC rack in the work area. Double click on SIMATIC PC- Station > User Application > OPC Server > SW V7.0 in the catalog. The OPC server is inserted into line one of the rack. 14 Version 1.0, Item-ID: 39960679

3 Create and configure PC-Station Figure 3-4 Configure OPC server properties Double click on the OPC Server module in line one of the (0) PC rack. The Properties dialog box opens. Click on the S7 tab. Set the Use Symbols radio button to None. Symbol use is not supported by S7-1200. Click the OK button. Version 1.0, Item-ID: 39960679 15

3 Create and configure PC-Station Figure 3-5 3.4 Add Ethernet interface IE General Select Ethernet interface Click on line two of the (0) PC rack in the work area. Double click on SIMATIC PC- Station > CP Industrial Ethernet > IE General > SW V6.2 SP1 in the catalog. 16 Version 1.0, Item-ID: 39960679

3 Create and configure PC-Station Figure 3-6 The Properties dialog box opens. Enter IP address On the Parameters tab enter the IP adress of yourpc in the IP address input field (e.g. 192.168.0.11). Version 1.0, Item-ID: 39960679 17

3 Create and configure PC-Station Figure 3-7 Add subnet to Ethernet Interface Click on the Button New. The Properties dialog box for a new subnet opens. 18 Version 1.0, Item-ID: 39960679

3 Create and configure PC-Station Figure 3-8 Click the OK button. The subnet properties dialog box closes. Click the OK button. The ethernet interface properties dialog box closes. The ethernet interface is inserted into line two of the rack. 3.5 Save and compile project Click on the menu command Station > Save and Compile. Figure 3-9 Version 1.0, Item-ID: 39960679 19

4 Setup Station Configurator 4 Setup Station Configurator 4.1 Open from start menu Double click the Station Configurator symbol in the task bar. The Station Configuration Editor window opens. Figure 4-1 4.2 Import station from STEP 7 project Click the Import Station button. An acknowledge box opens. Click the Yes button. The Import XDB file dialog box opens. Select the file pcst_1.xdb and click the Open button. The Configuration for XDB Import dialog box opens. Figure 4-2 Ignore any warning and proceed by clicking the OK button. The import is finished. 20 Version 1.0, Item-ID: 39960679

5 Connection in STEP 7 NetPro 5 Connection in STEP 7 NetPro 5.1 Set PG/PC interface Make sure the configuration of your PG/PC interface is correct. Please find additional information on this topic on the internet at http://support.automation.siemens.com/ww/view/en/11870489. 5.2 Download hardware configuration Make sure your S7-1200 PLC is connected to your PG/PC. Open your SIMATIC NCM PC project. Select the SIMATIC PC Station in the project tree and click on the menu command Edit > Open Object. The HW Config dialog box opens. Figure 5-1 Click the Download button in the tool bar. Acknowledge the Select Target Module dialog box by clicking the OK button. The Select Node Address dialog box opens. Version 1.0, Item-ID: 39960679 21

5 Connection in STEP 7 NetPro Figure 5-2 Make sure the IP address of your SIMATIC PC-Station(1) is matching the IP address of your PC. Click the OK button. 22 Version 1.0, Item-ID: 39960679

5 Connection in STEP 7 NetPro Figure 5-3 5.3 Configure network with NetPro Create S7-connection Click the menu command Options > Configure Network. The NetPro window opens. Version 1.0, Item-ID: 39960679 23

5 Connection in STEP 7 NetPro Figure 5-4 Select the OPC server slot of the PC-Station(1). Click on the menu command Insert > New Connection. The Insert New Connection dialog box opens. Figure 5-5 Since the S7-1200 is an S7 Station we are able to use a S7-Connection. The partner should be unspecified since the S7-1200 is not available in the same Step 7 project. Click the OK button. The Properties S7 connection dialog box opens. Configure S7-connection Key the IP adress 192.168.0.110 of your S7-1200 PLC in the Partner Adress input field of the Properties S7 connection dialog box. Click the Adress Details button. The Adress Details dialog box opens. Enter 0 in the Partner Rack input field and 1 in the Partner Slot input field. Click the OK 24 Version 1.0, Item-ID: 39960679

5 Connection in STEP 7 NetPro button. Close the Properties S7 connection dialog box by clicking its OK button. Click the OK button. Figure 5-6 Compile project Click the menu command network > save and compile. Figure 5-7 Download connection Select the SIMATiC PC Station (1). Download the connection to the SIMATiC PC Station (1) by clicking the Download button. Acknowledge any opening dialog box. The connection should have been downloaded to your device yet. Version 1.0, Item-ID: 39960679 25

5 Connection in STEP 7 NetPro Figure 5-8 26 Version 1.0, Item-ID: 39960679

6 OPC Scout 6 OPC Scout 6.1 Create new group Open OPC Scout. Double click OPC.SimaticNET in the server tree. The Add Group dialog box opens. Enter S7-1200_OPC_Test in the Group Name input field. Click the OK button. Figure 6-1 6.2 Select connection and create items Double click the new group S7-1200_OPC_Test. The OPC Navigator dialog box opens. Figure 6-2 Browse the Nodes tree to Connections > \S7 > S7 connection_1 > objects > I > [New Definition]. Double click the option [New Definition]. The Define New Item dialog box opens. Version 1.0, Item-ID: 39960679 27

6 OPC Scout Fill in the data as shown in the table 6-1. Table 6-1 Datatype Address Bit No. No. Values X 1 0 1 Click the OK button. Take over the new item in the right column four times by clicking the --> button.. Double click on each item and modify its name as shown in table 6-2. Table 6-2 S7:[S7 connection_1]ix1.0 S7:[S7 connection_1]ix1.1 S7:[S7 connection_1]db1, X0.0, 1 S7:[S7 connection_1]qx1.0 Click the OK button to end the OPC Navigator window. 6.3 View values In the Values column you can see the actual values of the listed items. If you are connected to your S7-1200 PLC the Quality of the item is listed good. Figure 6-3 28 Version 1.0, Item-ID: 39960679