Wonderware InTouch10 - Calculating average temperature

Missy5

Member
Join Date
Jul 2008
Location
NG
Posts
24
Hi,

Can someone help me please? I have two temperatures and I'd like to calculate the average temperature. Average temperature must be written in output field.



I have two tags; booths are Type I/O Real and one tag Average, I defined it like Memory Real.

Then I defined Data Change Script like this

---------------------------------------------------------

(Average )

Average = ((Temp1 + Temp2) /2);

----------------------------------------------------------

I tested it but doesn’t seems to be working (I placed on my window two inputs for Temp1 and Temp2 and one output for tag Average – but nothing happens when I enter numbers into those two inputs).

Very interesting for me is that when I change output of tag Average to input and I enter for example number 30 for Temp1 and number 40 for Temp2, nothing happens yet. But when I enter one number into input of tag Average the right result pops out (35)!??



Thanks.
 
What you wrote is a bit confusing but your data change script will only execute when Average changes. Average will not change unless the script executes so it will never execute. Put your calculation in another type of script or use another trigger such as $Second changing as the trigger.
 
Your script is fine but it should be placed in Data Change Scripts for 'Temp1' and 'Temp2' instead of for 'Average'
 

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
149
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
102
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
183
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
176
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
158
Back
Top Bottom