FactoryTalk View Expressions

DonKnotts

Member
Join Date
Mar 2012
Location
Ontario
Posts
5
I'm new to FactoryTalk and have gotten stuck on an expression. Here was my expression for OR the inputs together. {[PLC]Electrode_1_Bottom_LS} OR {[PLC]Electrode_2_Bottom_LS} OR {[PLC]Electrode_3_Bottom_LS} my problem when testing was that the inputs were XIC instead of XIO so I need the inverted state of them. I tried this: NOT{ [PLC]Electrode_1_Bottom_LS} OR NOT{[PLC]Electrode_2_Bottom_LS} OR NOT{[PLC]Electrode_3_Bottom_LS} and it verifies but when I test the application it says my expression is invalid? There must be something I'm missing?
 
You could try
(NOT{[PLC]Electrode_1_Bottom_LS} OR
NOT{[PLC]Electrode_2_Bottom_LS} OR
NOT{[PLC]Electrode_3_Bottom_LS})

but what are you trying to do?

IE if anything turns off an indicator turns on? (Just checking if another kind of statement would work.)
 
You could try
(NOT{[PLC]Electrode_1_Bottom_LS} OR
NOT{[PLC]Electrode_2_Bottom_LS} OR
NOT{[PLC]Electrode_3_Bottom_LS})

but what are you trying to do?

IE if anything turns off an indicator turns on? (Just checking if another kind of statement would work.)
I don't get it but this is pretty much what I had before but works NOT {[PLC]Electrode_1_Bottom_LS} OR NOT {[PLC]Electrode_2_Bottom_LS} OR NOT {[PLC]Electrode_3_Bottom_LS} must have missed a space somewhere.

Thanks for your help
 
I put parentheses around it, I have seen Or/And statements have issues without parentheses.

Edit: You also had 'NOT{ [PLC]Electrode_1_Bottom_LS}' that originally, I changed to 'NOT{[PLC]Electrode_1_Bottom_LS}'.
 

Similar Topics

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...
Replies
5
Views
9,886
I'm trying to get a multistate indicator to change color based on the value of a string variable that's read from an OPC server. The string value...
Replies
4
Views
10,662
Hello, I have a panelview plus that reads from 4 different PLC's. 2 of these used to be Micrologix PLC's and someone else went and updated them to...
Replies
3
Views
113
Hi. I need to create several alarm servers in an application, but first I need to know if there is any impact on communication, or if more...
Replies
0
Views
78
Hello all, I'm having trouble opening an application. After clicking open I'm prompted to login and after putting in username & password it...
Replies
0
Views
90
Back
Top Bottom