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



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

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

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

Getting Started Edition 04/2001


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

SIMATIC. TIA Portal STEP 7 Basic V10.5. TIA Portal Introduction 1. Simple example 2. Extended example 3. Example "PID control" 4. Example "Motion" 5

SIMATIC. Working with STEP 7 V5.1. Important Notes, Contents. Introduction to STEP 7. The SIMATIC Manager. Programming with Symbols

Service & Support. How do you log tags and messages with WinCC Advanced V11 in an SQL database? WinCC Advanced V11 SP2.

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

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

SCE Training Curriculum for Integrated Automation Solutions Totally Integrated Automation (TIA)

LOGO! LOGO! App V.10. LOGO! app 1. Making basic settings and establishing a connection to LOGO! Using the device overview 3. Creating controls 4

Completing Baseline s Site Survey Request Form

Changing Your Cameleon Server IP

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

Document Revision Date: August 14, Create a New Data Protection Policy in the Symantec.cloud Management Portal

MICROSOFT ACCESS 2003 TUTORIAL

Information Server Documentation SIMATIC. Information Server V8.0 Update 1 Information Server Documentation. Introduction 1. Web application basics 2

Symantec Enterprise Vault

MICROSOFT OUTLOOK 2010 WORK WITH CONTACTS

What is idvd? idvd is a software program used to create menus for DVD projects and to burn video to DVDs.

Shellfire L2TP-IPSec Setup Windows 7

Kepware Technologies KEPServerEX Client Connectivity Guide for GE's Proficy ifix

How to Create User-Defined Fields and Tables

Instructions for Creating an Outlook Distribution List from an Excel File

Cloud Attached Storage

Colligo Manager 6.2. Offline Mode - User Guide

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

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

The LSUHSC N.O. Archive

Mac Outlook Calendar/Scheduler and Tasks

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

Advanced Database Concepts Using Microsoft Access

for Sage 100 ERP Business Insights Overview Document

Introduction to LogixPro - Lab

Personal Call Manager User Guide. BCM Business Communications Manager

Learn how to create web enabled (browser) forms in InfoPath 2013 and publish them in SharePoint InfoPath 2013 Web Enabled (Browser) forms

WinSCP: Secure File Transfer Using WinSCP for Secure File Transfer on Windows

IGSS. Interactive Graphical SCADA System. Quick Start Guide

Excel basics. Before you begin. What you'll learn. Requirements. Estimated time to complete:

Lesson 07: MS ACCESS - Handout. Introduction to database (30 mins)

Microsoft PowerPoint 2008

Merging Labels, Letters, and Envelopes Word 2013

Microsoft PowerPoint 2011

ELM Server Exchange Edition Virtual Archive Mailbox version 5.5

Xilinx ISE. <Release Version: 10.1i> Tutorial. Department of Electrical and Computer Engineering State University of New York New Paltz

Install FileZilla Client. Connecting to an FTP server

Colligo Manager 6.0. Connected Mode - User Guide

2) Sharing Projects Made easy by IntelliGantt s Share Wizard, there are three share options to fit the needs of your project.

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

DTAP3000 DTSX3000 Control Visualization Software LAS2.0 Data Conversion Guide

Acrobat X Pro Accessible Forms and Interactive Documents

Cover sheet. Software Update from PCS 7 V7.1 SP3 to PCS 7 V7.1 SP4 SIMATIC PCS 7. FAQ September Service & Support. Answers for industry.

How to create pop-up menus

Microsoft Access 2010 handout

CCC Report Center Overview Accessing the CCC Report Center Accessing, Working With, and Running Reports Customizing Reports...

Introduction to Microsoft Access 2010

Viewing and Troubleshooting Perfmon Logs

Microsoft PowerPoint Tutorial

CDOT Workflow ProjectWise Web Access Operations

Internet Explorer 7. Getting Started The Internet Explorer Window. Tabs NEW! Working with the Tab Row. Microsoft QUICK Source

Connecting to a Soundweb TM. London Network

Using Your Online Help System

Colligo Manager 6.0. Offline Mode - User Guide

Working with SQL Server Integration Services

From Data Modeling to Data Dictionary Written Date : January 20, 2014

Remote Desktop Services

Creating a Website with MS Publisher

Introduction to Microsoft Access 2013

