-—————1、wincc 全局脚本动作—-—---—隐藏控件————-—#include ”apdefap.h"int gscAction( void ){// WINCC:TAGNAME_SECTION_START// syntax: #define TagNameInAction "DMTagName"// next TagID : 1// WINCC:TAGNAME_SECTION_ENDint value;value=GetTagBit(”IM_in”);//"IM_in"为触发的变量。 if(value==1) { SetVisible(”lianxi。pdl”,”按钮 8”,TRUE);//lianxi。pdl 为控制对象所在画面名,“按钮 8”为对象名称}else{ SetVisible(”lianxi.pdl”,"按钮 8",FALSE);//lianxi。pdl}// WINCC:PICNAME_SECTION_START// syntax: #define PicNameInAction ”PictureName”// next PicID : 1// WINCC:PICNAME_SECTION_END return 0;}=====================================================阐明:在触发器里选择变量 IM_in———-——2、wincc 全局脚本动作—-——提醒框-—————#include ”apdefap。h"int gscAction( void ){// WINCC:TAGNAME_SECTION_START// syntax: #define TagNameInAction ”DMTagName”// next TagID : 1// WINCC:TAGNAME_SECTION_ENDint value;value=GetTagBit(”IM_in”);if(value==1){ MessageBox(NULL,”请确认三厅有关门与否关好,或者请解锁。","提醒框”,MB_OK|MB_ICONEXCLAMATION|MB_SETFOREGROUND|MB_SYSTEMMODAL); }// WINCC:PICNAME_SECTION_START// syntax: #define PicNameInAction ”PictureName"// next PicID : 1// WINCC:PICNAME_SECTION_ENDreturn 0;}=============================阐明:在触发器中选择变量触发。—-————3、趋势面板——————-—--char * str_a = NULL;int Hi;int Lo;str_a = GetTagChar("TrendTagName1");Lo= GetTagSWord(”TrendLo");Hi= GetTagSWord("TrendHi”);SetPropWord(lpszPictureName,”qushi",”TrendIndex",0);SetPropChar(lpszPictureName,"qushi","TrendTagName",str_a);SetPropWord(lpszPictureName,”qushi”,”ValueAxisBeginValue”,Lo);SetPropWord(lpszPictureName,"qushi”,”ValueAxisEndValue",Hi);———--—————-—-——-———————-—-———-4、获取位号—-——-——-SetTagChar(”TrendTagName1”,"ProcessValueArchive\\PT111”); //Return—Type: BOOL SetTagSWord(”Tren...