Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
en:software:qview:qview_6:qcl_library:vr10asctosby [2017/02/06 17:55] – created qem103 | en:software:qview:qview_6:qcl_library:vr10asctosby [2019/08/29 17:01] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== VR10AscToSBy ====== | ||
+ | |||
+ | **V = **// | ||
+ | |||
+ | **R = **//Reading functions// | ||
+ | |||
+ | ASCII ----> SIGNED BYTE | ||
+ | |||
+ | The VR10AscToSBy function __converts an Ascii variable type in an Signed Byte type (byte with sign)__. | ||
+ | |||
+ | ===== IMPLEMENTATION ===== | ||
+ | |||
+ | **VR10AscToSBy (array, index, return, errcode)** | ||
+ | |||
+ | Parameters: | ||
+ | |||
+ | ^IN/ | ||
+ | | IN | ARRGBL | ||
+ | | IN | GLOBAL | ||
+ | | OUT | GLOBAL | ||
+ | | OUT | GLOBAL | ||
+ | |||
+ | ==== Errcode ==== | ||
+ | |||
+ | After calling the function, ' | ||
+ | 0: No error\\ | ||
+ | 1: Error: ASCII value is not within 48÷57 or 65÷70 | ||
+ | |||
+ | === Example === | ||
+ | |||
+ | Transforms the value -5 (ASCII) in an signed byte value | ||
+ | |||
+ | <code QCL> | ||
+ | index = 1 | ||
+ | array[1] = 49 | ||
+ | array[2] = 52 | ||
+ | |||
+ | VR10AscToSBy (array, index, return, errcode) | ||
+ | |||
+ | ;On the return data you will find : | ||
+ | ; return = 20 (14H) | ||
+ | </ | ||
+ | |||
+ | === Note === | ||