SetTagBit

clarke24

Member
Join Date
Nov 2004
Location
uk liverpool
Posts
14
Hi

I need to set Tag "SM_D5054TempWorm_Rng" to 1 when the forecolor of an object changes to green or when Tag "SM_D5054_CNF" changes to 1. I have been able to chane the colour of the object but when using settagbit cannot get tag "SM_D5054TempWorm_Rng" to change to 1.
Heres the code i wrote
Code:
#include "apdefap.h"
 long _main(char* lpszPictureName, char* lpszObjectName, char* lpszPropertyName)
{
#define TAG_1 "SM_D5054_CNF"
 
if ((unsigned long)GetTagDouble (TAG_1))
  return 65280;
else
  return 8421504;
if ("SM_D5054_CNF")
SetTagBit("SM_D5054TempWorm_Rng",1);
else
SetTagBit("SM_D5054TempWorm_Rng",0);
}

Can anyone help to get this working?
Thanks
 
Last edited:

Similar Topics

Hi! I work in WinCC project of the filling bottle. I have problem. I have to set high three bits depending on bottle position. I define 3...
Replies
1
Views
7,380
Back
Top Bottom