Sound Alarm in WinCC

Maia

Member
Join Date
Sep 2004
Location
Laguna
Posts
29
Hey guys,

I hope someone can help me get a sound to be output via the sound card when a message arrives in WinCC? I've done this before but don't remember how to do it. What I can remember is that I should set the "triggers an action" check box in the single message properties and create a script in GMsgfunction. Too bad I lost the script!

Please help..

Thanks,
zarah
 
Here's is an example taken from Siemens site:

#include "apdefap.h"
void OnClick(char* lpszPictureName, char* lpszObjectName, char* lpszPropertyName, UINT nFlags, int x, int y)
{
#pragma code ("Winmm.dll ")
VOID WINAPI PlaySoundA ( char* pszSound, char* hmode, DWORD dwflag );
#pragma code()
PlaySoundA("C:\\Winnt\\Media\\tada.wav",NULL,1);
}
 
Thanks Jacekd. But that script is a button click-triggered. it is not connected to the alarm system. the script i got 2 years ago consist of "alarmsum" and "alarmunack" variable. basically, it checks if the unacknowledged alarm is greater than 0. it then triggers the sound (usually .wav file).
 

Similar Topics

Hi, I'm finishing a student project close to deadline, but I cant't find out how to simply play a sound clip, triggered by an external tag? I've...
Replies
1
Views
3,753
Hi; I have Weintek HMI MT8051XE at a machine. I want to play a customized alarm sound. I uploaded the alarm sound in project and downloaded to...
Replies
0
Views
1,626
Dear Memners, i have an issue regarding factory talk view alarm sound, i have set internal bell for sevarity =1, internal speeker are working fine...
Replies
2
Views
2,134
Hello all, thank you for reading this post. I have this project where we need to created a sweeping sound alarm in TwidoSuite for a fire alarm on...
Replies
28
Views
8,729
hello, please i want to make alarm sound and make it repeat while the alarm is active or till the operator acknowledge the alarm :o::o: thanks
Replies
4
Views
3,940
Back
Top Bottom