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:vc10histvar [2017/01/27 17:47] – [IMPLEMENTAZIONE] qem103 | en:software:qview:qview_6:qcl_library:vc10histvar [2019/08/29 17:01] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== VC10HistVar ====== | ||
+ | |||
+ | **V = **// | ||
+ | |||
+ | **C = **// | ||
+ | |||
+ | The VC10HistVar function __sets a result based on the value taken from a variable than other 2__.\\ | ||
+ | The function follows the following truth table: | ||
+ | |||
+ | **Truth table** | ||
+ | |||
+ | |val01 > val02|result = -1| | ||
+ | |||
+ | All subsequent cases relate to val01 <= Val02 and analyze only val03 | ||
+ | |||
+ | |// | ||
+ | |val01 <= // | ||
+ | |// | ||
+ | |||
+ | The following chart: schematic illustration of the truth table: | ||
+ | |||
+ | {{: | ||
+ | |||
+ | ===== IMPLEMENTATION ===== | ||
+ | |||
+ | **VC10HistVar (val01, val02, val03, result)** | ||
+ | |||
+ | Parameters: | ||
+ | |||
+ | ^IN/ | ||
+ | | IN | SYSTEM | ||
+ | | IN | SYSTEM | ||
+ | | IN | SYSTEM | ||
+ | | OUT | SYSTEM | ||
+ | |||
+ | === Example === | ||
+ | |||
+ | Run the comparison when the " | ||
+ | |||
+ | <code QCL> | ||
+ | IF gfComp | ||
+ | gfComp = 0 | ||
+ | val01 = 1000 | ||
+ | val02 = 5000 | ||
+ | VC10HistVar (val01, val02, val03, result) | ||
+ | ENDIF | ||
+ | </ | ||
+ | |||
+ | === Note === | ||
+ | |||
+ | * The function executes a WAIT a time every 180 milliseconds | ||
+ | * To be effective, the function should be placed at a point of the application that runs on every round logical | ||