WinCC实现声音报 警的方法.docVIP

  • 9
  • 0
  • 约1.78千字
  • 约 3页
  • 2019-10-11 发布于河北
  • 举报
#include apdefap.h int gscAction( void ) { #pragma code(Winmm.dll) VOID WINAPI PlaySoundA(char* pszSound,char* hmode,DWORD dwFlag); #pragma code( ) if (GetTagByte(TI101)100)? ? {PlaySoundA(C:\\\\Program Files\\\\Windows NT\\\\Pinball\\\\SOUND36.WAV,NULL,1);} return 0; } 报警可以用以下两种实现方法: 1、建一个全局脚本,时基为2S #include apdefap.h int gscAction( void ) { #pragma code(Winmm.dll) VOID WINAPI PlaySoundA(char* pszSound,char* hmode,DWORD dwFlag); #pragma code( ) if (GetTagByte(TAG)==1)? ?? ?? ?? ?? ?? ? 或? ?? ? if (GetTagByte(TAG)500)? ? {PlaySoundA(d:\\ringout.wav,NULL,1);} return 0; } 用

文档评论(0)

1亿VIP精品文档

相关文档