en:software:qview:qview_6:qcl_library:vr10asctosln

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

en:software:qview:qview_6:qcl_library:vr10asctosln [2017/02/07 15:20] – created qem103en:software:qview:qview_6:qcl_library:vr10asctosln [2019/08/29 17:01] (current) – external edit 127.0.0.1
Line 1: Line 1:
 +====== VR10AscToSLn ======
 +
 +**V = **//Variables//
 +
 +**R = **//Reading functions//
 +
 +ASCII  ----> SIGNED WORD
 +
 +The VR10AscToSLn functions __converts an Ascii variable type in an Signed Long type (long with sign)__.
 +
 +===== IMPLEMENTATION =====
 +
 +**VR10AscToSLn (array, index, return, errcode)**
 +
 +Parameters:
 +
 +^IN/OUT^VARIABLE TYPE^EXAMPLE NAME^DIM^^
 +|  IN  |  ARRGBL  |  array  |  B  |Array contenente il dato da convertire (must be declared with at least "index + 7" elements)|
 +|  IN  |  GLOBAL  |  index  |  L  |Index of the array element at the beginning of the data|
 +|  OUT  |  GLOBAL  |  return  |  L  |Data value converted|
 +|  OUT  |  GLOBAL  |  errcode  |  F  |Variable that indicates a possible error on the function|
 +
 +==== Errcode ====
 +
 +After calling the function, 'errcode' can take certain values, the meaning of these values is summarized below:\\
 +0: No error\\
 +1: Error: ASCII value is not within 48÷57 or 65÷70 
 +
 +=== Example ===
 +
 +Transforms the Ascii value 4BC1A0 h in an signed long value
 +
 +<code QCL>
 +index = 1
 +array[1] = 48
 +array[2] = 48
 +array[3] = 52
 +array[4] = 66
 +array[5] = 67
 +array[6] = 49
 +array[7] = 65
 +array[8] = 48
 +
 +VR10AscToSLn (array, index, return, errcode)
 +
 +;On the return data you will find :
 +; return = 4964768 
 +</code>
 +
 +=== Note ===