The Application Getting Started Screen is display when the Recruiting Matrix 2008 Application is Started.

FAQ Communication over IE

MS830 / MS833 Barcode Reader v1.0 9-December-2014

ONBASE OUTLOOK CLIENT GUIDE for 2010 and 2013

Word basics. Before you begin. What you'll learn. Requirements. Estimated time to complete:

Subscribe to RSS in Outlook Find RSS Feeds. Exchange Outlook 2007 How To s / RSS Feeds 1of 7

Instructions for Configuring a SAS Metadata Server for Use with JMP Clinical

Excel 2013 What s New. Introduction. Modified Backstage View. Viewing the Backstage. Process Summary Introduction. Modified Backstage View

EBOX Digital Content Management System (CMS) User Guide For Site Owners & Administrators

Prepare your data in ArcGIS for Desktop

Lab 2: MS ACCESS Tables

Microsoft FrontPage 2003

DOVICO Timesheet v10 QUICK START GUIDE

Vodafone PC SMS (Software version 4.7.1) User Manual

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

Step Sheet: Creating a Data Table and Charts

Outlook basics. Identify user interface elements that you can use to accomplish basic tasks.

Quick Start Guide. Highly customizable automated trading Automate your trades according to rules and models you create.

Microsoft Excel 2013: Using a Data Entry Form

Produced by Flinders University Centre for Educational ICT. PivotTables Excel 2010

BIGPOND ONLINE STORAGE USER GUIDE Issue August 2005

In this example, Mrs. Smith is looking to create graphs that represent the ethnic diversity of the 24 students in her 4 th grade class.

Quick Guide for Accessible PDF July 2013 Training:

Using the SAS Enterprise Guide (Version 4.2)

Colligo Contributor File Manager 4.6. User Guide

Writer Guide. Chapter 15 Using Forms in Writer

HOW TO BURN A CD/DVD IN WINDOWS XP. Data Projects

Table Of Contents. iii

HP Quality Center. Software Version: Microsoft Word Add-in Guide

Build an ArcGIS Online Application

Transcription:

Cover sheet How do you synchronize the time of the HMI Basic Panel with a S7-1200 PLC? S7-1200 PLC, HMI Basic Panel FAQ October 2009 Service & Support Answers for industry.

Question This entry originates from the Service&Support Portal of Siemens AG, Sector Industry, Industry Automation and Drive Technologies. The conditions of use specified there apply (www.siemens.com/nutzungsbedingungen). Go to the following link to download this document. http://support.automation.siemens.com/ww/view/de/39182145 Question How do you synchronize the time of the HMI Basic Panel with a S7-1200 PLC? Answer Use the system time of your S7-1200 PLC on your HMI Basic Panel by configuring the relevant tags on your HMI Basic Panel. The necessary steps are explained using a sample project. 2 Version 1.0, Entry ID: 39182145

Contents Contents 1 Configuring the S7-1200 PLC... 4 1.1 Prepare project... 4 1.2 Configure tags and time functions... 5 1.3 Download project to PLC... 8 2 Configuring the HMI Basic Panel... 9 2.1 Configure HMI Basic Panel... 9 2.2 Configure basic screen... 10 2.3 Assign tags... 11 2.4 Configure button... 12 2.5 Time/date display of the HMI Basic Panel... 15 3 Using the time functions... 16 3.1 Set the PG/PC interface... 16 3.2 Display time... 16 3.3 Change system time UTC... 17 3.4 Change local time... 18 Version 1.0, Entry ID: 39182145 3

1 Configuring the S7-1200 PLC 1 Configuring the S7-1200 PLC You create time functions in a project so that you can access the system time UTC and the local system time via the tags assigned. 1.1 Prepare project Click on the "Project" menu in the menu bar and then on the menu command "New...". In the "Create a new project" dialog you enter a name in the "Project name" input field. Click on the "Create" button to complete the procedure. Figure 1-1 Incorporate PLC In the project tree in your project folder, you click on the "Add new device" item. In the "Add new device" dialog window, you click on the "SIMATIC PLC" button and in the folder tree you select your PLC model by clicking on the associated MLFB. Confirm your selection by clicking on the "OK" button. 4 Version 1.0, Entry ID: 39182145

