en:software:qview:qview_6:qcl_library:vc10chronvar

This translation is older than the original page and might be outdated. See what has changed.

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.

VC10ChronVar (var01, hours, minutes, seconds)

Parameters:

IN/OUTVARIABLE TYPEEXAMPLE NAMEDIM
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.
  • Last modified: 2019/08/29 17:01