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 April 15th, 2014, 01:59 PM   #1
douglasfcx
Member
Brazil

douglasfcx is offline
 
Join Date: Mar 2014
Location: Gyn
Posts: 2
Wonderware Archestra Script Problem "could not resolve reference"

Using: Wonderware System Plataform 3.0 SP2; Intouch 10 SP2.

I used the Archestra to create objects using a script to automatically assign object attribute I/O references based upon the object instance name.

It was working fine but in some point, when I needed to create new objects, the script stopped to work. The same script that worked for the older objects dont create the references anymore.

The objects indicate one Warning for each reference in script, in the objects properties I can check the warning messages:
"Warning - Script: Could not resolve reference Me.Script.ExecutionCnt in attribute - Script._ExternalReferences"
"Warning - Script: Could not resolve reference Me.Tagname in attribute - Script._ExternalReferences"
"Warning - Script: Could not resolve reference Me.At in attribute - Script._ExternalReferences"
...


This is the script:
Script Name: Script; ExecutionType: Execute;
Expression: Me.Script.ExecutionCnt <= 2 AND Me.Ready==false;
Trigger Type: While True;

if Me.Script.ExecutionCnt == 2 then

Dim sString as System.String;

sString = Me.Tagname;

Me.NameTag = sString.Remove(0,sString.IndexOf("_")+ 1);

Me.At.InputSource = "PLC." + Me.NameTag + ".At";
Me.St.InputSource = "PLC." + Me.NameTag + ".St";
Me.Alr.InputSource = "PLC." + Me.NameTag + ".Alr";
Me.Mnt.InputSource = "PLC." + Me.NameTag + ".Mnt";
Me.Sd.InputSource = "PLC." + Me.NameTag + ".Sd";
Me.Clr.InputSource = "PLC." + Me.NameTag + ".Clr";
Me.Fal.InputSource = "PLC." + Me.NameTag + ".Fal";
Me.Te.InputSource = "PLC." + Me.NameTag + ".Te";
Me.Fr.InputSource = "PLC." + Me.NameTag + ".Fr";
Me.Fw.InputSource = "PLC." + Me.NameTag + ".Fw";
Me.En.InputSource = "PLC." + Me.NameTag + ".En";

Me.Ready = true;
endif;

I use Tagname field to remove the "underline" and then i use the name of object in NameTag, to use the same name that the PLC (ControlLogix5000).


What could I do for that the Archestra execute the script for the new objects?
  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
Wonderware Intouch write problem.. drspanda LIVE PLC Questions And Answers 9 November 18th, 2013 01:11 AM
Wonderware Archestra Symbols/Graphics Phrog30 LIVE PLC Questions And Answers 3 June 16th, 2011 10:05 PM
Wonderware and wwGenericSqlGrid problem mcalidl LIVE PLC Questions And Answers 5 September 13th, 2006 08:28 PM
Wonderware Script Issue ControlLogix LIVE PLC Questions And Answers 2 October 24th, 2005 12:56 PM
Protool script problem Borte LIVE PLC Questions And Answers 0 June 28th, 2005 08:05 AM


All times are GMT -5. The time now is 07:28 PM.


.