Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
en:software:qview:qview_6:qcl_library:vr10lngtowrd [2017/02/06 15:17] – [Note] qem103 | en: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 = **// | ||
+ | |||
+ | **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, | ||
+ | |||
+ | Parameters: | ||
+ | |||
+ | ^IN/ | ||
+ | | IN | SYSTEM / GLOBAL | ||
+ | | OUT | SYSTEM / GLOBAL | ||
+ | | OUT | SYSTEM / GLOBAL | ||
+ | |||
+ | === Example === | ||
+ | |||
+ | <code QCL> | ||
+ | MAIN: | ||
+ | |||
+ | slLong = AnAsse: | ||
+ | |||
+ | VR10LngtoWrd (slLong, | ||
+ | |||
+ | aswBuffer[200] = swWordDw ; | ||
+ | aswBuffer[201] = swWordUp ;Sets the upper part on the Buffer | ||
+ | |||
+ | ...... | ||
+ | ..... | ||
+ | END | ||
+ | </ | ||
+ | |||
+ | === 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. | ||