![VELMEX VXM-3 Скачать руководство пользователя страница 20](http://html1.mh-extra.com/html/velmex/vxm-3/vxm-3_user-manual_3923815020.webp)
20
Looping/Branching
Commands
L0
LM0
LM-0
L
L-
LA
Loop
continually
from
the
beginning
or
Loop-to-marker
of
the
current
program.
The
loop
will
occur
to
the
last
Loop-to-marker
of
the
current
program
if
it
was
set
previously.
This
command
can
be
used
once
in
a
program
as
the
last
command,
it
functions
the
same
as
a
"continuous
run
input".
Memory
usage
=
1 byte
.
L
oop
from
beginning
or
Loop-to-marker
of
the
current
program
[
-1
times
[ WR
65,535).
A
maximum
of
10
nested
loop
commands
can
be
used
per
run.
NOTE
:
When
the
Loop
reaches
its
last
count,
the
non-loop
command
directly
preceding
the
Loop
will
be
ignored.
Memory
usage
=
3 bytes
.
Example:
This
example
sets
a
loop
to
repeat,
any
previous
commands
4000-1
times,
while
repeating
the
directly
preceding
non-loop
command
4000-2
times:
L4000
<cr>
L
oop
from
beginning
or
Loop-to-marker
of
the
current
program
x
-1
times
alternating
direction
of
motor
1
indexes
(
x
=2
to
65,535).
A
maximum
of
10
nested
loop
commands
can
be
used
per
run.
NOTE
:
When
the
Loop
reaches
its
last
count,
the
non-loop
command
directly
preceding
the
Loop
will
be
ignored.
Memory
usage
=
3 bytes
.
Example:
This
example
sets
a
loop
to
repeat,
any
previous
commands
100-1
times
alternating
motor
1
direction
every
repeat,
while
repeating
the
directly
preceding
non-loop
command
100-2
times:
L-100
<cr>
/
RRS$O
ways
from
beginning
or
Loop-to-marker
of
the
current
program
x
-1
times
(
=2
to
65,535).
Maximum
10
nested
loop
commands
per
run
allowed.
Memory
usage
=
3 bytes
.
Examples:
This
example
sets
a
loop
to
repeat
all
previous
commands
4000-1
times:
LA4000
<cr>
Consecutively
nested
loops
are
equal
to
the
product
of
their
loop
values.
For
example,
the
following
loops
together
are
equal
to
10,000,000-1
(50,000
x
200):
`
LA50000,LA200
<cr>
Sets
the
L
oop-to-marker
at
this
point
in
the
current
program.
All
looping
commands
in
the
current
program
that
follow
will
branch
to
here.
Any
loop
commands
in
the
program
prior
to
this
marker
will
branch
to
the
beginning
of
the
program
or
a
previous
marker.
NOTE
:
Multiple
markers
can
be
used
in
a
program,
the
number
is
only
limited
by
the
program
memory
available
(256
bytes
per
program).
Memory
usage
=
1 byte
Resets
the
L
oop-to-marker
to
the
beginning
of
the
current
program.
NOTE
:
Multiple
resets
can
be
used
in
a
program,
the
number
is
only
limited
by
the
program
memory
available
(256
bytes
per
program).
Memory
usage
=
1 byte
x
x
x
x