![VELMEX VXM-3 Скачать руководство пользователя страница 16](http://html1.mh-extra.com/html/velmex/vxm-3/vxm-3_user-manual_3923815016.webp)
Command Reference (Common Commands)
16
This
section
gives
detailed
explanations
of
the
most
common
VXM
commands.
For
the
advanced
user,
refer
to
the
Appendices
for
more
information.
Most
commands
with
variables
(except
set
commands)
use
the
VXM's
program
memory
space.
The
required
memory
needed
per
command
is
specified
in
this
section.
The
VXM
has
256
bytes
of
program
memory
for
each
program.
There
are
5
(0,1,2,3,4)
programs.
A
program
can
be
cleared
by
a
"
C
"
and
selected
by
the
"
PMx
"
command.
The
default
program
when
the
VXM
is
powered
up
is
#0.
Using
different
programs
is
only
relevant
to
users
who
will
be
operating
the
VXM
in
a
stand-alone
mode
(P8.)
Using
the
VXM
in
a
RS-232
interactive
mode
(P9.)
would
only
require
that
the
default
program
be
cleared
after
the
R
command.
An
absolute
Index
is,
a
move
relative
to
absolute
zero
position,
a
distance
and
direction
from
the
present
position
calculated
by
the
VXM
based
on
absolute
zero
position.
Absolute
zero
is
established
when
the
VXM
is
powered-up,
by
use
of
the
"
N
",
or
the
"
command.
Sending Commands to the VXM:
The
standard
RS-232
communication
settings
on
the
VXM
are
9600
baud,
8
data,
no
parity,
and
1
stop
bit.
When
sending
commands
that
require
a
value,
the
commands
must
end
with
a
carriage
return
(Enter
key
or
Return
on
most
keyboards),
comma,
or
a
period.
Set
steps
to
incremental
I
ndex
(move)
motor
CW
(positive,
Slider/Carriage
will
move
away
from
motor
end
,
Rotary
Table
will
rotate
CCW),
=motor#
(1,2,3,4),
x
=1
to
16,777,215.
.
The
"<cr>"
is
a
carriage
return
character
(
<Enter>
key
on
most
keyboards).
Command
characters
are
in
LARGE BOLD
.
<cr>
<cr>
This
example
sets
motor
1
to
index
1200
steps
CW:
This
example
sets
motor
2
to
index
9200
steps
CW:
This
example
sets
motor
3
to
index
10200
steps
CW:
<cr>
This
example
sets
motor
1
to
index
120
steps
CCW:
<cr>
<cr>
This
example
sets
motor
2
to
index
20
steps
CCW:
This
example
sets
motor
4
to
index
1
step
CCW:
<cr>
"
IA
m
M-0
Memory
usage
=
Examples:
4 bytes
NOTE:
I1M1200
I2M9200
I3M10200
Set
steps
to
incremental
I
ndex
(move)
motor
CCW
(negative,
UniSlide
Slider
will
move
toward
motor
end
,
UniSlide
Rotary
Table
will
rotate
CW),
m
=
motor#
(1,2,3,4),
x
=1
to
16,777,215.
Memory
usage
=
4 bytes
.
Examples:
1M-120
I2M-20
I4M-1
IA1M2200
m
The Difference Between Incremental and
Absolute Indexes:
An
incremental
Index
is,
a
move
relative
to
the
present
position,
a
distance
and
direction
specified
by
the
Index
from
the
present
position.
Incremental:
I1M1200
start
end
Absolute:
start
end
Absolute
Position
0
1000
2200
Absolute
Position
0
1000
2200
Motor
Commands
I
m
M
[
I
m
M-
[