|
|
|
It is currently Thu May 23, 2013 4:57 am
|
View unanswered posts | View active topics | View unsolved topics
|
Page 1 of 1
|
[ 5 posts ] |
|
| Author |
Message |
|
erick
Cadet
Joined: Mon Jun 04, 2012 2:47 pm Posts: 2
|
 Client tags
What is the correct syntax to assign a value to a boolean client tag?
|
| Thu Jun 21, 2012 10:03 am |
|
 |
|
michael.stofan
Moderator
Joined: Fri Dec 04, 2009 9:02 am Posts: 169
|
 Re: Client tags
If you're talking about scripting, then you'll use something like:
system.tag.writeToTag("[Client]path/to/tag",1)
More information can be found in the user manual, appendix C under the system.tag library. One more note, as of 7.5 the function name has changed to system.tag.write. Both will work, but the replacement is preferred. Let me know if you have any more questions.
|
| Thu Jun 21, 2012 10:46 am |
|
 |
|
erick
Cadet
Joined: Mon Jun 04, 2012 2:47 pm Posts: 2
|
 Re: Client tags
I have a property bound to this client tag.
How would I figure out what property threw a property change event?
|
| Thu Jun 21, 2012 11:17 am |
|
 |
|
James.Lorenz
Moderator
Joined: Mon Jun 04, 2012 8:53 am Posts: 405
|
 Re: Client tags
Are you talking about within an event handler script? You would call event.propertyName to see which property changed. For an example, look at the "propertyChange Events" section at the bottom of the page of this link: http://inductiveautomation.com/support/ ... _types.htm
_________________ James Lorenz QA/Build Engineer Inductive Automation
|
| Thu Jun 21, 2012 1:34 pm |
|
 |
|
Greg.Simpson
Moderator
Joined: Fri Mar 16, 2012 1:00 pm Posts: 548 Location: Sacramento, CA
|
 Re: Client tags
That property change would be what you want to occur or condition to exist that will make that boolean go from 0 to 1. If you have something bound to that tag, say a script or a query, and you want to run it when that boolean >0, you could have that on a button. That is just an example, your going to want it bound to whatever you want to trigger the change of that client tag.
_________________ Greg Simpson Inductive Automation Technical Support Rep
|
| Thu Jun 21, 2012 1:43 pm |
|
 |
|
|
Page 1 of 1
|
[ 5 posts ] |
|
Who is online |
Users browsing this forum: BigSchottkyD and 2 guests |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum
|
|