It is currently Tue Sep 02, 2014 3:45 pm




Post new topic Reply to topic  [ 5 posts ] 
 Client tags 
Author Message
Cadet
Cadet

Joined: Mon Jun 04, 2012 2:47 pm
Posts: 4
Post Client tags
What is the correct syntax to assign a value to a boolean client tag?


Thu Jun 21, 2012 10:03 am
Profile
Moderator
Moderator

Joined: Fri Dec 04, 2009 9:02 am
Posts: 177
Post 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
Profile
Cadet
Cadet

Joined: Mon Jun 04, 2012 2:47 pm
Posts: 4
Post 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
Profile
Moderator
Moderator

Joined: Mon Jun 04, 2012 8:53 am
Posts: 440
Post 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 Systems Engineer
Inductive Automation


Thu Jun 21, 2012 1:34 pm
Profile
Moderator
Moderator

Joined: Fri Mar 16, 2012 1:00 pm
Posts: 906
Location: Sacramento, CA
Post 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
Profile
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 


Who is online

Users browsing this forum: No registered users and 5 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

Search for:
Jump to: