您好,欢迎访问三七文档
#includeapdefap.hvoidOnClick(char*lpszPictureName,char*lpszObjectName,char*lpszPropertyName){#pragmacode(kernel32.dll);voidGetLocalTime(SYSTEMTIME*lpst);#pragmacode();SYSTEMTIMEtime;if(GetTagBitWait(DB1_FLAG)==0){GetLocalTime(&time);SetTagByteWait(DB1_YEAR,(BYTE)(time.wYear-2000));SetTagWordWait(DB1_MONTH,time.wMonth);SetTagWordWait(DB1_DAY,time.wDay);SetTagWordWait(DB1_HOUR,time.wHour);SetTagWordWait(DB1_MINUTE,time.wMinute);SetTagWordWait(DB1_SECOND,time.wSecond);SetTagBitWait(DB1_FLAG,TRUE);}}
本文标题:WinCC_Uhrzeitsynchronisation_V2_5WinCC 和 S7之间的时间同步
链接地址:https://www.777doc.com/doc-5332929 .html