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:vr10uwrtoasc [2017/02/06 17:20] – [Esempio] qem103 | en:software:qview:qview_6:qcl_library:vr10uwrtoasc [2019/08/29 17:01] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== VR10UWrToAsc ====== | ||
+ | |||
+ | **V = **// | ||
+ | |||
+ | **R = **//Reading functions// | ||
+ | |||
+ | UNSIGNED WORD ----> | ||
+ | |||
+ | The VR10UWrToAsc function __Converts a Unsigned Word variable type (word without sign) in an Ascii variable type__. | ||
+ | |||
+ | ===== IMPLEMENTATION ===== | ||
+ | |||
+ | **VR10UWrToAsc (value, index, array, errcode)** | ||
+ | |||
+ | Parameters: | ||
+ | |||
+ | ^IN/ | ||
+ | | IN | GLOBAL | ||
+ | | IN | GLOBAL | ||
+ | | OUT | ARRGBL | ||
+ | | OUT | GLOBAL | ||
+ | |||
+ | ==== Errcode ==== | ||
+ | |||
+ | After calling the function, ' errcode ' can take certain values, the meaning of these values is summarized below:\\ | ||
+ | 0: No error\\ | ||
+ | 1: Error: the data to be converted (value) is less than 0 or greater than 65535 | ||
+ | |||
+ | === Example === | ||
+ | |||
+ | Transforms the value 40000 (unsigned word) in an Ascii value | ||
+ | |||
+ | <code QCL> | ||
+ | value = 40000 | ||
+ | index = 1 | ||
+ | |||
+ | VR10UWrToAsc (value, index, array, errcode) | ||
+ | |||
+ | ;On the array will be : | ||
+ | ; array[1] = 57 | ||
+ | ; array[2] = 67 | ||
+ | ; array[3] = 52 | ||
+ | ; array[4] = 48 | ||
+ | </ | ||
+ | |||
+ | === Note === | ||