Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
en:software:qview:qview_6:qcl_library:vc10collval [2017/01/27 17:26] – created qem103 | en: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 = **// | ||
+ | |||
+ | **C = **// | ||
+ | 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 | ||
+ | |||
+ | |// | ||
+ | |val01 <= // | ||
+ | |// | ||
+ | |||
+ | ===== IMPLEMENTATION ===== | ||
+ | |||
+ | **VC10CollVal (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 | ||
+ | VC10CollVal (val01, val02, val03, result) | ||
+ | ENDIF | ||
+ | </ | ||
+ | |||
+ | === Note === | ||
+ | |||
+ | * The function execute a WAIT a time every 180 milliseconds | ||