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



Similar documents
How are tags and messages archived in WinCC flexible? WinCC flexible. FAQ May Service & Support. Answers for industry.

Print Audit 6 - SQL Server 2005 Express Edition

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

1. CONFIGURING REMOTE ACCESS TO SQL SERVER EXPRESS

Jolly Server Getting Started Guide

Migrating helpdesk to a new server

Setting up an MS SQL Server for IGSS

Immotec Systems, Inc. SQL Server 2005 Installation Document

Installing SQL Express. For CribMaster 9.2 and Later

QUANTIFY INSTALLATION GUIDE

DB Administration COMOS. Platform DB Administration. Trademarks 1. Prerequisites. MS SQL Server 2005/ Oracle. Operating Manual 09/2011

SIMATIC HMI. WinCC V7.2 WinCC: Configurations. Multi-User Systems 1. Long-term archive server 2. File Server 3. WinCC ServiceMode 4

SQL EXPRESS INSTALLATION...

Migrating MSDE to Microsoft SQL 2008 R2 Express

These notes are for upgrading the Linko Version 9.3 MS Access database to a SQL Express 2008 R2, 64 bit installations:

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.

Installing Cobra 4.7

Outlook Profile Setup Guide Exchange 2010 Quick Start and Detailed Instructions

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

Changing Your Cameleon Server IP

Working with SQL Server Integration Services

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

Installation Guide for Microsoft SQL Server 2008 R2 Express. October 2011 (GUIDE 1)

Nexio Connectus Cluster Set Up with SQL Server Backend

for Networks Installation Guide for the application on a server September 2015 (GUIDE 2) Memory Booster version 1.3-N and later

for Networks Installation Guide for the application on the server July 2014 (GUIDE 2) Lucid Rapid Version 6.05-N and later

TSX ETZ Configuration of your computer for TSX ETZ direct connection by serial link. Eng V1.0

SIMATIC. SIMATIC Logon. User management and electronic signatures. Hardware and Software Requirements. Scope of delivery 3.

Practice Fusion API Client Installation Guide for Windows

STATISTICA VERSION 10 STATISTICA ENTERPRISE SERVER INSTALLATION INSTRUCTIONS

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

Microsoft SQL Server Express 2005 Install Guide

Automated backup. of the LumaSoft Gas database

How To Create An Easybelle History Database On A Microsoft Powerbook (Windows)

Creating a New Database and a Table Owner in SQL Server 2005 for exchange@pam

Exchange Outlook Profile/POP/IMAP/SMTP Setup Guide

Aradial Installation Guide

Installing and Configuring SQL Express 2008 R2 for Supply Chain Guru

Install SQL Server 2014 Express Edition

TestElite - Troubleshooting

DESKTOP CLIENT CONFIGURATION GUIDE BUSINESS

Appendix L: Running Hazus-MH with SQL Server 2005

MS SQL Express installation and usage with PHMI projects

TAMUS Terminal Server Setup BPP SQL/Alva

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

CIMHT_006 How to Configure the Database Logger Proficy HMI/SCADA CIMPLICITY

Introduction. Before you begin. Installing efax from our CD-ROM. Installing efax after downloading from the internet

MICROSTRATEGY 9.3 Supplement Files Setup Transaction Services for Dashboard and App Developers

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

Pro-Watch Software Suite Installation Guide Honeywell Release 4.1

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

File Management Utility User Guide

NEPTUNE LITE / ENTERPRISE DEMO INSTALLTION INSTRUCTIONS V1.3

Windows 7 Hula POS Server Installation Guide

SQL Server 2008 R2 Express Edition Installation Guide

How To Upgrade Your Microsoft SQL Server for Accounting CS Version

WhatsUp Gold v16.3 Installation and Configuration Guide

Omgeo OASYS Workstation Installation Guide. Version 6.4 December 13, 2011

The basic steps involved in installing FLEETMATE Enterprise Edition and preparing it for initial use are as follows:

Using Group Policies to Install AutoCAD. CMMU 5405 Nate Bartley 9/22/2005

MicroStrategy Intelligence Server Configuration Table of contents

XStream Remote Control: Configuring DCOM Connectivity

Upgrading from MSDE to SQL Server 2005 Express Edition with Advanced Services SP2

State of Michigan Data Exchange Gateway. Web-Interface Users Guide

Dream Report Version 4.5

Issue Tracking Anywhere Installation Guide

WhatsUp Gold v16.1 Installation and Configuration Guide

Installation Instruction STATISTICA Enterprise Server

Printer Sharing of the PT-9500pc in a Windows Environment

SIMATIC. WinCC V7.0. Getting started. Getting started. Welcome 2. Icons 3. Creating a project 4. Configure communication 5

Installing LearningBay Enterprise Part 2

Legal Notes. Regarding Trademarks KYOCERA MITA Corporation

Remote Monitoring and Control of the R&S FSL with a Web Browser

Moving the TRITON Reporting Databases

WinCC. Configuration Manual. Manual Volume 3

Backup/Restore Utility (Version 2.1)

Migrating MSDE to Microsoft SQL 2005 Express SP4

for Networks Installation Guide for the application on the server August 2014 (GUIDE 2) Lucid Exact Version 1.7-N and later

Knoa MicroStrategy Web Configuration Table of contents

OPC Server Machine Configuration

E-Map Application CHAPTER. The E-Map Editor

Training module 2 Installing VMware View

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

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

Using SQL Reporting Services with Amicus

Remote Monitoring and Control of the R&S FSV with a Web Browser

BillQuick Installation Guide for Microsoft SQL Server 2005 Express Edition

Magaya Software Installation Guide

Cannot connect to Microsoft SQL Server on network

Setting up Sharp MX-Color Imagers for Inbound Fax Routing to or Network Folder

STEP BY STEP IIS, DotNET and SQL-Server Installation for an ARAS Innovator9x Test System

NetSupport DNA Configuration of Microsoft SQL Server Express

Video Administration Backup and Restore Procedures

Configuring Your Firewall for Client Access in Professional Edition

MS SQL Server Database Management

DANGER indicates that death or severe personal injury will result if proper precautions are not taken.

Connecticut Hazardous Waste Manifests Database

Transcription:

Cover sheet How do you log tags and messages with WinCC Advanced V11 in an SQL database? WinCC Advanced V11 SP2 FAQ October 2012 Service & Support Answers for industry.

Question This entry originates from the Siemens Industry Online Support. 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/en/61886098 Caution The functions and solutions described in this article confine themselves predominantly to the realization of the automation task. Furthermore, please take into account that corresponding protective measures have to be taken in the context of Industrial Security when connecting your equipment to other parts of the plant, the enterprise network or the internet. Further information can be found in Entry ID:!50203404!. http://support.automation.siemens.com/ww/view/en/50203404 Question How do you log tags and messages with WinCC Advanced V11 in an SQL database? Answer Follow the instructions and notes listed in this document for a detailed answer to the above question. 2 V1.0, Entry ID: 61886098

Contents Contents 1 Configuration Notes... 4 2 SQL Database... 6 2.1 Create a Database on the Local Computer... 6 2.2 Remote Access to the SQL database... 9 2.2.1 Enable remote access... 10 2.2.2 SQL Server Surface Area Configuration... 12 2.3 Configure the ODBC Data Source... 14 3 WinCC Advanced ES... 18 3.1 Define the Properties of the Tag and Message Log... 18 3.2 Logging Tags... 20 3.3 Log Messages... 22 3.4 Output Logged Tag Values... 23 3.5 Output Logged Message Values... 24 4 Operating the Sample Project... 25 4.1 Requirements... 25 4.2 Start Screen... 25 4.3 Configured Screens... 26 4.3.1 Topic A, Logging and Output of Logged Tags... 26 4.3.2 Topic B, Output of Logged Message Values... 28 V1.0, Entry ID: 61886098 3

1 Configuration Notes 1 Configuration Notes This entry includes the principal configuration steps for Creating a Microsoft SQL database. Archiving tags in a Microsoft SQL database. Creating and processing a user-defined database from WinCC Runtime Advanced. Note There are numerous parameters and possible settings in a Microsoft SQL database. The entry can only deal with the settings required for this example. SQL database and WinCC Advanced V11 When you install WinCC Advanced V11, you can disable/enable the "Project migration for WinCC flexible 2008 SP2, SQL Installation". If the option is enabled, the "Microsoft SQL Server 2005 Express Edition" is also installed. This SQL Server is need for migrating WinCC flexible 2008 SP2 projects. Furthermore, data can be archived in this SQL Server. Alternatively, you can download the "Microsoft SQL Server 2005 Express Edition" from the Microsoft Support site and install it separately on a PC, for example. This would be the case, for example, if you wanted to store the data to be archived on an external PC. In this case, check which database is released for WinCC (TIA Portal). Microsoft SQL Server Management Studio Express The "Microsoft SQL Server Management Studio Express" (SSMSE) provides a graphical management tool for the "MS SQL Server 2005 Express Edition". The "Microsoft SQL Server Management Studio Express" is not included in the WinCC Advanced delivery package. If required, you can download the "Microsoft SQL Server Management Studio Express" from the Microsoft Support site. 4 V1.0, Entry ID: 61886098

1 Configuration Notes When do you need the SQL Management Studio Express? If you want to enter, edit and view data in the "Microsoft SQL Server 2005 Express Edition", you need the "Microsoft SQL Server Management Studio Express". When do you need the SQL Management Studio? You need "SQL Server Management Studio" to create a new database instance, for example. You cannot do this with "Microsoft SQL Server Management Studio Express". Note When "MS SQL Server" is mentioned in the documentation, this always refers to the "Microsoft SQL Server 2005 Express Edition". V1.0, Entry ID: 61886098 5

2 SQL Database 2 SQL Database In order to write and read data to/from an MS SQL database with WinCC Advanced, a database must be available on the PC on which the data is to be stored. 2.1 Create a Database on the Local Computer Creating the database with the "MS SQL Management Studio" Below is an example of how to create an "MS SQL database" with the "Microsoft SQL Management Studio". Requirements: Windows XP or Windows 7 operating system Microsoft SQL database available (Microsoft SQL Server 2005, for example) Microsoft SQL Management Studio is installed. Table 2-1 No. Description Screen 1. Starting the "SQL Management Studio" Start the "Microsoft SQL Management Studio" on your PC. "Start > Programs > Microsoft SQL Server 2005 > SQL Server Management Studio". "Microsoft SQL Server Management Studio Express" starts. 6 V1.0, Entry ID: 61886098

2 SQL Database No. Description Screen 2. Setting up connection to the local server Specify the server name The server name consists of the following elements: "Computer name \ Instance name". In this example: "HOEVI\WINCCPLUS". (1) You can specify the server name and instance name "manually" or over the dropdown list (1). From the drop-down list you select the local server on which you want to store the data (2). Notes: The number of server names presented depends on the installation. You cannot create a new instance with "Microsoft SQL Server Management Studio Express". You need "Microsoft SQL Server Management Studio" for this. (2) Authentication Here you select the authentication. In this example "Windows Authentication" After specifying the server name and authentication, click on the "Connect" button. The connection to the server is set up. 3. Database view Overview of the "Microsoft SQL Server Management Studio Express" with the server connected. V1.0, Entry ID: 61886098 7

2 SQL Database No. Description Screen 4. Start the SQL server If the server has not already been started, indicated by the "red" icon (1), then start the server manually. In the "Object Explorer", you right-click the instance name of the connection and in the pop-menu that opens you select the "Start" item (2). You are then asked if you really want to restart the SQL server. Acknowledge the message with "Yes". The SQL server starts. (1) (2) Note: If the SQL Server is not started, you cannot create a new database. 5. Creating a new database Right-click the "Databases" folder. In the pop-up menu you select the "New Database " item. A new dialog window opens (1). Select the "General" folder and enter the new name of the database in the "Database Name" field. In this example: "Machine_01" Note: The name you assign here will be used in due course when the "ODBC data source" is created. See Link. (1) Close the dialog via the "OK" button. The dialog window closes and you can see the newly created database in the "Databases" folder. Repeat the points described above to create more databases as required. If you do not want to make any more entries, you can close the "Microsoft SQL Management Studio Express". Note: You can create a new database using a script. Refer here to the entry at this link: Link. 8 V1.0, Entry ID: 61886098

2 SQL Database 2.2 Remote Access to the SQL database Section 2.1 describes how to create a database. In the constellation described, the SQL server and the WinCC Runtime Advanced are installed together on one PC. In this section, SQL Server and WinCC Runtime Advanced are each installed on a different computer. The PC with SQL Server serves as the "central PC" on which the data management is conducted. All the WinCC Runtime Advanced stations store their data there centrally. Figure 2-1 PC with MS SQL database (central PC) WinCC Advanced RT station Remote access WinCC Advanced RT station Note Make sure that all the computers are in the same network. For data communication between the RT stations and the "central PC" you must ensure that you are logged on to all the computers with the identical user name and password. Remote access The default setting of the "Microsoft SQL Server 2005 Express Edition" does not permit "Remote Access". Below are the settings to be made to enable "Remote Access". V1.0, Entry ID: 61886098 9

