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:vr10asctouwr [2017/02/07 15:07] – [Esempio] qem103 | en:software:qview:qview_6:qcl_library:vr10asctouwr [2019/08/29 17:01] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== VR10AscToUWr ====== | ||
| + | |||
| + | **V = **// | ||
| + | |||
| + | **R = **//Reading functions// | ||
| + | |||
| + | ASCII ----> UNSIGNED WORD | ||
| + | |||
| + | The VR10AscToUWr function __converts an Ascii variable type in an Unsigned Word type (word without sign)__. | ||
| + | |||
| + | ===== IMPLEMENTATION ===== | ||
| + | |||
| + | **VR10AscToUWr (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 === | ||
| + | |||
| + | Transform the Ascii value D832h (55346 DEC) in an unsigned word value | ||
| + | |||
| + | <code QCL> | ||
| + | index = 1 | ||
| + | array[1] = 68 | ||
| + | array[2] = 56 | ||
| + | array[3 = 51 | ||
| + | array[4 = 50 | ||
| + | |||
| + | VR10AscToUWr (array, index, return, errcode) | ||
| + | |||
| + | ;On the return data you will find : | ||
| + | ; return = 55346 | ||
| + | </ | ||
| + | |||
| + | === Note === | ||