VC10ChronVar
V = Variables
C = Calculation functions
The VC10ChronVar function determines the total (in hours, minutes and seconds) time in which a flag variable takes the value 1.
IMPLEMENTATION
VC10ChronVar (var01, hours, minutes, seconds)
Parameters:
IN/OUT | VARIABLE TYPE | EXAMPLE NAME | DIM | |
---|---|---|---|---|
IN | GLOBAL / INPUT / OUTPUT | var01 | F | Variable to analyze |
OUT | SYSTEM | hours | L | Hours (activating variable) |
OUT | SYSTEM | minutes | L | Minutes (activating variable) |
OUT | SYSTEM | seconds | L | Seconds (activating variable) |
Example
In the axample the var01 variable is reset after it has been active for at least 5 hours.
VC10ChronVar (var01, hours, minutes, seconds)
IF (hours GE 5) AND (minutes GE 30) var01 = 0 hours = 0 minutes = 0 seconds = 0 ENDIF
Note
-
The function should be placed at a point of the application that runs on every round makes sense in order to be effective.