2 SQL Database 2.2.1 Enable remote access Table 2-2 The settings are to be made on the PC on which the SQL server is installed. No. Description Screen 1. Requirements First, execute the steps described in section 2.1. Note: In this case, the instance name is now not " \WINCCPLUS", but " \SQLEXPRESS". (With the SQL Server 2005, the name for the default instance is "SQLEXPRESS".) 2. Edit server properties In the "Object Explorer", you right-click the instance name of the connection and via the pop-menu that opens you open the "Properties" of the server connection. The "Server Properties" dialog box opens. 3. "Server Properties" dialog box In the "Select a page" list you select the "Security" item. Then, under "Server authentication", you select the "SQL Server and Windows Authentication mode" option. Confirm the entries with "OK". You then get a message informing you that the changes only become effective after restarting the SQL server. Acknowledge the message with "OK". This closes the dialog box. 10 V1.0, Entry ID: 61886098

2 SQL Database No. Description Screen 4. Restarting the SQL server In the "Object Explorer", you right-click the instance name of the connection and in the pop-up menu that opens you select the "Restart" item. You are then asked if you really want to restart the SQL server. Acknowledge the message with "Yes". The SQL server shuts down and then restarts. If you do not want to make any more entries, you can close the "Microsoft SQL Management Studio". V1.0, Entry ID: 61886098 11

2 SQL Database 2.2.2 SQL Server Surface Area Configuration You can use this service to edit the SQL server surface area configuration. The settings required for "Remote Access" are described below. The settings are to be made on the PC on which the SQL server is installed. Table 2-3 No. Description Screen 1. Calling the "SQL server surface area configuration" Start the "SQL server surface area configuration" on your PC. "Start > Programs > Microsoft SQL Server 2005 > Configuration Tools > SQL Server Surface Area Configuration". The "SQL Server 2005 Surface Area Configuration" dialog box opens. 2. "SQL Server 2005 Surface Area Configuration" dialog box In the dialog box you select the configuration "Surface Area Configuration for Services and Connections". The "Surface Area Configuration for Services and Connections" dialog box opens. 3. The "Surface Area Configuration for Services and Connections" dialog box In the list, you select the component "Your SQL server instance (SQLEXPRESS) > Database Engine > Remote Connections" (1). Now, on the right, you select the options "Local and remote connections" (2) and "Using both TCP/IP and named pipes" (3). Click on "Apply" (4) to confirm the selection. You then get a message informing you that the changes only become effective after restarting the SQL server. Acknowledge the message with "OK". (1) (2) (3) (4) 12 V1.0, Entry ID: 61886098

2 SQL Database No. Description Screen 4. The "Surface Area Configuration for Services and Connections" dialog box. In the list, you select the component "SQL Server Browser > Service" (1). Then, on the right-hand side, open the "Startup type" drop-down list and select the "Automatic" option (2). If the "Service status" is set to "Running", confirm once with the "Stop" button and then with the "Start" button. If the "Service status" is set to "Stopped", then click on the "Start" button. Confirm the entry with the "OK" button (4). This closes the dialog box. 5. The "SQL Server 2005 Surface Area Configuration" dialog box is displayed again. Close this dialog box again. (1) (2) (3) (4) This completes the settings for "Remote Access". Now you can access the SQL database from the "WinCC flexible RT stations". V1.0, Entry ID: 61886098 13

2 SQL Database 2.3 Configure the ODBC Data Source Using an ODBC application you create an ODBC data source by means of which you set up a connection to a Microsoft SQL server. The ODBC settings must be made on the PC on which WinCC Advanced Runtime is installed. Table 2-4 No. Description Screen 1. Calling the "ODBC Data Source Administrator" Open the "ODBC Data Source Administrator" on your PC. "Start > Settings > Control Panel > Administration > Databases (ODBC)". The dialog box shown on the right opens. Note: There might already be entries from user data sources. You do not need to pay attention to these. 2. Adding a data source Select the "User DSN" tab and then click on the "Add " button. The "Create New Data Source" dialog box opens. 3. Selecting an SQL server In the drop-down list you select the "SQL Server" item and then click the "Finish" button. The "Create a New Data Source to SQL Server" dialog box opens. 14 V1.0, Entry ID: 61886098

