Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
en:software:qview:qview_6:qcl_library:vc10collval [2017/01/27 17:32] – [IMPLEMENTAZIONE] qem103en:software:qview:qview_6:qcl_library:vc10collval [2019/08/29 17:01] (current) – external edit 127.0.0.1
Line 1: Line 1:
 +====== VC10CollVal ======
 +
 +**V = **//Variables//
 +
 +**C = **//Calculation functions//
 +The VC10CollVal function __sets a result on a variable (resul) on the basis of the value from a variable than other 2__.\\
 +The function follows the following truth table:
 +
 +**Truth table**
 +
 +|val01 >  val02|result = 0|
 +
 +All subsequent cases relate to val01 <= val02 and analyze only Val03
 +
 +|//**val0**//**3** <   val01|result = 1|
 +|val01 <= //**val03**// < valore2|result = 2|
 +|//**val03**// >= val02|result = 3|
 +
 +===== IMPLEMENTATION =====
 +
 +**VC10CollVal (val01, val02, val03, Result)**
 +
 +Parameters:
 +
 +^IN/OUT^VARIABLE TYPE^EXAMPLE NAME^DIM^^
 +|  IN  |  SYSTEM  |  val01  |  L/S  |First value to compare|
 +|  IN  |  SYSTEM  |  val02  |  L/S  |Second value to compare|
 +|  IN  |  SYSTEM  |  val03  |  L/S  |The value to compare with val01 and val02|
 +|  OUT  |  SYSTEM  |  result  |  B  |Variable containing the result of the comparison according to the truth table shown above|
 +
 +=== Example ===
 +
 +Run the comparison when the "gfComp" flag is set to 1.
 +
 +<code QCL>
 +IF gfComp
 + gfComp = 0
 + val01 = 1000
 + val02 = 5000
 +        VC10CollVal (val01, val02, val03, result)
 +ENDIF
 +</code>
 +
 +=== Note ===
 +
 +  * The function execute a WAIT a time every 180 milliseconds