wincc c script

C

Thread Starter

clarke

Hi,

using the help of this forum i was able to set a tag2 to 1 when tag1 is set to 1 using the following
int a;

a=GetTagBit("tag1");

if (a==1)
{
SetTagBit("tag2",1);
}

else
{
SetTagBit("tag2",0);
}

But now i want to set tag2 to 1 when a bit in a word goes to 1. What i cant do is figure out how to select the correct bit in the word.can anyone help?
 
Top