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:vr10lngtowrd [2017/02/06 15:12] – [IMPLEMENTATION] qem103en:software:qview:qview_6:qcl_library:vr10lngtowrd [2019/08/29 17:01] (current) – external edit 127.0.0.1
Line 1: Line 1:
 +====== VR10LngtoWrd ======
 +
 +**V = **//Variable//
 +
 +**R = **//Reading functions//
 +
 +The VR10LngtoWrd function __breaks up a LONG variable into two variables of Word__.\\
 +The function is passed the Long variable that will be broken up into two variables word: "Word high part" and "Word low part".
 +
 +===== IMPLEMENTATION =====
 +
 +**VR10LngtoWrd (slLong,swWordUp,swWordDw)**
 +
 +Parameters:
 +
 +^IN/OUT^VARIABLE TYPE^EXAMPLE NAME^DIM^^
 +|  IN  |  SYSTEM / GLOBAL  |  SlLong  |  L  |Long variable by break up|
 +|  OUT  |  SYSTEM / GLOBAL  |  SwWordUp  |  W  |Word that represents the UPPER part of the Long|
 +|  OUT  |  SYSTEM / GLOBAL  |  SwWordDw  |  W  |Word that represents the LOWER part of the Long|
 +
 +=== Example ===
 +
 +<code QCL>
 +MAIN:
 +
 +slLong = AnAsse:setpos         ;Loads the setpos a device on Long by break up
 +
 +VR10LngtoWrd (slLong,swWordUp,swWordDw)         ;Break up the Long variable
 +
 +aswBuffer[200] = swWordDw ;Sets the lower part on the Buffer
 +aswBuffer[201] = swWordUp ;Sets the upper part on the Buffer
 +
 +......
 +.....
 +END
 +</code>
 +
 +=== Note ===
 +
 +  *If the variable is used to set 2 word on the switch buffer between Qmove and another device, remember that usually is passed before the lower variable and than the upper part. You will have the lower buffer on an element and the upper part to the next element.