en:software:qview:qview_6:qcl_library:vr10swrtoasc

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
en:software:qview:qview_6:qcl_library:vr10swrtoasc [2017/02/06 17:30] – [Esempio] qem103en:software:qview:qview_6:qcl_library:vr10swrtoasc [2019/08/29 17:01] (current) – external edit 127.0.0.1
Line 1: Line 1:
 +====== VR10SWrToAsc ======
 +
 +**V = **//Variables//
 +
 +**R = **//Reading functions//
 +
 +SIGNED WORD  ---->  ASCII
 +
 +The VR10SWrToAsc function __Converts a Signed Word variable type (word with sign) in an Ascii variable type__.
 +
 +===== IMPLEMENTATION =====
 +
 +**VR10SWrToAsc (value, index, array, errcode)**
 +
 +Parameters:
 +
 +^IN/OUT^VARIABLE TYPE^EXAMPLE NAME^DIM^^
 +|  IN  |  GLOBAL  |  value  |  W  |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 + 3" 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
 +
 +=== Example ===
 +
 +Transforms the value -100 (signed word) in an Ascii value
 +
 +<code QCL>
 +value = -100
 +index = 1
 +
 +VR10SWrToAsc (value, index, array, errcode)
 +
 +;On the array will be :
 +; array[1] = 70
 +; array[2] = 70
 +; array[3] = 57
 +; array[4] = 67 (FF9C H)
 +</code>
 +
 +=== Note ===