发布于 2009-09-27 20:02:10
1楼
具体用法请参考如下帮助文本
26120986 常问问题 如何在脚本中实现等待(延时)函数?
http://www2.ad.siemens.com.cn/Download/Upload/AS/FAQ/26120986.zip
还有一个sleep函数 楼主参考
问: How can I program a waiting function (Sleep) in WinCC?
答: The following sample program shows how the "Sleep" is used.
#pragma code("Kernel32.dll")
void Sleep(int milliseconds);
#pragma code()
Sleep(1000); //time specification in milliseconds
Warning:
If you use Sleep(), processing the C s cript is interrupted for the time indicated. Requests for the interrupted function cannot be processed during this time.
起飞!