Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision | |||
| en:software:qview:qview_6:qcl_library:vr10slntobin [2017/02/06 16:00] – [Esempio] qem103 | en:software:qview:qview_6:qcl_library:vr10slntobin [2019/08/29 17:01] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== VR10SLnToBin ====== | ||
| + | |||
| + | **V = **// | ||
| + | |||
| + | **R = **//Reading functions// | ||
| + | |||
| + | SIGNED LONG ----> | ||
| + | |||
| + | The VR10SLnToBin function __converts a Signed Long variable type (long with sign) in a Binary variable type__. | ||
| + | |||
| + | ===== IMPLEMENTATION ===== | ||
| + | |||
| + | **VR10SLnToBin (value, index, array, errcode)** | ||
| + | |||
| + | Parameters: | ||
| + | |||
| + | ^IN/ | ||
| + | | IN | GLOBAL | ||
| + | | IN | GLOBAL | ||
| + | | OUT | ARRGBL | ||
| + | | OUT | GLOBAL | ||
| + | |||
| + | ==== Errcode ==== | ||
| + | |||
| + | After calling the function, ' | ||
| + | 0: No error | ||
| + | |||
| + | === Example === | ||
| + | |||
| + | Transforms the value 80000 (signed long) in a binary value | ||
| + | |||
| + | <code QCL> | ||
| + | value = 80000 | ||
| + | index = 1 | ||
| + | |||
| + | VR10SLnToBin (value, index, array, errcode) | ||
| + | |||
| + | ;On the array will be : | ||
| + | ; array[1] = 0 | ||
| + | ; array[2] = 1 | ||
| + | ; array[3] = 56 | ||
| + | ; array[4] = -128 | ||
| + | </ | ||
| + | |||
| + | === Note === | ||