buddhaman001
Member
First off HI! I absolutely love this forum and want to thank everyone for helping me (though they don't know they have). I'm part of a startup and as such am having to learn all of this on my own, Everyone says I've been doing great but I know I have yet to learn enough to unlock the full potential of these programs.
So what I'm working on tonight is a main icon that will change color at any error in its corresponding display, to do this I'm writing an expression for a color change on the icon (I will be writing actual alarms tomorrow)
My expression list is for factorytalk. Could someone take a quick gaze and see why this is throwing a value other than 0 or 1?
So what I'm working on tonight is a main icon that will change color at any error in its corresponding display, to do this I'm writing an expression for a color change on the icon (I will be writing actual alarms tomorrow)
My expression list is for factorytalk. Could someone take a quick gaze and see why this is throwing a value other than 0 or 1?
Code:
If {Plant11\Booster1Fault} Then 1
Else
If {Plant11\Booster2Fault} Then 1
Else
If ({Plant11\chlorinescale} < 50) Then 1
Else
If {Plant11\generatorfault} Then 1
Else
If ({Plant11\Booster1} OR {Plant11\Booster2} == 1) AND ({Plant11\Flowmeter1} < 50) Then 1
Else
If ({Plant11\SystemPower} == 0) Then 1
Else
If ({Plant11\flowmeter2orresidual} > 1.8 OR < .7) Then 1
Else
If ({Plant11\Systempressure} < 40 OR > 80) Then 1
Else
If ({Plant11\groundstoragelevel} < 12 OR > 25) Then 1
Else 0