Expression Editor ViewStudio

LogixDenier

Member
Join Date
Apr 2024
Location
Atlanta
Posts
2
Morning,

we are changing how we control an HMI by having our users sign into iFix which then sends a tag to the HMI. Looking at a specific DINT in that array we have it structured so that 10 is an operator, 15 is a Line Lead, 20 is maintenance, and 25 is admin. The old header in the display pictures looked at the user that was signed into the HMI that is no longer being used and they want the HMI to see who is signed in and display it in the header. I have the visibility for the buttons working in the same fashion and it worked but I cant get the header to work.

The expression I used for the button visibility was

Visibility {[WLD_PLC_2]INTK_FROM_WC_TO_FD.EI.Aux_Eq[1]} >= 15

In the header the object is a string display and I have the Expression for it as

IF [WLD_PLC_2]INTK_FROM_WC_TO_FD.EI.Aux_Eq[01] == 10 THEN "Operator"
ELSE IF [WLD_PLC_2]INTK_FROM_WC_TO_FD.EI.Aux_Eq[01] == 15 THEN "Line Lead"
ELSE IF [WLD_PLC_2]INTK_FROM_WC_TO_FD.EI.Aux_Eq[01] == 20 THEN "Maintenance"
ELSE IF [WLD_PLC_2]INTK_FROM_WC_TO_FD.EI.Aux_Eq[01] == 25 THEN "Admin"
ELSE "Unknown"

I keep getting syntax errors and I normally don't mess with ViewStudio so I'm sure I'm formating it wrong. Any advice would be appreciate while I try to find more info online.
 

Similar Topics

hey yall... Im having some trouble writing an expression. Every time I download it to the screen, i get message saying something like "this...
Replies
7
Views
2,688
I have apparently hit about a 980 character limit in the FT View ME String expression editor. I need to fit about 1 more line if I could. Is...
Replies
2
Views
2,845
I'm writing some structured text that's handling a data structure that comes from a PC. The PC structure is in the "new" LREAL 64-bit floating...
Replies
3
Views
519
Good Morning, I've been working on an HMI using the Panel View 5000 series. I admittedly was not very good at Factory Talk View Studio, but I...
Replies
7
Views
1,064
Hey everyone, I am trying to right an expression in FTView and getting syntax errors. If {[PLC]System.Auto} Then 1 OR If {[PLC]System.Estopped}...
Replies
2
Views
599
Back
Top Bottom