Siemens-AutomationandDrives-Service&Support-Aut...第1页共1页2005-05-3118:02自动化系统SIMATICHMI人机界面HMI软件SCADA系统SIMATICWinCCSIMATICWinCC全局脚本/动作常问问题整点启动归档问题:如何整点启动归档?解答:在GlobalScript下的Projectfunctions编写函数cyclicarchiveBOOLcyclicarchive(){#pragmacode(kernel32.dll);voidGetLocalTime(SYSTEMTIME*lpst);#pragmacode();SYSTEMTIMEtime;Intt1;GetLocalTime(&time);t1=time.wMinute;if(t1==00){SetTagBit(startarchive,1);return(BOOL)(GetTagBit(startarchive));}}在Tagloging中的Propertiesofprocesstag中的ArchiveTagtab下的Archivingtype选择Cycle-selective,在Event标签下的StartEvent内选择cyclicarchive函数。条目号:11012406日期:03/26/2002©SiemensAG2005版权所有-法人信息-保密政策-应用条款