Calendar en

Download as pdf or txt
Download as pdf or txt
You are on page 1of 12

Application Example  02/2015

Calendar for
SIMATIC HMI Panels
WinCC V13 SP1

http://support.automation.siemens.com/WW/view/en/106226404
Warranty and Liability

Warranty and Liability


Note 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 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 will be excluded. Such an exclusion will 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
 Siemens AG 2015 All rights reserved

(“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.

Security Siemens provides products and solutions with industrial security functions that
informa- support the secure operation of plants, solutions, machines, equipment and/or
tion networks. They are important components in a holistic industrial security
concept. With this in mind, Siemens’ products and solutions undergo continuous
development. Siemens recommends strongly that you regularly check for
product updates.
For the secure operation of Siemens products and solutions, it is necessary to
take suitable preventive action (e.g. cell protection concept) and integrate each
component into a holistic, state-of-the-art industrial security concept. Third-party
products that may be in use should also be considered. For more information
about industrial security, visit http://www.siemens.com/industrialsecurity.
To stay informed about product updates as they occur, sign up for a product-
specific newsletter. For more information, visit
http://support.automation.siemens.com.

Kalender HMI Panels


Entry ID: 106226404, V1.0, 02/2015 2
Table of Contents

Table of Contents
Warranty and Liability ................................................................................................. 2
1 Task ..................................................................................................................... 4
2 Solution............................................................................................................... 5
2.1 Overview............................................................................................... 5
2.2 Hardware and software components ................................................... 5
2.2.1 Validity .................................................................................................. 5
2.2.2 Components used ................................................................................ 6
3 Basics ................................................................................................................. 7
4 Configuration ..................................................................................................... 8
4.1 Opening the library ............................................................................... 8
4.2 Integrating calendar into your configuration ......................................... 9
5 Operating the Application ............................................................................... 10
6 References ....................................................................................................... 12
7 History............................................................................................................... 12
 Siemens AG 2015 All rights reserved

Kalender HMI Panels


Entry ID: 106226404, V1.0, 02/2015 3
1 Task

1 Task
Introduction
In order to coordinate the production and to allocate employees you need a
calendar. For this purpose, you do not wish to use the calendar provided in the
control panel (date/time properties). The calendar is to be accessed directly via a
page on the HMI panel.

Requirements
The calendar is to be output in the form of a “monthly overview” which outputs the
individual days incl. the current weekday and the calendar week. Furthermore, the
dates of the following month are also to be shown.
 Siemens AG 2015 All rights reserved

Kalender HMI Panels


Entry ID: 106226404, V1.0, 02/2015 4
2 Solution
2.1 Overview

2 Solution
2.1 Overview
The enclosed download file includes a library file in which the calendar, displayed
below, is located.
You can directly test the functionality of the calendar with the example project
“106226404_ExampleProject.zip”.
How to integrate the calculator into your project and what requirements have to be
met, is explained in the chapters below.
Figure 2-1
 Siemens AG 2015 All rights reserved

2.2 Hardware and software components


2.2.1 Validity

This application is valid for


• WinCC (TIA Portal) V13 SP1 and higher
• All operator panels that support the scripts:
– OP277, TP277
– Multi Panels (apart from MP177)
– Comfort Panels
– Mobile Panels (apart from Mobile Panel 177)
– WinCC Runtime Advanced

Kalender HMI Panels


Entry ID: 106226404, V1.0, 02/2015 5
2 Solution
2.2 Hardware and software components

2.2.2 Components used

The application was created with WinCC (TIA Portal) V13 SP1. A TP900 Comfort
Panel was used as operator panel.

Example files and projects


The following list includes all files and projects that are used in this example.

Table 2-1
Component Note
106226404_Calendar.zip Library
106226404_Calendar_v10_e.pdf This document.
106226404_ExampleProject.zip Example project
 Siemens AG 2015 All rights reserved

Kalender HMI Panels


Entry ID: 106226404, V1.0, 02/2015 6
3 Basics
2.2 Hardware and software components

3 Basics
In WinCC (TIA Portal) there is a project library and global libraries. The data of the
global libraries are by default located in the following directory:
“C:\Users\Username\MyDocuments\Automation”
You can check the storage path as follows.
• Open your WinCC (TIA Portal) configuration.
• Open the "Libraries" task card (1).
• Open the “Global libraries” tab (2).
• Click the icon to open the global library (3).
A window opens. This is where you can read the current file path (4).

Figure 3-1 4

3 2
 Siemens AG 2015 All rights reserved

Kalender HMI Panels


Entry ID: 106226404, V1.0, 02/2015 7
4 Configuration
4.1 Opening the library

4 Configuration
4.1 Opening the library
Table 4-1
No. Action
1. Download the “106226404_Calendar.zip” library and unzip the file to the project
directory of the global libraries.
2. Open your WinCC (TIA Portal) configuration.
3. Open the “global libraries” tab in the “Libraries” task card.

4. Click the 2. Click the icon on the left to open a “Global library”.
 Siemens AG 2015 All rights reserved

5. Select the “106226404_Calendar.al13” file and open the library with the “Open”
button.

Kalender HMI Panels


Entry ID: 106226404, V1.0, 02/2015 8
4 Configuration
4.2 Integrating calendar into your configuration

4.2 Integrating calendar into your configuration


Table 4-2
No. Action
1. Add a new screen to your configuration.
2. Open the “Copy templates” folder in the “106226404_Calendar” library.
Drag the “Script_Calendar” script with drag & drop into the “Scripts” folder.

3. Drag the “Calendar_Group_9” group (for smaller display sizes) or


“Calendar_Group_19” (for larger display sizes) with drag & drop to the screen.
 Siemens AG 2015 All rights reserved

4. Open the “Properties > Interface” tab of the screen in which you have added the
calendar.
Call the “Script_Calendar” script with the “Loaded” event.

5. Open the drop-down list next to the “ScreenName” parameter and select “String”.
Enter the name of the screen in which the calendar is shown.

Kalender HMI Panels


Entry ID: 106226404, V1.0, 02/2015 9
5 Operating the Application

5 Operating the Application


Table 5-1
No. Action
1. Open the example project “106226404_ExampleProject” that you have
downloaded on the download page of this entry
(http://support.automation.siemens.com/WW/view/en/106226404).
2. Download the “HMI_1” configuration to your operator panel.
3. Click the “Application example” button
 Siemens AG 2015 All rights reserved

4. Click on the “Calendar” button:

Kalender HMI Panels


Entry ID: 106226404, V1.0, 02/2015 10
5 Operating the Application

No. Action
5. You can see the monthly overview of the current and the coming month. The
current date is displayed red.
 Siemens AG 2015 All rights reserved

Kalender HMI Panels


Entry ID: 106226404, V1.0, 02/2015 11
6 References

6 References
Table 6-1
Topic Title
\1\ Siemens Industry http://support.automation.siemens.com
Online Support
\2\ Download page of the http://support.automation.siemens.com/WW/view/en/106226404
entry
\3\ Manual WinCC http://support.automation.siemens.com/WW/view/en/109091876
Advanced V13.0 SP1
\4\ What are the http://support.automation.siemens.com/WW/view/en/40227286
functional differences
between the different
SIMATIC panels?

7 History
Table 7-1
Version Date Modifications
 Siemens AG 2015 All rights reserved

V1.0 02/2015 First version

Kalender HMI Panels


Entry ID: 106226404, V1.0, 02/2015 12

You might also like