Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
en:software:qview:qview_6:qcl_library:vc10chronvar [2017/01/23 14:38] – [VC10ChronVar] qem103 | en:software:qview:qview_6:qcl_library:vc10chronvar [2019/08/29 17:01] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== VC10ChronVar ====== | ||
+ | |||
+ | **V = **// | ||
+ | |||
+ | **C = **// | ||
+ | |||
+ | 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/ | ||
+ | | IN | GLOBAL /\\ INPUT /\\ OUTPUT | ||
+ | | OUT | SYSTEM | ||
+ | | OUT | SYSTEM | ||
+ | | OUT | SYSTEM | ||
+ | |||
+ | === Example === | ||
+ | |||
+ | In the axample the var01 variable is reset after it has been active for at least 5 hours. | ||
+ | |||
+ | **VC10ChronVar (var01, hours, minutes, seconds)** | ||
+ | <code QCL> | ||
+ | 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. | ||