您好,欢迎访问三七文档
当前位置:首页 > IT计算机/网络 > 数据挖掘与识别 > wincc中通过复选框控制显示过程曲线显示的C脚本
1.¸´Ñ¡¿ò¿ØÖÆÇúÏßµÄÏÔʾ¡£¸´Ñ¡¿ò--¶¯×÷--ÊôÐÔÖ÷Ìâ--ÊäÈëÊä³ö--Ñ¡Ôñ¿ò--¸Ä±ä±àдC½Å±¾£ºdoubletag1;charPictureName[100],ObjectName[100];strcpy(PictureName,******.PDL);//******.PDLΪÇ÷Êƿؼþ1ºÍÑ¡Ôñ¿òËùÔڵĻÃæstrcpy(ObjectName,¿Ø¼þ*);//¿Ø¼þ*ΪÇ÷ÊƿؼþSetPropWord(PictureName,ObjectName,Index,0);//Ñ¡¶¨ÇúÏßtag1=GetPropDouble(lpszPictureName,lpszObjectName,process);if(tag1!=0){SetPropBOOL(PictureName,ObjectName,ItemVisible,1);SetTagBit(Curves_1,1);}//Curves_1ÄÚ²¿±äÁ¿£¬Îª¿ØÖÆÇúÏßÏÔʾÓë·ñµÄ±£³Ö¶ø½¨Á¢µÄ¡£else{SetPropBOOL(PictureName,ObjectName,ItemVisible,0);SetTagBit(Curves_1,0);}2.°´Å¥Çå³ýËùÓÐÇúÏßµÄÏÔʾ¡£°´Å¥--¶¯×÷--×ó¼ü±àдc½Å±¾£ºcharPictureName[100],ObjectName[100],PropertyName[100];strcpy(PictureName,******.PDL);strcpy(PropertyName,PROCESS);strcpy(ObjectName,¸´Ñ¡¿ò1);SetPropDouble(PictureName,ObjectName,PropertyName,0);strcpy(ObjectName,¸´Ñ¡¿ò2);SetPropDouble(PictureName,ObjectName,PropertyName,0);strcpy(ObjectName,¸´Ñ¡¿ò3);SetPropDouble(PictureName,ObjectName,PropertyName,0);3.¹Ø±ÕÇ÷ÊÆ»ÃæºóÔٴδò¿ªÊ±£¬Ö»ÏÔʾ¹Ø±ÕÇ°ËùÏÔʾµÄ»Ãæ¡£******.PDL»Ãæ--¶¯×÷--ÆäËü--»Ãæ´ò¿ª±àдc½Å±¾£ºBOOLtag1;charPictureName[100];strcpy(PictureName,******.PDL);tag1=GetTagBit(Curves_1);if(tag1==1){SetPropDouble(PictureName,¸´Ñ¡¿ò1,process,1);}else{SetPropDouble(PictureName,¸´Ñ¡¿ò1,process,0);}tag1=GetTagBit(Curves_2);if(tag1==1){SetPropDouble(PictureName,¸´Ñ¡¿ò2,process,1);}else{SetPropDouble(PictureName,¸´Ñ¡¿ò2,process,0);}tag1=GetTagBit(Curves_3);if(tag1==1){SetPropDouble(PictureName,¸´Ñ¡¿ò3,process,1);}else{SetPropDouble(PictureName,¸´Ñ¡¿ò3,process,0);}}
本文标题:wincc中通过复选框控制显示过程曲线显示的C脚本
链接地址:https://www.777doc.com/doc-4697417 .html