advertisement
from the Forum department...
wincc script help
Programming languages. topic
Posted by clarke24 on 12 October, 2009 - 4:10 pm
I want to make a conditional when a tag is 1 i want to set another to 1 and vice versa. Can anyone help?

i have tried SetTagBit("Tag",1); but this only sets the tag to one but not back down to 0.


Posted by Purrdie on 13 October, 2009 - 5:30 am
Try this one.

int a;

a=GetTagBit("tag1");

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

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

Your use of this site is subject to the terms and conditions set forth under Legal Notices and the Privacy Policy. Please read those terms and conditions carefully. Subject to the rights expressly reserved to others under Legal Notices, the content of this site and the compilation thereof is © 1999-2010 Nerds in Control, LLC. All rights reserved.

Users of this site are benefiting from open source technologies, including PHP, MySQL and Apache. Be happy.


Fortune
The English have no respect for their language, and will not teach
their children to speak it.
-- G. B. Shaw
Advertise here
Advertisement
our advertisers
Help keep our servers running...
Patronize our advertisers!
Visit our Post Archive