2 SQL Database No. Description Screen 4. Defining reference name and server Specify a data source name in the "Name" dialog box (1). The name refers to the database and the storage location. The name you use here must match the name that you use to identify the "DSN" (Data Source Name) in WinCC Advanced. The "Data Source Name" here is used for parameterizing the data log (Link). (1) (2) In this example: Database_1 Note: In the FAQ response entitled "How do you access an SQL database in WinCC Runtime Advanced using a script?" (Link) the "Data Source Name" used is stored in multiple scripts, for example. Specify a server in the "Server" dialog box (2). Select the server on which the data is to be stored and called. This can be your "local PC" on which WinCC Runtime Advanced is running or a "Central PC" (Remote Connection) on which all the data is stored. In this example: HOEVI\WINCCPLUS TIP: You can select available servers from the drop-down list. If your server is not displayed, open the "SQL Management Studio" (see section 2.1). Copy the name of the "Instance" (3) and add this name to the "Server" input field. (3) Then click the "Next>" button. V1.0, Entry ID: 61886098 15

2 SQL Database No. Description Screen 5. Login settings Select a login option for the SQL data source. If you are in a domain, you can then use your domain account. In this example, the options selected in the figure were applied. Then click the "Next>" button. Note: When you click the "Next>" button, the system attempts to set up a connection to the SQL server. If this does not succeed, you get an error message (see next point). 6. Possible error message If connection setup to the SQL server has failed, check the "Server name" specified. Use the "<Back" button to return to the previous screen. Remote Access If you do not want to access the "local server" but the "remote server" (central PC), then check the points below. Is the PC to be reached over a "PING" or the "computer name"? Is the "login data" correct? Check the cable connection between the PCs. See section 2.2. 7. Select the database Select the "Change the default database to" option by checking the check box. Open the drop-down list and select the database you have created - in this example "Machine_01" (Link). Then click the "Next>" button. 16 V1.0, Entry ID: 61886098

2 SQL Database No. Description Screen 8. Complete the user data source On this page you can make a few more settings. It is useful to change the language of the SQL server system messages to the relevant "local language" (1). (1) Complete the user data source by clicking on the "Finish" button. When you click on the "Finish" button, the "ODBC Microsoft SQL Server Setup" window opens. All the settings you have made are displayed once again in this window. 9. ODBC Microsoft SQL server setup All the settings you have made are displayed once again in this window. Furthermore, you can test the connection via the "Test Data Source " button. Close the dialog by clicking on the "OK". When you click on the "OK" button, the "ODBC Data Source Administrator" window opens. 10. Viewing the newly created user data source The "ODBC Data Source Administrator" dialog box displays your defined user data source (1). With the buttons (2) you can Add other user data sources. Delete a user data source. Edit a user data source. Mark the associated user data source. (1) (2) If you do not want to make any more entries, close the window with the "OK" button. V1.0, Entry ID: 61886098 17

3 WinCC Advanced ES 3 WinCC Advanced ES This chapter describes how to configure and make various settings for logging data in an SQL database. Please refer to the attached project for details. Note All the settings already described have been made in the attached configuration. 3.1 Define the Properties of the Tag and Message Log Table 3-1 No. 1. Create a tag log The settings below are to be made regardless of whether it is a message or tag log. Description In the project navigation, open the "Archives" menu with a double-click. Select the "Tag logs" tab and add a new log with "<Add>". Mark the tag created and open the "Properties" tab. Select the "General" item and make the settings below. Name: here you assign a name for the tag. In this case "Speed_Monitoring". Data records per log: Here you specify the number of entries the log is to have. In this case 10,000 (pay attention here to the system limits). Storage location: Here you specify the storage location of the log. In this case "Database". Enter the "Instance name" of the database in the text field below. In this case "Database_1". Note: The "Instance name" must match the name you used when parameterizing the ODBC (Link). Detailed information on the other menus like "Logging Method" is available in the Online Help of WinCC Advanced. 18 V1.0, Entry ID: 61886098

3 WinCC Advanced ES No. 2. Creating an alarm log Description In the project navigation, open the "Archives" menu with a double-click. Select the "Message logs" tab and add a new log with "<Add>". Mark the tag created and open the "Properties" tab. The settings below are the same as you made in table section "1". V1.0, Entry ID: 61886098 19

3 WinCC Advanced ES 3.2 Logging Tags This chapter describes how to log tags in an SQL database. How to create a tag log is described in section 3.1. Note You cannot log tags of the "STRING" type. Table 3-2 No. 1. Open the overview navigation Description Open the Tag Editor. Mark the tags that are to be logged. In this case "Sample_Speed_3". Open the overview navigation (1). Select the "Logging tags" tab (2). (1) (2) 20 V1.0, Entry ID: 61886098

