en:software:qview:qview_6:qcl_library:vr10wrdtolng

This translation is older than the original page and might be outdated. See what has changed.

VR10WrdtoLng

V = Variable

R = Reading functions

The VR10WrdtoLng function has the task of composing together two WORD forming one LONG variable.
At the function is passed the “high Word” and “low Word” that will form the Long variable.

VR10WrdtoLng (swWordUp,swWordDw,slLong)

Parameters:

IN/OUTVARIABLE TYPEEXAMPLE NAMEDIM
IN SYSTEM / GLOBAL swWordUp W Word that represents the UPPER part of the Long
IN SYSTEM / GLOBAL swWordDw W Word that represents the LOWER part of the Long
OUT SYSTEM / GLOBAL slLong L Long has 2 Word passed to the function

Example

MAIN:
swWordDw = aswBuffer[200]			;Sets the lower part
swWordUp  = aswBuffer[201] 			;Sets the top part
 
VR10WrdtoLng(swWordUp,swWordDw,slLong)	        ;It comprises the Long
 
AnAsse:setpos = slLong				;Sets the Long on setpos a device
 
......
.....
END

Note

  • If the variable you use to read 2 word on the switch buffer between Qmove and another device, Remember that it is passed before the lower variable part and then the top part. You would then lower on an element of the buffer and the top the next element.
  • Last modified: 2019/08/29 17:01