Wonderware Expressions

rtragle

Member
Join Date
Jul 2015
Location
Bakersfield
Posts
19
I have a text that I want to change what is displayed based on tags. I’m fine with making the box and putting text into it, but when it comes to expressions, I don’t know how to do the scripting.

I’m doing a Value Display – String, and here’s the expression I have so far:
IF Main:pREGRADE_ST_PB == 1 THEN
"START";
ELSE
IF Main:pREGRADE_ST_EN == 1 THEN
"STARTING";
ELSE
IF Main:pREGRADE_STARTED == 1 THEN
"STARTED";
ELSE
"ERROR";
ENDIF;
ENDIF;
ENDIF;


Thanks,
Ryan
 
I wanted the text to change not for a window to appear.

The solution is to add the logic to a While Showing Window Script

Thanks,
Ryan
 
Can you not just create a tag of the type "memory string" and have your conditions write to that tag? Then just set up a piece of text using "$" as your character to be replaced and have it display that string value?
 
IF Main:pREGRADE_ST_PB == 1 THEN
"START";
ELSE
IF Main:pREGRADE_ST_EN == 1 THEN
"STARTING";
ELSE
IF Main:pREGRADE_STARTED == 1 THEN
"STARTED";
ELSE
"ERROR";
ENDIF;
ENDIF;
ENDIF;

If this is the code you are using, I think the issue you are running into is that it isnt writing the value of "started" to the tag. I believe it would look something like

IF Main:pREGRADE_STARTED == 1 THEN XXXXXXXXX = "START";
ENDIF;

Where the x's are whatever tag you are using to store that.

Sorry if I am misunderstanding something.
 
I don't have any issues now. For reference, here's the code I'm using in the Window's While script:

IF Main:pREGRADE_ST_PB == 1 THEN
PREGRADE_START_BUTTON = "START";
ELSE
IF Main:pREGRADE_ST_EN == 1 THEN
PREGRADE_START_BUTTON = "STARTING";
ELSE
IF Main:pREGRADE_STARTED == 1 THEN
PREGRADE_START_BUTTON = "STARTED";
ELSE
PREGRADE_START_BUTTON = "ERROR";
ENDIF;
ENDIF;
ENDIF;
 

Similar Topics

Hi guys, I have experience with PLC to Excel etc...just starting on using intouch scada screens. I have an Excel sheet that uses mainly...
Replies
1
Views
134
Hello everyone, Recently, my Archestra IDE shut down while I was editing. After restarting the IDE, I noticed warning symbols under my opened...
Replies
1
Views
101
Good morning all. I'm working on a rehab where they had a standalone InTouch 2014 HMI that they called a SCADA, but it's really basic stuff. The...
Replies
4
Views
179
Hi, We are setting up an Aveva Plant SCADA node with the intention to connect it to a Wonderware Historian node. Everywhere I look online I see...
Replies
1
Views
170
Hola chicos. Tengo un problema con el driver de comucicacion dasabcip 5, y un plc controllogix v34, ya realice la comunicacion pero en ciertos...
Replies
2
Views
149
Back
Top Bottom