Professional Documents
Culture Documents
Application Note
Warranty, liability and support
NOTE The application examples are not binding and do not claim to be com-
plete 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 re-
sponsible in ensuring that the described products are correctly used.
These application examples do not relieve you of the responsibility in
safely and professionally using, installing, operating and servicing equip-
ment. When using these application examples, you recognize that Sie-
mens cannot be made liable for any damage/claims beyond the liability
clause described. We reserve the right to make changes to these applica-
tion 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 - then the contents of the
other documents have priority.
We do not accept any liability for the information contained in this docu-
ment.
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 condi-
tion which goes to the root of the contract (“wesentliche Vertragspflichten”).
However, claims arising from a breach of a condition which goes to the root
of the contract shall be limited to the foreseeable damage which is intrinsic
to the contract, unless caused by intent or gross negligence or based on
mandatory liability for injury of life, body or health. The above provisions do
not imply a change in the burden of proof to your detriment though.
Copyright© 2008 Siemens A&D. It is not permissible to transfer or
copy these application examples or excerpts of them without first
having prior authorization from Siemens A&D in writing.
For questions about this document please use the following e-mail address:
mailto:online-support.automation@siemens.com
Preface
Objective of the application
This applicative solution has been created in response to customer needs
for audible alarms on the PCS 7 Web clients.
Audible alarms are a feature of the PCS 7 OS environment but are not
available to the Web clients as a standard feature.
Validity
This application is valid starting from PCS 7 V7.0 SP1.
Copyright Siemens AG 2007 All rights reserved
Table of Contents
1 Introduction
1.1 Application Description
This document describes how the OS project of a PCS 7 Web server can
be modified so that an acoustic signalling is created on the Web clients as
a reaction to selected messages.
Figure 1-1
Acoustic signalling
Copyright Siemens AG 2008 All rights reserved
Event/message
Note The acoustic signal output in the standard PCS 7 OS environment is in-
dependent of the Web client applicative solution.
Basic functionality
When a message is obtained with the desired characteristic (e.g. alarm or
warning), the default horn functionality of the PCS 7 OS (Web server) will
set the value of an allocated internal binary signal tag to '1'.
To trigger the sound replay on the Web client, the respective program call
is integrated into a system picture which is permanently visible in the pro-
cess visualization in Internet Explorer and which is, thus, active. The sys-
tem picture "@AlarmOneLine" is used for this.
An I/O field is interconnected with the signal tag in such a way that upon a
state change from '0' to '1' a script is running which replays the configured
Copyright Siemens AG 2008 All rights reserved
sound file.
Note To replay different sound files with severely differing lengths, several cy-
clic actions can be used with different intervals and different toggle tags.
Acknowledgement behaviour
The acknowledgement behaviour for the acoustic signal output of the
standard PCS 7 OS environment also differs from that of the Web client
applicative solution.
On the one hand it is possible on the Web client and likewise in the stand-
ard PCS 7 OS environment to acknowledge the actual message. This stops
the acoustic signal output both at the Web client and in the standard sys-
tem.
In the standard system the "Acknowledge horn" button serves to switch off
only the acoustic signal. This functionality is not available for the Web cli-
ent.
For an applicative approach of realizing this refer to the chapter 3.2 "Sound
acknowledgement".
Copyright Siemens AG 2008 All rights reserved
2 Configuration
The entire configuration is carried out on the Web server or on the ES in
the Web server project which is downloaded to the Web server computer
afterwards.
Three different sound files are stored by default in the subdirectory "Horn"
in the PCS 7 project.
Copyright Siemens AG 2008 All rights reserved
Figure 2-1
If you wish to use user-specific sound files you should store them here too.
Note The desired sound file could also be provided locally on the Web client.
This is not recommended though because you would have to make sure
that the sound files are stored in the same location on all Web clients.
If the sound files are located on the Web server no further activities are
required on the Web clients.
Figure 2-2
Copyright Siemens AG 2008 All rights reserved
Figure 2-3
Copyright Siemens AG 2008 All rights reserved
Note The tab "Signal assignment" is of interest only for the configuration for the
standard PCS 7 environment. It does not have any importance for the
Web functionality.
Figure 2-4
Copyright Siemens AG 2008 All rights reserved
In the following a project function is created which calls the Windows API
for the purpose of replaying a *.wav file.
Figure 2-5
Copyright Siemens AG 2008 All rights reserved
Figure 2-6
Figure 2-7
Copyright Siemens AG 2008 All rights reserved
Note Other picture elements would also be suitable as long as they stay visible
on the screen.
Figure 2-8
Copyright Siemens AG 2008 All rights reserved
After that the configuration window for the I/O field appears.
Configure the signal tag "Sound_tag" in the field "Tag". In the area "Type"
select the field "Output".
Figure 2-9
Figure 2-10
Copyright Siemens AG 2008 All rights reserved
Figure 2-11
Copyright Siemens AG 2008 All rights reserved
The editor "Edit Action" is opened. Add the following action here:
#ifdef RUN_ON_WEBNAVIGATOR
Sound("\\\\Servername\\OS_ProjectName\\SoundfileFolder\\Soundfile",0);
#endif
Note If the sound file is located locally on the Web client, the string will change
in the function call of "Sound.fct" accordingly.
(e.g. Sound("D:\SoundfileFolder\\Soundfile",0);
Figure 2-12
After you have input the program code, compile the script with the button
and close the editor with "OK".
Store your settings in the "Graphics Designer".
Figure 2-13
Copyright Siemens AG 2008 All rights reserved
Note We assume that the Web server has been set up already.
If this is not the case install and configure the Web server and publish the
graphics and scripts as described in the manual "PCS 7 OS Web Option".
A download of the manual can be obtained via the following URL:
http://support.automation.siemens.com/WW/view/en/21405795
To complete the changes to the Web client both the picture element
"@AlarmOneLine.PDL" and the audio function "sound.fct" have to be pub-
lished for the Web (anew).
For this purpose execute the "Web View Publisher" which is located below
the item "Web Navigator" in the WinCC Explorer.
Copyright Siemens AG 2008 All rights reserved
Figure 2-14
Figure 2-15
Copyright Siemens AG 2008 All rights reserved
Note If you have executed the configuration in the Web server project on an
ES you will have to transfer the changes to the Web server PC by project
download in addition.
Figure 2-16
Next a global action has to be defined which cyclically inverts the toggle tag
as long as the signal tag which has been configured in the "Horn" editor
remains set.
Figure 2-17
Copyright Siemens AG 2008 All rights reserved
Figure 2-18
Note Note, however, that generally many fast cyclic triggers can impair the
performance of the OS system.
In the Global Script Editor click the trigger symbol or via the menu
"Edit > info" select the tab "Trigger".
Via "Add" add a cyclic trigger of 5 seconds, for instance.
Copyright Siemens AG 2008 All rights reserved
Figure 2-19
Figure 2-20
Copyright Siemens AG 2008 All rights reserved
3 Expansion options
In the following you will find proposals for potential function expansions.
The description will not be detailed though.
Figure 3-1
In this example the message types "Warning", "Alarm" and "PLC process
control messages" are allocated to the tags Sound_tag1-3 to allow creating
three different acoustic signals on the Web client.
Figure 3-2
Copyright Siemens AG 2008 All rights reserved
As soon as one or several signal tags have assumed the value '1', the tog-
gle tag is inverted cyclically.
Figure 3-3
The standard function "Acknowledge horn" is not available on the Web cli-
ent. But if the cyclic sound replay has been configured as described in
chapter 2.2 it can be desirable to switch off the signal without acknowl-
edgement of the message itself or without switching the entire Web client
PC silent.
To obtain an applicative solution for this functionality the Web client must
be provided with the possibility to reset the signal tag(s).
Analogously to the chapter 2.1.5 an I/O field or a button with such a func-
tion can be installed into a permanently visible system picture (preferably in
the button bar).
Copyright Siemens AG 2008 All rights reserved