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