Visibility Expressions - FactoryTalk View SE

JJH

Member
Join Date
Oct 2015
Location
South Carolina
Posts
57
I have a button on my HMI that I only want visible under two conditions. One of them is a numerical value and the other is if a bit is on.

English translation

If Variable 1 = 0 OR BooleanBit is TRUE, then show the button

I tried entering the expression in the button's Visibility parameter in Animation as such:

{[Program]Variable} = 0 OR {[Program]}

However, it does not work on both conditions. It will work if I just use one of them but not as shown above, even if the order is reversed.

There must be a trick of how to write an expression that uses multiple values...... any suggestions?
 
Hi,

Just a little extra info...you don't actually need to compare the boolean tag. If it's =1 then it's TRUE, so you can just declare the tag.

(VariableTag == 0) OR (BooleanTag)

Regards,

Rob
 
Good point Kidblue! I'm in the habit of putting the == 1 even on BOOL operators simply for legibility and ease of troubleshooting by maintenance. Makes my phone ring less ;)

But yes, you don't necessarily need it, and if I'm just using one BOOL tag for visibility I don't bother either.
 

Similar Topics

Using Parameters set to 1 or 0 for button visibility I want to use a parameter in the visibility expression for button on my menu, what I'm doing...
Replies
3
Views
4,125
Hi, I wanted to ask is there a way to have a visibility expression use the IP address of the HMI (Dynics, not PV) to show certain elements? The...
Replies
3
Views
165
Hello, hope yall are doing well. I have a HMI program where I need to add a "GoToDisplay" button, so when this button is pressed, it goes to a...
Replies
5
Views
870
More help again please... See the picture. I want to make the rectangle visible when Mr_Zr_ToggleSwitch is 1, and make it invisible when 0...
Replies
5
Views
2,460
I inherited responsibility for a large FTView SE ver11 application. This application has close to 500 displays. Visibility has been applied to...
Replies
3
Views
984
Back
Top Bottom