1 Configuring the S7-1200 PLC Figure 1-1 1.2 Configure tags and time functions Create data block In the project tree in your PLC's folder, you navigate to the "Program blocks" folder and double-click on the "Add new block" item to open the associated dialog window. In the "Add new block" dialog window, you select "Data block" as block type and in the "Name" input field you specify a name for the data block to be created. Select "GLOBAL DB" in the "Type" drop-down list box. Click on the "OK" button to complete the procedure. Version 1.0, Entry ID: 39182145 5

1 Configuring the S7-1200 PLC Figure 1-2 Create tags In the project tree in your PLC's folder, you navigate to the "Program blocks" folder and double-click on the data block "db_time_sync [DB1]" to open the associated dialog window. In the "Name" column of the data block's dialog window, you click in the next free field and specify the symbolic name "time_local_read". Click in the same row in the "Data type" column and select the data type "DTL" for this tag. Repeat this procedure for the "time_system_read" and "time_system_write". 6 Version 1.0, Entry ID: 39182145

1 Configuring the S7-1200 PLC Figure 1-3 Insert and connect time functions in "Main (OB1)" 1. In the project tree, you double-click on the "Main (OB1)" program block to open the dialog window. 2. From the task card "Instructions" > "Extended instructions" pane > "Date and time" folder you drag and drop the three time functions "WR_SYS_T", "RD_LOC_T" and "RD_SYS_T" to three networks of the "Main (OB1)" program block. Connect the inputs and outputs of the function blocks with the tags created above. Specify unique marker word addresses for the "RET_VAL" outputs as shown in the example in Fig. 05. 3. Insert a pulse block from the "Statements" pane > "Bit logic" folder in front of the "EN" input of the "WR_SYS_T" block. Specify special marker addresses for the pulse block as shown in the example in Figure 1-5. Version 1.0, Entry ID: 39182145 7

1 Configuring the S7-1200 PLC Figure 1-4 1.3 Download project to PLC In the project tree, mark the folder of your PLC. Click on the "Download" icon in the toolbar. Figure 1-5 8 Version 1.0, Entry ID: 39182145

2 Configuring the HMI Basic Panel 2 Configuring the HMI Basic Panel Insert an HMI Basic Panel in your project. In the basic screen of the HMI Basic Panel, you implement the accesses to the time functions. 2.1 Configure HMI Basic Panel Insert HMI Basic Panel in project In the project tree, you double-click on the "Add new device" item to open the associated dialog window. In the "Add new device" dialog window, you double-click on the "SIMATIC HMI" button. Mark your HMI Basic Panel in the folder tree. Confirm your selection by clicking on the "OK" button. The operator panel wizard for the selected display opens. Figure 2-1 Connect HMI Basic Panel with PLC In the operator panel wizard for the HMI Basic Panel selected, you click on the drop-down list box to select your PLC. In the drop-down list you double-click on the PLC to be connected with the HMI Basic Panel. Close the operator panel wizard by clicking on the "Finish" button. Version 1.0, Entry ID: 39182145 9

2 Configuring the HMI Basic Panel Figure 2-2 2.2 Configure basic screen Configure a basic screen for your HMI Basic Panel in order to incorporate the time functions. Insert objects In the project tree, open the HMI Basic Panel folder and in the "Screens" folder, you click on the "Root screen" item. Reproduce the basic screen shown in Fig. 09. For this, from the "Toolbox" task card you drag and drop the objects required - text field, IO field and button - from the "Basic objects" and "Elements" panes to the window of the HMI Basic Panel's root screen. 10 Version 1.0, Entry ID: 39182145

2 Configuring the HMI Basic Panel Figure 2-3 Name text fields Double-click in the text fields and specify the identifiers from Figure 2-3. Confirm the entries each time by pressing the "Enter" key. Name button Double-click on the button and specify the identifier "Set time". Confirm the entry by pressing the "Enter" key. 2.3 Assign tags Float the dialog window of the "db_time_sync" program block In the project tree, you double-click on the "db_time_sync [DB1]" program block. In the dialog window of the program block, you click on the icon to float the dialog window. Figure 2-4 Connect IO fields with tags In the project tree, you double-click on the "Root screen". Drag and drop the three time tags created previously to the three text fields. In the detail window of each IO field, in the "Properties" tab you see that the format settings have been adopted automatically. Version 1.0, Entry ID: 39182145 11

