FTview ME syntax error in expression

bdoutney

Lifetime Supporting Member
Join Date
Aug 2011
Location
LI NY
Posts
92
FactoryTalk view ME 8.1
Micrologix 1100
Panelview+ 600 = 2711P-T6C20D8
MER saved as 8.0

I am trying to write an expression for an alarm trigger that will be true when one bit is on(power on) and the other goes off(low level)

{::[PDS_2P+4P]B3:2/8}== 1 AND {::[PDS_2P+4P]B3:1/4} == 0 is not valid

{::[PDS_2P+4P]B3:2/8}== 1 AND {::[PDS_2P+4P]B3:1/4== 0} is valid but later the program says "no tag exists, would you like to create it"

{::[PDS_2P+4P]B3:2/8} AND {::[PDS_2P+4P]B3:1/4} this was valid and worked but only for the scenario of both bits being Hi.
 
Sorry, didn't fully examine the requirements...

You could try XOR is to see if it's valid.

Or, set it up as
(B3:2/8 AND NOT B3:1/4) OR (NOT B3:2/8 AND B3:1/4)

Or, you could do the logic in the PLC and the result bit gives you what you want without trying to wrangle the HMI to do the logic.
 
Sorry, didn't fully examine the requirements...

You could try XOR is to see if it's valid.

Or, set it up as
(B3:2/8 AND NOT B3:1/4) OR (NOT B3:2/8 AND B3:1/4)

Or, you could do the logic in the PLC and the result bit gives you what you want without trying to wrangle the HMI to do the logic.
Thanks, I know it would be easier in the PLC. Just started learning FT and trying to get the hang of expressions
 
Parenthesis......

( {::[SLC500]B3:2/8}== 1 ) AND ( {::[SLC500]B3:1/4} == 0 )

Make it solve the expression to the left of the AND before performing the AND. In your first example it solves the equation on the left then does the AND with B3:1/4 and it can't understand why you have the ==0 in the equation. Make it solve the expression to the left, then solve the expression to the right and only then perform the AND.



OG
 
Hi,

You could just use something like:

[Tag1] AND NOT [Tag2]

If you are conditioning at bit level you don't necessarily need to compare to 1 or 0 - they will be TRUE or FALSE by default.

Hope this helps,

Rob
 

Similar Topics

Does anybody know what's wrong with this syntax and why the time displays properly but the date doesn't?
Replies
3
Views
1,666
Can anyone help me with the syntax for referring to a tag on an OPC server which is configured in the root of an FTView application? I'm trying...
Replies
7
Views
5,773
Hey everyone, This may be a bit of a big ask, but I was wondering if anyone had any experience with a bit of wonky addressing in FTView SE. I'm...
Replies
5
Views
2,563
Hi there, Anyone know the VBA syntax to open a display and pass a parameter file in FTVIew SE? I can open the Display using...
Replies
3
Views
5,823
Hi folks. I have a system that I'm working on that needs 2 alarms banners with different event subscription: - One banner for a specific area...
Replies
0
Views
42
Back
Top Bottom