FilterOn returns the filter runtime since the last backwash based on a status variable, Cx.
SYNTAX:
FilterOn(Cx, On, Off, Back, CalcTimeIn, Flag)
where :
Cx is a conditional variable x. A daily variable that contains the status of the filter. The status variable contains a value that displays whether the filter is running (On), offline (Off), or in backwash.
On the value of Cx when the filter is on. Default = 1
Off the value of Cx when the filter is off. Default = 0
Back the value of Cx when the filter is in backwash. Default = 2
CalcTimeIn sets wheter to calculate in hours (1) or minutes (0).
Flag sets whether to calculate the filter runtime since the last backwash (default 0) or calculate the filter runtime between backwashes (1).
EXAMPLES:
V150 = FilterOn(C71, 1, 0, 2, 1, 1)
Variable 150 calculates the total time between back washes of a filter (variable 71 contains the status of the filter). Time is returned in hours (CalcTimeIn = 1):
V150 = FilterOn(C71, 1, 0, 2, 1, 0)
Variable 150 will now daily caluclate the time (in hours) since the last backwash was performed: