Visibility Animation, FTVS Expression

Join Date
Aug 2015
Location
Detroit, MI
Posts
177
I am trying to hide a button unless 2 possible users are logged in AND a DINT in my processor is == 0. I can't seem to work out the syntax with evaluating the two conditions.

Currently my expression is:
(CurrentUserName(  ) ="Person1")  OR  
(CurrentUserName( ) ="Person2") AND
{[CompactLogix]GREASE_FAULT_RESET_COMPLETE} == 0



Where am I going wrong?


EDIT: Figured it out myself. I am missing the parenthesis around my tag reference as the second condition, as it is a relational statement. When combining relational statements and logical statements, you need to enclose the relational statements in parenthesis. It should have looked like this:

(CurrentUserName(  ) ="JMichael")  OR  
(CurrentUserName( ) ="maint") AND
({[CompactLogix]GREASE_FAULT_RESET_COMPLETE} == 0)




:eek:
 
Last edited:

Similar Topics

Hi all. My problem is: I need to setup a visibility animation in with the values to be compared come from a parameter file. One of the parameter...
Replies
6
Views
4,687
FactoryTalk View Studio - Machine Edition Version 7.00.00(CPR 9 SR 6) PanelView Plus600 I have created a few small PanelView projects and often...
Replies
5
Views
4,564
Hi All, Our FT View ME application has 2 PV+ 1000's and a SLC-5/05 processor. One of the PVs will be used as a remote viewing terminal, one...
Replies
6
Views
4,967
Hi All, Been a while since I've been on the forum. I've spent the last 2 years working pretty heavily in Wonderware InTouch and now have to...
Replies
8
Views
9,456
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
846
Back
Top Bottom