LA-
LM-2
LM-3
J
JM
x
x
x
oop A lwaysfrombeginningorLoop-to-markerofthecurrentprogramx-1times
alternatingdirectionofmotor1indexes( =2to65,535). Amaximumof10
nestedloopcommandscanbeusedperrun.
Memoryusage=3 bytes.
Examples:
Thisexamplesetsalooptorepeat100-1timesallpreviouscommands
alternating
motor1directioneveryrepeat: LA-100<cr>
Consecutively nested loops are equal to the product of their loop values. For
example, the following loops together are equal to 2,500,000,000-1 (50,000 x
50,000): LA-50000,LA50000<cr>
LooponcefrombeginningorLoop-to-markerofthecurrentprogram,
reversingindexdirectionofmotor1andmotor2. See"ExamplePrograms"
sectionforuseofthiscommand.
Memoryusage=1 byte.
Jumptothebeginningofprogramnumber ,xx=0to4. Programnumber
x willtemporarilybethecurrentprogram,allcommandswillbeexecuted
startingfromthefirstonethatwaspreviouslyenteredintoprogramx.
Ifthereis
notanycommandsinprogramx,orafterexecutingthelastcommand,the
programwillend,andtheVXMwillsendthereadyprompttothehost("^"). The
currentprogramnumberwillstillbetheprogramthatwasoriginallyselectedwith
a"PMx"or"PM-x"command. Linkingmultipleprograms(maximumof5)
togetherispossiblebyusingajumpcommand,asthelastcommand,tomakea
jumptoadifferentprogram. Allloopingcommandsinprogramxwillbelocalto
thisprogramonly.
Memoryusage=2 bytes
Example:
Thisexamplewilljumptoprogram
#1: J1<cr>
Example:
Thisexamplewilljumptoprogram#3andreturn:
<cr>
L
LooponcefromthebeginningorLoop-to-markerofthecurrentprogram,
reversingindexdirectionofmotor2. See"ExamplePrograms"sectionforuseof
thiscommand.
Memoryusage=1 byte
JM3
x
21
-XPSWRWKHEHJLQQLQJRISURJUDPQXPEHU[DQGFRPHEDFNIRU0RUHDIWHUSURJUDP[
HQGV[ WR3URJUDPQXPEHU[ZLOOWHPSRUDULO\EHWKHFXUUHQWSURJUDPDOO
FRPPDQGVZLOOEHH[HFXWHGVWDUWLQJIURPWKHILUVWRQHWKDWZDVSUHYLRXVO\HQWHUHG
LQWRSURJUDP[,IWKHUHLVQRWDQ\FRPPDQGVLQSURJUDP[RUDIWHUH[HFXWLQJWKHODVW
FRPPDQGFRQWUROZLOOEHWUDQVIHUUHGEDFNWRWKHSURJUDPWKDWLQLWLDWHGWKH-XPS
WKHQWKHQH[WFRPPDQGLQWKHLQLWLDWLQJSURJUDPZLOOEHH[HFXWHG7KHPD[LPXP
-0[FRPPDQGVDFWLYHDWDWLPHLV7KLVFRPPDQGFDQEHXVHGWRPDNH
SURJUDPPLQJPRUHPRGXODUKDYLQJDPDLQSURJUDPWKDWMXPSVWRRWKHUSURJUDPV
PRGXOHVDQGUHWXUQVFDQPDNHORQJSURJUDPVHDVLHUWRPDLQWDLQDQGHGLW$OO
ORRSLQJFRPPDQGVLQSURJUDP[ZLOOEHORFDOWRWKLVSURJUDP
&$87,210RWRUUHYHUVHGLUHFWLRQIODJVDUHVHWE\/[/0DQG/0
ORRSLQJFRPPDQGV,ID-0[FRPPDQGLVXVHGLQVLGHRQHRIWKHVHORRSVPRWRU
DQGPRWRUGLUHFWLRQPD\EHUHYHUVHGLQSURJUDP[
0HPRU\XVDJH E\WHV