1/5/2007 11:39 AM | |
Posts: 1 Rating: (13) |
Hi,
for all those who need to sound an alarm on PC Runtime in wincc flexible, I'v created a DLL which you can call from runtime. You need to put the dll in the Windows\System directory, and register it with :
regsvr32 c:\windows\system\musicdll.dll
Next, you have 3 methods in dll to call from your runtime script, like:
script 1. play alarm sound
Dim fs
Set fs = CreateObject("muzika.muzikaKlasa")
fs.SvirajHavarijski() 'to play sound for Alarm
script 2.play warning sound
Dim fs
Set fs = CreateObject("muzika.muzikaKlasa")
fs.SvirajAlarm() 'to play sound for warning
script 3. stop sound
Dim fs
Set fs = CreateObject("muzika.muzikaKlasa")
fs.Zaustavi() 'to STOP sound
Of course, the sound files must be regular WAV files (not MP3 or...),
and MUST be in location/file:
c:\alarmwavs\alarm.wav --for warning sound
c:\alarmwavs\havarijski.wav --for ALARM sound
Cheers
Mike
AttachmentmusicDLL.zip (1117 Downloads) |
This contribution was helpful to9 thankful Users |
1/5/2007 3:11 PM | |
Posts: 3149 Rating: (171)
|
Great idea - thank you [:D] |
11/10/2009 1:04 AM | |
Posts: 2 Rating: (0) |
Mike, This is a great help to me. Works perfect. Thanks, Don |
9/4/2012 4:53 PM | |
Posts: 4 Rating: (0) |
Hi Mike, Thanks a Lot for this solution, but how do you stop the script when you acknowledge alarm? Best Regards, Goce |
9/10/2012 9:47 AM | |
Posts: 10 Rating: (0) |
For scada Quotation, Which Item Should be Selected. Please reply me.. |
9/24/2012 1:56 PM | |
Posts: 3037 Rating: (192)
|
Hello Litu, Do you use WinCC V 7? You can use this C script for outputing a sound in WinCC. How can I output a sound via C script in WinCC? Tweety |
1/18/2013 9:37 AM | |
Posts: 3037 Rating: (192)
|
Hello, Do you use WinCC flexible? You can use this link. How do you start a sound file via a script in the WinCC flexible PC Runtime? Tweety |
This contribution was helpful to2 thankful Users |
1/22/2013 7:30 PM | |
Posts: 13 Rating: (0) |
We have an existing Siemens Fujitsu desktop PC that is used for the RT file at site and the alarm works fine on it. We have accessed a spare identical PC to use but the alarm doesn't sound when we put it into service and everything else is fine???. Where are the sounds files normally kept? I assume they are WAV files but I can't see from the script as to what WAV file is being called up or where it is stored. Attached is a copy of the script for sounding an alarm. It seems that it should be so simple but I guess when it is not there or not set up exactly the same, there can be issues. Some frustrating!!!!!! AttachmentAlarm Sound Script.pdf (631 Downloads) |
1/23/2013 12:58 PM | |
Posts: 3037 Rating: (192)
|
Hello, You use this example in this link, it works fine. How do you start a sound file via a script in the WinCC flexible PC Runtime? Tweety |
1/23/2013 3:48 PM | |
Posts: 13 Rating: (0) |
I have seen this link but it is for setting up sound using mplayer. The question is regarding the set up someone has used with muzika.muzikaklasa This is the method (see attached screen print of scipt for sounding an alarm) used now and we need to duplicate this on the spare computer. We do not wish to edit the existing project to a new method of having a WAV file sound an alarm. It should not be that hard to work out?? The computer is on site right now and I only have acees to check things out when out there which will not happen till another week. At that time I like to have this spare computer up and running when I take it our (with the sound working for alarms). AttachmentAlarm Sound Script.pdf (580 Downloads) |
6/12/2016 8:34 PM | |
Joined: 4/19/2013 Last visit: 3/20/2024 Posts: 11 Rating: (0) |
Thanx for DLL ! Works fine in TIA v13 |
Follow us on