×
Siemens Industry Online Support
Siemens AG
Entry type: Application example Entry ID: 5667814, Entry date: 09/26/2003
(0)
Rate

sound output with incoming messages (WinCC V4.x and higher)

  • Entry
  • Associated product(s)

QUESTION:
How can you get a sound to be output via the sound card when a message arrives?

ANSWER:
You can have incoming messages trigger actions. For this you use the standard function "GMsgFunction".

Configuration procedure:

  1. Open Alarm Logging in the WinCC Explorer.
  2. Open the Properties dialog of the alarm that is to trigger the action.
  3. Set the "triggers an action" check box and close the dialog with "OK".

Now when a message comes, goes or is acknowledged, the function "GMsgFunction" will be called. In this function you can now program all sorts of actions which will then be processed.

Note:
The function "GMsgFunction" is only called on a WinCC single-user station or WinCC server.
Please note that changed standard functions are overwritten when WinCC is installed and the changes therefore lost.

Notes on the sample program:
In the project directory of the sample project is the file "gmsgfunc.fct". First switch into the directory "<DRIVE:>\\Siemens\WinCC\aplib\Alarm" and save the "gmsgfunc.fct" file located there. Now copy the "gmsgfunc.fct" file from the project directory into the directory "<DRIVE:>\\Siemens\WinCC\aplib\Alarm".

In the global script, under "Standard Functions\Alarm", double-click the "GMsgFunction" function and adapt the Windows path located there to your system environment.

Note:
Below is a sample project each for SIMATIC WinCC V5.1 and SIMATIC WinCC V6.0. The functionality of both sample projects is identical.

The download contains a complete WinCC V5 project. It also contains the "gmsgfunc.fct" described, which does the sound output for incoming messages. This file is located in the project directory of the sample project.

Ssound01.exe

Copy the "Ssound01.exe" file into a separate directory and then start the file with a double-click. The WinCC V5 project unpacks automatically with all the associated subdirectories. Then you can open and process the unpacked project with the WinCC Explorer.

The download contains a complete WinCC V 6.0 project. It also contains the "gmsgfunc.fct" described, which does the sound output for incoming messages. This file is located in the project directory of the sample project.

Ssound01_V6.exe

Copy the "Ssound01_V6.exe" file into a separate directory and then start the file with a double-click. The WinCC V5 project unpacks automatically with all the associated subdirectories. Then you can open and process the unpacked project with the WinCC Explorer.


Security information
In order to protect technical infrastructures, systems, machines and networks against cyber threats, it is necessary to implement – and continuously maintain – a holistic, state-of-the-art IT security concept. Siemens’ products and solutions constitute one element of such a concept. For more information about cyber security, please visit
https://www.siemens.com/cybersecurity#Ouraspiration.