Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
en:software:qview:qview_6:qcl_library:vt10onchtvar [2017/02/03 15:51] – [Note] qem103 | en:software:qview:qview_6:qcl_library:vt10onchtvar [2019/08/29 17:01] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== VT10OnChTVar ====== | ||
+ | |||
+ | **V = **// | ||
+ | |||
+ | **T = **//Control functions// | ||
+ | |||
+ | The VT10OnChTVar functiomn __checks the value of a variable and set a flag if the value changes__.\\ | ||
+ | The flag is reset automatically after an adjustable time. | ||
+ | |||
+ | ===== IMPLEMENTATION ===== | ||
+ | |||
+ | **VT10OnChVar (var01, changed)** | ||
+ | |||
+ | Parameters: | ||
+ | |||
+ | ^IN/ | ||
+ | | IN | SYSTEM /\\ INPUT /\\ OUTPUT | ||
+ | | OUT | GLOBAL | ||
+ | | IN | SYSTEM | ||
+ | |||
+ | === Example === | ||
+ | |||
+ | In the example, if the variable ' | ||
+ | |||
+ | <code QCL> | ||
+ | slTimeRes = 10 | ||
+ | VT10OnChVar (pippo, changed, slTimeRes)** | ||
+ | IF changed | ||
+ | SETOUT ofUscita | ||
+ | ENDIF | ||
+ | </ | ||
+ | |||
+ | === Note === | ||
+ | |||
+ | *To be effective, the function should be placed at a point of the application that runs on every round. | ||
+ | *The flag that signals the change is reset automatically from the function once the set time has passed. | ||