Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
en:software:qview:qview_6:qcl_library:vr10swrtoasc [2017/02/06 17:26] – created qem103 | en:software:qview:qview_6:qcl_library:vr10swrtoasc [2019/08/29 17:01] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== VR10SWrToAsc ====== | ||
+ | |||
+ | **V = **// | ||
+ | |||
+ | **R = **//Reading functions// | ||
+ | |||
+ | SIGNED WORD ----> | ||
+ | |||
+ | The VR10SWrToAsc function __Converts a Signed Word variable type (word with sign) in an Ascii variable type__. | ||
+ | |||
+ | ===== IMPLEMENTATION ===== | ||
+ | |||
+ | **VR10SWrToAsc (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 -100 (signed word) in an Ascii value | ||
+ | |||
+ | <code QCL> | ||
+ | value = -100 | ||
+ | index = 1 | ||
+ | |||
+ | VR10SWrToAsc (value, index, array, errcode) | ||
+ | |||
+ | ;On the array will be : | ||
+ | ; array[1] = 70 | ||
+ | ; array[2] = 70 | ||
+ | ; array[3] = 57 | ||
+ | ; array[4] = 67 (FF9C H) | ||
+ | </ | ||
+ | |||
+ | === Note === | ||