ftview se derived tag a=a+b

DukeNeo

Member
Join Date
Nov 2013
Location
Kaohsiung
Posts
4
hi, i am new of scada world,

when i build 2 analog tags named "add" and "total", set total = 0, add = 1,and write an expression

tag name: total

if system\Second == 1
then total + add
else total

into derived tag, then display it, when second equal 1, total become to 1, and start blink 0 1 0 1 0 1, is there anything wrong with my setup?
 
You shouldn't have to use the "If" statement with system\Second.
Do you just want to update every 1 minute?

With the derived tag file open, set the update rate to 60 seconds:
from the menu bar Setup>Derived Tag Setup

Then your expression can be:
total + add
 
hi, i am new of scada world,

when i build 2 analog tags named "add" and "total", set total = 0, add = 1,and write an expression

tag name: total

if system\Second == 1
then total + add
else total

into derived tag, then display it, when second equal 1, total become to 1, and start blink 0 1 0 1 0 1, is there anything wrong with my setup?

Your then clause evaluates to 1 (0+1)
Your Else clause evaluates to 0
You should see a "0" for 59 seconds, then "1" for 1 second cycle.

You really don't need an Else clause at all. As others have said, you want to display "total" and execute total = total + add once a minute. Be aware, your If system\second == 1 may not execute just once every minute. If you can't trigger it differently, you will need a little extra code to ensure it only updates once when system\second ==1.
 

Similar Topics

I have a project I have ported from RSView32 to Factorytalk View SE running on a computer. The software is talking to 5 remote plc's over 900mhz...
Replies
4
Views
2,275
I am creating a global object in FTView SE 13. I want to have a string read from the PLC and display (in this case the tagname). So lets say...
Replies
4
Views
167
I want to set user security level based on the value of a tag in my PLC called "ActiveUser". That tag will contain the A-P code which we use for...
Replies
6
Views
209
Hi All, we've recently upgraded from FTView SE v10 to v12. Since the upgrade we've been having a problem where the HMI is slow to update tags in...
Replies
0
Views
87
Hi, I have an issue accessing tags in 3 of my plcs'. When I go to select a tag there is no folder drop down as can be seen in the photo. Any...
Replies
0
Views
86
Back
Top Bottom