en:software:qview:qview_6:qcl_library:vr10bintosby

Differences

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

Link to this comparison view

Next revision
Previous revision
en:software:qview:qview_6:qcl_library:vr10bintosby [2017/02/06 16:25] – created qem103en:software:qview:qview_6:qcl_library:vr10bintosby [2019/08/29 17:01] (current) – external edit 127.0.0.1
Line 1: Line 1:
 +====== VR10BinToSBy ======
 +
 +**V = **//Variables//
 +
 +**R = **//Reading functions//
 +
 +BINARIO  ----> SIGNED BYTE
 +
 +The VR10BinToSBy function __converts a binary variable type in a Signed Byte type (byte with sign)__.
 +
 +===== IMPLEMENTATION =====
 +
 +**VR10BinToSBy (array, index, return, errcode)**
 +
 +Parameters:
 +
 +^IN/OUT^VARIBLE 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 the data|
 +|  OUT  |  GLOBAL  |  return  |  B  |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 -5 (binary) in a in signed byte value
 +
 +<code QCL>
 +index = 1
 +array[1] = -5
 +
 +VR10BinToSBy (array, index, return, errcode)
 +
 +;On the return data you will find :
 +; return = -5
 +</code>
 +
 +=== Note ===