Cordex®CXCHPControllerSoftwareManual|22-Usingcustomviews,data,timers,counters,scheduler,andcustomactions
TherearealsofieldstodescribethestateoftheInterval Timer:
•
Output: Theoutputtimeofthetimer.Forcustomdatacalculationsthisvalueismeasuredin
seconds.Forexample,avalueshownas'1m3s'willbeconsideredas63sintheequation.
•
Start Event: ThepresentvalueoftheStart Event field.Itwillevaluatetotrueorfalse.
•
Stop Event: ThepresentvalueoftheStop Event field.Itwillevaluatetotrueorfalse.
TheReinitialize Timer buttoncanbeusedifthetimerconfigurationhasbeenchangedwhilethetimeris
active.
Notice: It is also possible to test the timer or force it into a desired state using the Force Timer
to Start and Force Timer to End buttons even if Start Event and Stop Event have not been
configured.
• Force Timer to Start simulatestheStart Event goingfromfalsetotrue.
• Force Timer to End simulatestheStop Event goingfromfalsetotrue.
Interval timer operation
Theintervaltimeroperatesasfollows:
• WhenStart Event goesfromfalsetotrue,thetimerOutput beginsincrementingsecondsstarting
from0.
• WhenStop Event goesfromfalsetotrue,thetimerOutput stopsincrementingsecondsand
remainsatthevalueithadattheStopEventtime.
• Ifthetimerisincrementingseconds,andtheStart Event goesfalsetotrueagain,theOutput
startsincrementingsecondsstartingfrom0.
• WhentheReinitialize Button ispressed,thetimerOutputwillbesetto‘---’.
22.4. Counters
TheCounters featuremakesitpossibletocreateanUp Counter oraDown Counter thatkeepstrackof
events.AcountercanbeusedwithCustom Data asavariableinanequation.
Notice: An event is defined as a boolean expression that transitions from false to true.
Forexample,anUp Counter mightbeconfiguredtoincrementwheneverthebatteryvoltagegoesbelow
acertainvaluetocountthenumberofdischargesthathaveoccurred.
22.4.1. Configure the up counter
AnUp Counter hasfiveconfigurationfields:
0350058-J0 Rev AL Page 247