MM4006
8
-Axis Motion Controller/Driver
D M o t i o n Program Examples
When learning a new computer language, there is no substitute for actually
writing some real programs. The motion controller's command set is a spe-
cialized language that needs to be mastered in order to be able to create
complex applications. "Fo help you familiarize yourself with MM4006 pro-
gramming structure and language, this appendix contains a few examples
that you can read and copy.
Example 1
The first example is a simple two-axes program that will generate the trian-
gle shown in Fig. 1).1.
0.0
10.5
,10 0
Start
Axis #1: 10 mm
Fig. D.
— Triangle Pattern.
Axis #2:
5 mm
Make sure there is no other program in memory with the same name (num-
ber). If you are operating the controller from a remote computer, start by
issuing the XX command for that program number. Then, enter the pro-
gramming mode by using the EP command. If you enter the program from
the front panel, ignore these two and the QP commands.
1XX
E
r
a
s
e
program #1, i f it exists.
lEP
E
n
t
e
r
programming mode and store all entries as
program #1.
1VA4
S
e
t
velocity of axis #1 to 4 mm/sec.
1PA10,1WS
M
o
v
e
axis #1 to absolute position 10 mm; wait for
axis #1 to complete motion.
2VA4
S
e
t
velocity of axis #2 to 4 mm/sec.
2PA5,2WS
M
o
v
e
axis #2 to absolute position 5 mm; wait for
axis #2 to complete motion.
2VA2
C
h
a
n
g
e
velocity of axis #2 to 2 mm/sec.
1 PA0,2PAO
M
o
v
e
axis #1 to absolute position 0 mm and axis #2
to absolute position 0 mm.
1QP
E
n
d
of program; quit programming mode.
(%)
N e w p o r t .
8
.
2
1
ED110181En1020 — 03/03
Summary of Contents for MM4006
Page 9: ...F D110181En1020 03 03 b J e w p o r t...
Page 11: ...MM4006 8 Axis Motion Controller Driver evvport...
Page 41: ...MM4006 Introduction FPI 111181Eli11120 0 1 03 1 3O tNevvport...
Page 42: ...Section 2 Local Mode C Newport...
Page 43: ...MM4006 8 Axis Motion Controller Driver C N e w p o r t...
Page 96: ...Section 3 Remote Mode C klevvport...
Page 97: ...Newport...
Page 310: ...Section 4 Motion Control Tutorial Ilevvport...
Page 311: ...MM4006 8 Axis Motion Controller Driver C EDI10181En 1020 03 03 2 N e V V p O r t...
Page 313: ...MM4006 8 Axis Motion Controller Driver cv ED110181E01020 03 03 4 2 M e v v p o r t...
Page 334: ...Section 5 Trajectory Functions Tutorial Newport...
Page 335: ...MM4006 8 Axis Motion Controller Driver C Newport...
Page 337: ...MM4006 8 Axis Motion Controller Driver EDH0181En1020 03 03 5 2 N e w p o r t...
Page 346: ...Section 6 Feature Descriptions Tutorial Newport...
Page 347: ...MM4006 8 Axis Motion Controller Driver C Nevvport...
Page 349: ...MM4006 8 Axis Motion Controller Driver ED11018lEn I 020 03 03 6 2 N e v v p O r t...
Page 359: ...MM4006 F e a t u r e Descriptions Tutorial cv EDI10181En1020 03 03 6 12 N e w p o r t...
Page 360: ...Section 7 Servo Tuning rano at 1 2 2 p EOF 110 1 0 0 0 0 0 ill fpL4 cv Newport...
Page 361: ...MM4006 8 Axis Motion Controller Driver C Nevvport...
Page 363: ...MM4006 8 Axis Motion Controller Driver EDH0181En 1020 03 03 7 2...
Page 368: ...Section 8 Appendices INevvport...
Page 369: ...MM4006 8 Axis Motion Controller Driver CkJ Newport...
Page 371: ...MM4006 8 Axis Motion Controller Driver EDI10181EnI020 03 03 8 2 N e v v p o r t...
Page 410: ...A7 h7s z c 7...