MM4006
Feature Descriptions Tutorial
6.4
Executing Sub-routines in a Program: EX Command
The MM4006 is capable of executing complex programs containing sub-rou-
tines.
The sub-routines are blocks of commands that do not contain the EX com-
mand. They are called by the main program.
Example
* * * * * * * * * Program 1 (Main Program) *
1EP I E n t e r program 1.
1PA10, 2PA10 I T w o -axis movement.
2EX I Execute program 2.
3EX I Execute program 3.
4EX I Execute program 4.
OR I O r i g i n search on all axes.
QP I Q u i t main program.
* * * * * * * * * * * * * * * * Program 2 . . . . . * * * * *
2EP I E n t e r program 2.
SB I S e t bits.
lAS"This " I D e f i n e string # 1.
2AS"is " i D e f i n e string # 2.
1CS$S2 I Concatenate string # 1 and string # 2.
DS$S1"a string" I D i s p l a y on screen.
WT3000 I W a i t for 3 seconds.
QP I Q u i t program 2.
* * * * * * . . . . * * * * Program 3 * . * * * * * * . * * * * * * *
3EP I E n t e r program 3.
3AS"a value: " I D e f i n e string # 3.
101YS99.99 i D e f i n e value # 101.
3CS$Y101 I Concatenate string # 3 and value # 101.
DS$S1$S3 " !" I D i s p l a y on screen.
WT3000 I W a i t for 3 seconds.
QP I Q u i t program 3.
* * * * * * * * * * * * * * * * Program 4 * * * * * * * * * * * * * * * *
4EP I E n t e r program 4.
1PR-20,WS I A x i s 1 movement.
2PR-20,WS I A x i s 2 movement.
CB I C l e a r bits.
WT1000 I W a i t for 1 second.
QP I Q u i t program 4.
THIS IS A STRING I D i s p l a y on controller screen.
THIS IS A VALUE: 99.99 ! I D i s p l a y on controller screen.
C%
M e W p O r t .
6
.
1
1
EDH0181En1020 — 03/03
Содержание MM4006
Страница 9: ...F D110181En1020 03 03 b J e w p o r t...
Страница 10: ...Section 1 Introduction 4 4 G G 4 4 4 4 M u d Com 4k 4 66i1W406 i i r i A 0 8 y 0 9 0 0 i 0 0 40 0 4 cv Newport...
Страница 11: ...MM4006 8 Axis Motion Controller Driver evvport...
Страница 41: ...MM4006 Introduction FPI 111181Eli11120 0 1 03 1 3O tNevvport...
Страница 42: ...Section 2 Local Mode C Newport...
Страница 43: ...MM4006 8 Axis Motion Controller Driver C N e w p o r t...
Страница 96: ...Section 3 Remote Mode C klevvport...
Страница 97: ...Newport...
Страница 310: ...Section 4 Motion Control Tutorial Ilevvport...
Страница 311: ...MM4006 8 Axis Motion Controller Driver C EDI10181En 1020 03 03 2 N e V V p O r t...
Страница 313: ...MM4006 8 Axis Motion Controller Driver cv ED110181E01020 03 03 4 2 M e v v p o r t...
Страница 334: ...Section 5 Trajectory Functions Tutorial Newport...
Страница 335: ...MM4006 8 Axis Motion Controller Driver C Newport...
Страница 337: ...MM4006 8 Axis Motion Controller Driver EDH0181En1020 03 03 5 2 N e w p o r t...
Страница 346: ...Section 6 Feature Descriptions Tutorial Newport...
Страница 347: ...MM4006 8 Axis Motion Controller Driver C Nevvport...
Страница 349: ...MM4006 8 Axis Motion Controller Driver ED11018lEn I 020 03 03 6 2 N e v v p O r t...
Страница 359: ...MM4006 F e a t u r e Descriptions Tutorial cv EDI10181En1020 03 03 6 12 N e w p o r t...
Страница 360: ...Section 7 Servo Tuning rano at 1 2 2 p EOF 110 1 0 0 0 0 0 ill fpL4 cv Newport...
Страница 361: ...MM4006 8 Axis Motion Controller Driver C Nevvport...
Страница 363: ...MM4006 8 Axis Motion Controller Driver EDH0181En 1020 03 03 7 2...
Страница 368: ...Section 8 Appendices INevvport...
Страница 369: ...MM4006 8 Axis Motion Controller Driver CkJ Newport...
Страница 371: ...MM4006 8 Axis Motion Controller Driver EDI10181EnI020 03 03 8 2 N e v v p o r t...
Страница 410: ...A7 h7s z c 7...