2 Configuring the HMI Basic Panel Figure 2-5 2.4 Configure button Add events to the button to give the button a function. Add "Click" event To add an event, you define a function for the event and assign a tag to that function. Define "Click" event In the "Root screen", you click on the "Set time" button. In the detail window of the button (here: Button_1), in the "Properties" > General tab, you go to the "Events" folder in the navigation area and click on the "Click" item. In the table area of the "Properties" tab, you click in the "<Add function>" row and open the drop-down list box. 12 Version 1.0, Entry ID: 39182145

2 Configuring the HMI Basic Panel Figure 2-6 Set the "SetBit" function Double-click on the "Edit bits folder and click on the "SetBit" item. Version 1.0, Entry ID: 39182145 13

2 Configuring the HMI Basic Panel Figure 2-7 Assign "write_time" tag In the "Tag (Iput/output)" row of the set function, you click on the icon at the end of the cell marked in pink. In the window that opens, you open your PLC's folder and click on the "PLC tags" folder. In the table area, you click on the "write_time" tag. Figure 2-8 Add "Release" event Proceed in the same way as in "Add "Click" event" to add the "Release" event. Define "Release" event Define the "Release" event as you did the "Click" event. Set the "ResetBit" function Set the "ResetBit" function for the "Release" event. Assign "write_time" tag Assign the "write_time" tag to the "ResetBit" function. 14 Version 1.0, Entry ID: 39182145

2 Configuring the HMI Basic Panel Figure 2-9 2.5 Time/date display of the HMI Basic Panel Link the area pointer for the time display of the HMI Basic Panel with the "time_local_read" tag. Create area pointer for date/time In the project tree, open the HMI Basic Panel folder and double-click on the "Connections ()" item. In the "Connections" dialog window, you select the "Area pointers" tab for the connection between the HMI Basic Panel and the S7-1200 PLC. In the "Global area pointer of HMI device" area, you go to the row for the connection to your HMI Basic Panel and from the directory window you select the "time_local_read" tag for the "Date/time PLC" display name. Note For test purposes, set 2s in the "Acquisition Cycle" column. This fast acquisition cycle is not necessary for regular operation. Figure 2-10 Version 1.0, Entry ID: 39182145 15

3 Using the time functions 3 Using the time functions The system time UTC is the basic time of the S7-1200 PLC. The local system time is calculated from this by the Time Zone parameter. You can only change the system time UTC and the time zone. To check your configured funktions, use the RT Simulator. First set the PG/PC interface to be able to use the RT Simulator. You can operate the RT Simulator like an HMI Basic Panel. 3.1 Set the PG/PC interface Open an Explorer window and enter "Control Panel" in the address bar. Confirm the entry with the "Enter" key. In the Control Panel folder you double-click on the "Set PG/PC Interface" item. In the "Set PG/PC interface" dialog window, open the "Access path" tab and set the access point "S7ONLINE" to the Ethernet card that is connected with the S7-1200 PLC. Click on the "OK" button to complete the procedure. Figure 3-1 3.2 Display time Click on the "Start Runtime" icon in the toolbar. The RT Simulator opens and displays a picture of the HMI Basic Panel configured. The system time UTC and the local system time are displayed in their respective IO fields. Through the connection of the area pointer the internal time/date display in the top right corner of the HMI Basic Panel also displays the local time set in the S7-1200 PLC. 16 Version 1.0, Entry ID: 39182145

3 Using the time functions Figure 3-2 3.3 Change system time UTC In the HMI Basic Panel, you enter the date and time in the ">dd.mm.yy hh:mm:ss<" format in the IO field next to the "Set time" button. Transfer the values entered to your PLC by clicking on the "Set time" button. Version 1.0, Entry ID: 39182145 17

3 Using the time functions Figure 3-3 3.4 Change local time The local time is based on the system time UTC and differs from this according to the time zone and any daylight saving time change to be taken into account. Click on "Properties.." in the pop-up menu of your S7-1200 PLC. In the dialog window that opens you go to the "General" tab and click on the "Time of day" item. In the "local time" drop-down list, you select your time zone in the form of GMT+xx". By checking the relevant check box you can change the "Activate daylight saving time" parameters. Click on the "OK" button. Figure 3-4 18 Version 1.0, Entry ID: 39182145