LA-
LM-2
LM-3
J
JM
x
x
x
oop
A
lways
from
beginning
or
Loop-to-marker
of
the
current
program
x
-1
times
alternating
direction
of
motor
1
indexes
(
=2
to
65,535).
A
maximum
of
10
nested
loop
commands
can
be
used
per
run.
Memory
usage
=
3 bytes
.
Examples:
This
example
sets
a
loop
to
repeat
100-1
times
all
previous
commands
alternating
motor
1
direction
every
repeat:
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>
L
oop
once
from
beginning
or
Loop-to-marker
of
the
current
program,
reversing
index
direction
of
motor
1
and
motor
2.
See
"Example
Programs"
section
for
use
of
this
command.
Memory
usage
=
1 byte
.
J
ump
to
the
beginning
of
program
number
,
x x
=
0
to
4.
Program
number
x
will
temporarily
be
the
current
program,
all
commands
will
be
executed
starting
from
the
first
one
that
was
previously
entered
into
program
x
.
If
there
is
not
any
commands
in
program
x
,
or
after
executing
the
last
command,
the
program
will
end,
and
the
VXM
will
send
the
ready
prompt
to
the
host
("^").
The
current
program
number
will
still
be
the
program
that
was
originally
selected
with
a
"
PMx
"
or
"
PM-x
"
command.
Linking
multiple
programs
(maximum
of
5)
together
is
possible
by
using
a
jump
command,
as
the
last
command,
to
make
a
jump
to
a
different
program.
All
looping
commands
in
program
x
will
be
local
to
this
program
only.
Memory
usage
=
2 bytes
Example:
This
example
will
jump
to
program
#1
:
J1
<cr>
Example:
This
example
will
jump
to
program
#3
and
return:
<cr>
L
L
oop
once
from
the
beginning
or
Loop-to-marker
of
the
current
program,
reversing
index
direction
of
motor
2.
See
"Example
Programs"
section
for
use
of
this
command.
Memory
usage
=
1 byte
JM3
x
21
-XPSWRWKHEHJLQQLQJRISURJUDPQXPEHU[DQGFRPHEDFNIRU
0
RUHDIWHUSURJUDP[
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,21
0RWRUUHYHUVHGLUHFWLRQIODJVDUHVHWE\
/[
/0
DQG
/0
ORRSLQJFRPPDQGV,ID
-0
[
FRPPDQGLVXVHGLQVLGHRQHRIWKHVHORRSVPRWRU
DQGPRWRUGLUHFWLRQPD\EHUHYHUVHGLQSURJUDP
[
0HPRU\XVDJH
E\WHV