1 ——————1、w incc 全局脚本动作-------隐藏控件—————— #include "apdefap
h" int gscAction( void ) { // WINCC:TAGNAME_SECTION_START // syntax: #define TagNameInAction "DMTagName" // next TagID : 1 // WINCC:TAGNAME_SECTION_END int 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、w incc 全局脚本动作----提示框—————— #include "apdefap
h" int gscAction( void ) { // WINCC:TAGNAME_SECTION_START // syntax: #define TagNameInAction "DMTagName" // next TagID : 1 //