You are not registered yet. Please click here to register!


 
 
plc storereviewsdownloads
This board is for PLC Related Q&A ONLY. Please DON'T use it for advertising, etc.
 
Try our online PLC Simulator- FREE.  Click here now to try it.

---------->>>>>Get FREE PLC Programming Tips

New Here? Please read this important info!!!


Go Back   PLCS.net - Interactive Q & A > PLCS.net - Interactive Q & A > LIVE PLC Questions And Answers

PLC training tools sale

Reply
 
Thread Tools Display Modes
Old March 5th, 2014, 07:23 PM   #1
tranh2
Member
Canada

tranh2 is offline
 
Join Date: Jul 2009
Location: Ontario
Posts: 39
Wonderware System Platform - BindTo() & IOSetReferences()

Hey guys,

I'm just starting out learning about System Platform. I've managed to pickup the the plant model and deployment model concepts quickly. I understand the scripting pretty well other than some things listed below. I hope someone experts here can help. I'm running System Application 3.1 and Wonderware 10.1. If you feel an upgrade is necessary to make my programming life easier let me know.

1. The BindTo() function. What is the purpose of this? Is this the same thing as assigning tags to Indirect Tags in Wonderware 9.5? I've read the documentation and I'm having trouble getting this to work. I'm trying to create one popup window and dynamically reference tags/attributs to the indirect tags. The tags/attributes can be located in different $Areas and subareas. But all items are within the same $AppEngine. Example below. This script is just a script located in an "WhileShowing" of the symbol. LocalTag is a Custom Property Tag. When I similate me.Tagname.Auto.InAlarm to alarm, nothing happens:

Dim x AS Indirect;
Dim y AS String;

y = me.tagname + ".Auto.InAlarm";

x.Bindto(y);

LocalTag = x;

The above code doesn't seem to work. I read some technotes that say SetCustomPropertyValue function but I can't find anything about that. I also found another reference saying use the IOSetReferences function (see: Creating and Managing ArchestrA Graphics User’s Guide, Revision B
Last Revision: 11/3/08, page:247). But I can't find info for that function also also.

2. Second, what is the best practice for creating windows/navigation banners. Is it create windows in InTouch and embed objects and animate using the Show("Xxxx")/Hide("xxx") functions in InTouch? Or should all windows just be created in Application Server using scripts and symbol editor and use ShowSymbol, ShowGraphic & HideGraphic functions?

I'm excited to finally get the opportunity to learn this package since I've spent alot of time developing in Wonderware 9.5. Learning this software has been on my list for a long time. But I feel like wonderware did a great job in some areas and went backwards in already existing functionality. As mentioned above, maybe upgrading to the latest version will make my programming life easier?

Thanks all!
  Reply With Quote
Old September 29th, 2014, 05:38 AM   #2
mylesm
Member
New Zealand

mylesm is offline
 
Join Date: Sep 2014
Location: Christchurch
Posts: 1
Use SetCustomProperty instead of BindTo
  Reply With Quote
Old May 20th, 2016, 02:34 PM   #3
kevinddr21
Member
Colombia

kevinddr21 is offline
 
Join Date: May 2016
Location: Soledad
Posts: 5
Hi everyone.
I'm answering this until now, but it can be still useful for someone.
I think that the problem "1." can be solved if the following code is used:

Dim timeout;
Dim x AS Indirect;
Dim y AS String;

y = me.tagname + ".Auto.InAlarm";

x.Bindto(y);

while (IsGood(x)==0); {if quality not good}
timeout=timeout+1; {increase the timer}
if timeout>10000 then {if timer reaches threshold}
exit while; {continue script execution}
endif;
endwhile; {otherwise just loop for a while}

LocalTag = x;

-----------------------------------------------------------------
Reasons:
"...an ArchestrA Symbol can be embedded into an InTouch window and run anonymously, the time it takes to connect to the reference can be longer than one scan cycle."
"The while loop provides additional time for the symbol to connect to the reference."

Source: Wonderware Creating and Managing ArchestrA Graphics User’s Guide (10/15/13). Page: 283.
  Reply With Quote
Old May 20th, 2016, 03:01 PM   #4
joaco1993
Lifetime Supporting Member
United States

joaco1993 is offline
 
Join Date: Sep 2014
Location: newyork
Posts: 159
Hello Tranh or anyone who is expertise in system platform.

Could any of you upload a galaxy in order to see how is the approach of using objects ?? I am using systemplatform and deploying.

But the only thing I deploy is the winplatform, winviewr , and the intouch app

So basically im still working with intouch tags but just having the possibility to deploty de app to different computers.

I would like to see how is the approach with the objects, and stop using intouch tags..

So if anyone can upload a galaxy it would be great !!

Thanks.
  Reply With Quote
Old May 4th, 2018, 09:52 AM   #5
kevinddr21
Member
Colombia

kevinddr21 is offline
 
Join Date: May 2016
Location: Soledad
Posts: 5
Using SetCustomPropertyValue() is the most common option for scripting in graphics, in your case:

SetCustomPropertyValue("LocalTag",me.tagname + ".Auto.InAlarm",false);

Where LocalTag is a Custom Property of an ArchestrA Graphic. Note the use of the quotation marks.
  Reply With Quote
Reply
Jump to Live PLC Question and Answer Forum

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Topics
Thread Thread Starter Forum Replies Last Post
System Platform Alarms LIst RheinhardtP LIVE PLC Questions And Answers 0 February 25th, 2014 09:45 PM
Rockwell Ultra servo series motors weekev LIVE PLC Questions And Answers 26 November 3rd, 2006 08:01 PM
Manual/Auto jthornton LIVE PLC Questions And Answers 9 October 5th, 2006 01:40 PM
Hydraulic Winch Control shelnian LIVE PLC Questions And Answers 10 May 3rd, 2006 10:51 AM
how often should I trigger the PID? Ron Beaufort LIVE PLC Questions And Answers 11 February 22nd, 2003 11:57 AM


All times are GMT -5. The time now is 06:39 AM.


.