Wonderware Archestra

jtanner

Member
Join Date
Feb 2020
Location
USA
Posts
1
I am trying to create a script in an Archestra graphic that will eventually talk to an Omron PLC. I need to access the elements that I create for the control by reference. It's simple in Visual Basic but I can't figure out if Archestra scripting can do this. For simplicity sake, I have created a simple graphic that has a couple of comboboxes that I want to put data in. I can do combo1.value = "2", combo2.value = "2" and so forth. I would like to use a loop to do this, such as


dim tmpElement as Indirect;

for t = 1 to x ' number of comboboxes I have

tmpElement.BindTo("combo" & t & ".Value");
'I wave a small wait loop per Wonderware tech note here for the Bind to Complete

tmpElement.value = 2;next


This doesn't work. I get a Failed to bind error. It seems BindTo only works for IO attributes. SetCustomProperty seemed promising but the command only works on custom properties, not controls in your graphic. In VB you create an object and can do this type of indirect referencing. Any one ever done this? It sure would make it easier to loop through these boxes or whatever control one would use and load the value from an array vs. doing each manual entry. Thanks for your time
 

Similar Topics

Hi All I'm a novice starting to work on WW and Archestra, I've been adding repetitive attributes on the front end which has been tedious and was...
Replies
4
Views
2,097
Hey I was needing help with some alarm scripting in Woderware System Platform. What would be the best way to write a script to auto acknowledge...
Replies
2
Views
2,553
The application is not getting deployed after a power failure. After the power got restored, I tried to deploy an updated instance but the...
Replies
1
Views
4,042
I have to work on a Wonderware HMI and have very little experience with it. The basic idea is to copy an old project, make a few edits, and load...
Replies
7
Views
4,924
I drag and drop them (valves, pumps, etc.) onto the displays, enter the object name, and they update fine at runtime (turning green, etc.), but...
Replies
1
Views
1,853
Back
Top Bottom