{
#define TAG_0 "L10.status12"
/DWORD dwHelp1,dwHelp2;
dwHelp1=GetTagByteWait(TAG_0);
dwHelp2=dwHelp1&(0xFFFFFFFF^64);
SetTagByteWait(TAG_0,(BYTE)dwHelp2);
}
最佳答案
#define TAG_0 "L10.status12"
/DWORD dwHelp1,dwHelp2;
dwHelp1=GetTagByteWait(TAG_0);//读取字节变量(8bit)TAG_0,保存到dwHelp1
dwHelp2=dwHelp1&(0xFFFFFFFF^64);//dwHelp2为dwHelp1的值与十进制的64按位取异或
SetTagByteWait(TAG_0,(BYTE)dwHelp2);//dwHelp2的值写回wincc变量TAG_0
}
提问者对于答案的评价:
谢谢
原创文章,作者:ximenziask,如若转载,请注明出处:https://www.zhaoplc.com/plc357005.html