-—————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_ENDin