3 WinCC Advanced ES No. 2. Logging properties Description Name: Use <Add> to assign the tag to a tag log. The name of the tag is applied automatically. Assigned data log (1): Click the " " icon. A window opens in which you can select your previously created data log. In this case, "Speed_Monitoring". Acquisition mode Set the acquisition mode: On demand On change Cyclic In this case "On change" (not visible in figure). Specify more properties as required. (1) 3. Log more tags Execute the steps described in table sections 1 and 2 to log more tags. V1.0, Entry ID: 61886098 21

3 WinCC Advanced ES 3.3 Log Messages Table 3-3 No. This chapter describes how to log messages in an SQL database. How to create a message log is described in section 3.1. 1. Open message log Description In the project navigation, open the "HMI alarms" menu (1). Select the "Alarm classes" tab (2). Mark the "Errors" alarm class, for example. Double-click in the table cell under the "Log" item. A window opens (3) displaying a selection of alarm logs. Mark the relevant log. In this example it is "Alarm_log_1". Then apply the settings made. Result: All the messages of the selected alarm class ("Errors" in this case) are archived in the selected log. (2) (3) (1) 2. Log more messages Execute the steps described in table section 1 to log more messages. 22 V1.0, Entry ID: 61886098

3 WinCC Advanced ES 3.4 Output Logged Tag Values Table 3-4 No. This chapter describes how to output logged entries by means of a trend display. If you want to output and subsequently edit logged entries over "IO fields" instead of a trend display, you need a script. In this case, refer to this FAQ entry (Link). 1. Output Logged Tag Values Description Add a trend display in a screen and open the Properties window of the trend display. Select the "Trend" menu from the Properties list. Name: Add a new trend using "<Add>". Trend type: Here you specify the type of curve from the drop-down list box. In this case "Data log". Source settings: Click the drop-down list box. The "Data source" window opens. Under the "Data log" item you, in the drop-down list you select the log in which the tag to be displayed is located. For the "Process values" item you select from the log the tag that you want to output through the trend display. Then apply the settings made. Make more settings if necessary. Details about the individual parameters are available in the information system (Online Help). 2. Output more values Execute the steps described in table section 1 to output more tags through the trend display. V1.0, Entry ID: 61886098 23

3 WinCC Advanced ES 3.5 Output Logged Message Values Table 3-5 No. This chapter describes how to output logged message values by means of an alarm display. 1. Output logged message values Description Add an alarm display in a screen and open the Properties window of the alarm display. Select the "General" menu from the Property list. Enable the "Alarm log" (1) option and from the list select the log in which the logged alarms are located. In this example it is "Alarm_log_1". Enable the "Alarm classes" (2) to be output through the alarm display. In this case "Errors" and "Warnings". Make more settings if necessary. Details about the individual parameters are available in the information system (Online Help). (2) (1) 24 V1.0, Entry ID: 61886098

4 Operating the Sample Project 4 Operating the Sample Project The attached project is for demonstrating the functions. Please refer to the project for details on configuration. 4.1 Requirements To test the sample configuration you need an established connection to an SQL server. Refer here to section 2. The "WINCCPLUS" server is used as SQL server. The data source name (DSN) is "Database_1". 4.2 Start Screen After start-up of the sample project, the following page opens. Use this to call the configured screens with the "Sample Project > Topic A or Topic B" button. Figure 4-1 V1.0, Entry ID: 61886098 25

4 Operating the Sample Project 4.3 Configured Screens 4.3.1 Topic A, Logging and Output of Logged Tags Writing tag values to an SQL database The figure shows three drives whose values are logged in the configure SQL database at a "Change of value" event. The values are specified by the "Simulate Tag" function. With the ">>" button you get to the trend display in which the logged values are output. Figure 4-2 26 V1.0, Entry ID: 61886098

4 Operating the Sample Project Writing tag values to an SQL database The figure shows a trend display in which three logged tag values from the SQL database are output. The values originate from the drives shown previously. Using the "<<" button you can return to the screen showing the three drives. Use the "Refresh page" button to update the values shown. Figure 4-3 V1.0, Entry ID: 61886098 27

4 Operating the Sample Project 4.3.2 Topic B, Output of Logged Message Values Output of logged message values The figure shows an alarm display for the output of logged error messages. You can use the buttons "F1 to F8" to simulate error messages for test purposes. Click one or more of these buttons to trigger an error message. You acknowledge the error messages by clicking the selected buttons again. Use the "Refresh page" button to update the alarm display. Figure 4-4 28 V1.0, Entry ID: 61886098