en:software:qview:qview_6:qcl_library:vr10uwrtobin

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:vr10uwrtobin [2017/02/06 15:44] – [IMPLEMENTATION] qem103en:software:qview:qview_6:qcl_library:vr10uwrtobin [2019/08/29 17:01] (current) – external edit 127.0.0.1
Line 1: Line 1:
 +====== VR10UWrToBin ======
 +
 +**V = **//Variables//
 +
 +**R = **//Reading functions//
 +
 +UNSIGNED WORD  ---->  BINARY
 +
 +The VR10UwrToBin function __converts a Unsigned Word variable type (word without sign) in a Binary variable type__.
 +
 +===== IMPLEMENTATION =====
 +
 +**VR10UWrToBin (value, index, array, errcode)**
 +
 +Parameters:
 +
 +^IN/OUT^VARIABLE TYPE^EXAMPLE NAME^DIM^^
 +|  IN  |  GLOBAL  |  value  |  L  |Data value to convert|
 +|  IN  |  GLOBAL  |  index  |  L  |Index of the array element to start the "deposit" of the converted data|
 +|  OUT  |  ARRGBL  |  array  |  B  |Array containing the converted data (must be declared with at least "index + 1" items)|
 +|  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: the return data is less than 0 or greater than 65535
 +
 +=== Example ===
 +
 +Transforms the value 40000 (unsigned word) in a binary value
 +
 +<code QCL>
 +value = 40000
 +index = 1
 +
 +VR10UWrToBin (value, index, array, errcode)
 +
 +;On the array will be :
 +; array[1] = -100
 +; array[2] = 64
 +</code>
 +
 +=== Note ===