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:vr10bintosln [2017/02/06 16:55] – [Errcode] qem103 | en:software:qview:qview_6:qcl_library:vr10bintosln [2019/08/29 17:01] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== VR10BinToSLn ====== | ||
+ | |||
+ | **V = **// | ||
+ | |||
+ | **R = **//Reading functions// | ||
+ | |||
+ | BINARY | ||
+ | |||
+ | The VR10BinToSLn function __converts a binary variable type to a Signed Long type (long with sign)__. | ||
+ | |||
+ | ===== IMPLEMENTATION ===== | ||
+ | |||
+ | **VR10BinToSLn (array, index, return, errcode)** | ||
+ | |||
+ | Parameters: | ||
+ | |||
+ | ^IN/ | ||
+ | | IN | ARRGBL | ||
+ | | IN | GLOBAL | ||
+ | | OUT | GLOBAL | ||
+ | | OUT | GLOBAL | ||
+ | |||
+ | ==== Errcode ==== | ||
+ | |||
+ | After calling the function, ' | ||
+ | 0: No error | ||
+ | |||
+ | === Example === | ||
+ | |||
+ | Transforms a value (binary) in an signed long value | ||
+ | |||
+ | <code QCL> | ||
+ | index = 1 | ||
+ | array[1] = 1 | ||
+ | array[2] = 50 | ||
+ | array[3] = 120 | ||
+ | array[4] = 25 | ||
+ | |||
+ | VR10BinToSLn (array, index, return, errcode) | ||
+ | |||
+ | ;On the return data you will find : | ||
+ | ; return = 20084761 | ||
+ | </ | ||
+ | |||
+ | === Note === | ||