8:39, EEST
October 27, 2014
We try to disable an OPC tag in our provider to check properties changes in the client. But we don’t be sure how to accomplish the task. We see several options but we are not sure wich is the best one:
1.- Eliminate the tag in the address space. We think that is a bit rough to just disable a tag.
2.- Free the TPsVar used for this tag. Same as point 1
3.- Declare all the properties as undifined with the Undefine() methos of TPsVar class. Don’t sure that doing this actions made the tag disable
4.- Use the Active property of the TPsVar. Same as point 3
Wich one is the best or is there another way to achieve our goal?
To be sure that we are in the same idea in mind: we want to disable a tag (value to NULL, quality to BAD, …) but we want the tag to stay in the tag list of the provider.
9:43, EEST
December 21, 2011
9:53, EEST
October 27, 2014
I used it and effectively the tag gone in a Bd quality state.
I add code into the OnChange event in the client app to test if the quality is good (IsGood test). If it’s not good I put a message int a memo.
So with that I deactivate my tag in the provider. The value refresh in the client stops (that what I expect) but the code in the OnChange isn’t executed.
I’m working with the async mode enabled.
void __fastcall TFMain::TestTagChange(TPsVar *Sender, TPsVarPropTypes props) {
if (!this->testTag->IsGood) {
this->MmMessages->Lines->Add(“PROBLEM READING TAG””);
}
}
I think that the steps are correct but the message never appears in the memo.
Most Users Ever Online: 1919
Currently Online:
17 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Heikki Tahvanainen: 402
hbrackel: 144
rocket science: 88
pramanj: 86
Francesco Zambon: 83
Ibrahim: 78
Sabari: 62
kapsl: 57
gjevremovic: 49
Xavier: 43
Member Stats:
Guest Posters: 0
Members: 727
Moderators: 7
Admins: 1
Forum Stats:
Groups: 3
Forums: 15
Topics: 1529
Posts: 6471
Newest Members:
gabriellabachus, Deakin, KTP25Zof, Wojciech Kubala, efrennowell431, wilfredostuart, caitlynfajardo, jeromechubb7, franciscagrimwad, adult_galleryModerators: Jouni Aro: 1026, Pyry: 1, Petri: 0, Bjarne Boström: 1032, Jimmy Ni: 26, Matti Siponen: 349, Lusetti: 0
Administrators: admin: 1