en:software:qview:qview_6:qcl_library:vt10onchvar

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

en:software:qview:qview_6:qcl_library:vt10onchvar [2017/02/03 15:35] – created qem103en:software:qview:qview_6:qcl_library:vt10onchvar [2019/08/29 17:01] (current) – external edit 127.0.0.1
Line 1: Line 1:
 +====== VT10OnChVar ======
 +
 +**V = **//Variables//
 +
 +**T = **//Control functions//
 +
 +The VT10OnChVar function __checks the value of a variable and set a flag if the value changes__.
 +
 +===== IMPLEMENTATION =====
 +
 +**VT10OnChVar (var01, changed)**
 +
 +Parameters:
 +
 +^IN/OUT^VARIABLE TYPE^EXAMPLE NAME^DIM^^
 +|  IN  |  SYSTEM /\\ INPUT /\\ OUTPUT  |  var01  |  F/L  |Variable to check|
 +|  OUT  |  GLOBAL  |  changed  |  F  |Change execute flag|
 +
 +=== Example ===
 +
 +In the example, if the 'pippo' variable change its value output is activated the 'ofUscita' output.
 +
 +**VT10OnChVar (pippo, changed)**
 +
 +<code QCL>
 +IF changed
 + changed = 0
 + SETOUT ofUscita
 +ENDIF
 +</code>
 +
 +=== Note ===
 +
 +  *To be effective, the function should be placed at a point of the application that runs on every logical round.
 +  *The flag that signals the change must be reset externally to the function.