en:software:qview:qview_6:qcl_library:vr10bintouby

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
en:software:qview:qview_6:qcl_library:vr10bintouby [2017/02/06 16:20] – [Errcode] qem103en:software:qview:qview_6:qcl_library:vr10bintouby [2019/08/29 17:01] (current) – external edit 127.0.0.1
Line 1: Line 1:
 +====== VR10BinToUBy ======
 +
 +**V = **//Variables//
 +
 +**R = **//Reading functions//
 +
 +BINARIO  ----> UNSIGNED BYTE
 +
 +The VR10BinToUBy function __converts a binary variable type in an Unsigned Byte type (byte without sign)__.
 +
 +===== IMPLEMENTATION =====
 +
 +**VR10BinToUBy (array, index, return, errcode)**
 +
 +Parameters:
 +
 +^IN/OUT^VARIABLE TYPE^EXAMPLE NAME^DIM^^
 +|  IN  |  ARRGBL  |  array  |  B  |Array containing the data to be converted (must be declared at least "index" elements)|
 +|  IN  |  GLOBAL  |  index  |  L  |Index of the array element at the beginning data|
 +|  OUT  |  GLOBAL  |  return  |  W  |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
 +
 +=== Example ===
 +
 +Transforms the value -20 (binary) in an unsigned byte value
 +
 +<code QCL>
 +index = 1
 +array[1] = -20
 +
 +VR10BinToUBy (array, index, return, errcode)
 +
 +;On the return you will find :
 +; return = 236
 +</code>
 +
 +=== Note ===