Differences
This shows you the differences between two versions of the page.
en:software:qview:qview_6:qcl_library:ac10ctrlarr [2017/02/17 17:52] – created qem103 | en:software:qview:qview_6:qcl_library:ac10ctrlarr [2019/08/29 17:01] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== AC10CtrlArr ====== | ||
+ | |||
+ | **A = **//Array// | ||
+ | |||
+ | **C = **// | ||
+ | |||
+ | The ControlArray function __scans the values of an array, depending on the type of analysis required__. The analysis type is passed as an argument; possible values are shown below in the Type paragraph. | ||
+ | |||
+ | ===== IMPLEMENTATION ===== | ||
+ | |||
+ | **AC10CtrlArr (array, tipo, result, done)** | ||
+ | |||
+ | Parameters: | ||
+ | |||
+ | ^IN/ | ||
+ | | IN | ARRSYS | ||
+ | | IN | GLOBAL | ||
+ | | OUT | GLOBAL | ||
+ | | OUT | GLOBAL | ||
+ | |||
+ | ==== Type ==== | ||
+ | |||
+ | tipo = 1 the function sets the result to 1 if at least one of the values in the array is non-zero\\ | ||
+ | tipo = 2 the function sets the result to 1 if all the values in the array are not zero\\ | ||
+ | tipo = 3 the function sets the result to 1 if the majority of the values of the array is non-zero | ||
+ | |||
+ | === Example === | ||
+ | |||
+ | Check the array, when the " | ||
+ | |||
+ | <code QCL> | ||
+ | IF gfConfronta | ||
+ | gfConfronta = 0 | ||
+ | tipo = 1 | ||
+ | AC10CtrlArr (array, tipo, result, done) | ||
+ | IF NOT result | ||
+ | | ||
+ | ENDIF | ||
+ | ENDIF | ||
+ | </ | ||
+ | |||
+ | === Note === | ||
+ | |||
+ | * The function executes a WAIT a time every 180 milliseconds | ||