Cordex®CXCHPControllerSoftwareManual|22-Usingcustomviews,data,timers,counters,scheduler,andcustomactions
Therearealsofieldstohelptroubleshootandfixequationsthatarenotparsingcorrectly:Custom Data
Status,Error Position,Error Token andExpected Token.Thesefieldsprovidehintstopotential
equationparsingerrors.
Theresultoftheparsedequationcanbedisplayedinthreeformats,asanumeric,boolean(true/false),
orastext.
•
TheResult as Numeric mayshowanumberwithuptosixdecimalplaces,ifthevalueisnumeric.
ResultsofabooleanexpressionwillshowtheconventionalrepresentationofTrue as1.000000
andFalse as0.000000.Thenumberofdecimalplacesandunitsshowncanbesetusingthe
Numeric Units and Precision.
•
TheResult as Boolean expressestheparsedequationastrueorfalse.Anyvaluegreaterthan
0.000001orlessthan-0.000001istrue.
• TheResult as Text usestheentriesintheText Mapping tabletomaptheresultasnumericorthe
resultasbooleantomeaningfultext.
ThecustomdataEquation fieldisconstructedfromacombinationofoperators,numbers,variablesand
functions.Counters andTimers arealsosupportedandaredescribedinaseparatesection.
Operators
Customdatasupportsthefollowingarithmeticandlogicaloperations:
• Add“+”
• Subtract"–"
• Divide"/"
• Multiply"*"
• AND"&"
• OR"|"
• Lessthan"<"
• Greaterthan">"
• Equal"="
• Parenthesis"("and")"
• Unaryminus"-"
Number formats
Customdatasupportsthefollowingformatsfornumbers:
• Decimal:“10.33”or“–4.7”or“0.45”or“.45”
• Integer:“10”or“–4”
Variables
Page 238 0350058-J0 Rev AL