![IMS MDrive 34 Plus Series Скачать руководство пользователя страница 10](http://html.mh-extra.com/html/ims/mdrive-34-plus-series/mdrive-34-plus-series_hardware-reference-manual_2049848010.webp)
1-4
MDrive34Plus Motion Control Hardware Revision R080106
Motion Control Example Using Program Mode
1. Click on drop-down menu View > New Edit Window to open the Program Edit Window.
2. Type “XYZ Test” into the “Open a New file for editing” dialog box, and click “OK”.
3. Click anywhere within the Program Edit Window, and type (followed by ENTER):
VA LP=0
‘user variable name LP = start count 0
A=100000
‘set acceleration to 100000 steps/sec2
D=100000
‘set deceleration to 100000 steps/sec2
PG 1
‘enter program mode, start program at address 1
LB AA
‘label program AA
MR 250000
‘move motor 250000 steps in the positive direction
H
‘hold program execution until motion completes
H 1000
‘hold 1000 milliseconds
MR –250000
‘move motor 250000 steps in the negative direction
H
‘hold program execution until motion completes
H 1000
‘hold 1000 milliseconds
IC LP
‘increment user variable LP
PR ” LP=”,LP;
‘print axis position, 4 characters used, the
‘terminal will display LP=1 LP=2 LP=3
BR AA, LP<3 ‘branch to process label AA, if user variable LP< 3
E
‘end program execution
PG
‘exit program, return to immediate mode
4. Type FD in the Terminal Window and press ENTER to clear the MDrive buffer to factory
defaults before downloading any program.
5. Click on drop-down menu Transfer > Download to transfer the program from the Program
Edit Window to the Terminal Window. (Under “Source Type” choose “Edit Window”.)
6. Type EX 1 in the Terminal Window and press ENTER to execute the program.
(EX = Execute at address 1.)
7. The MDrivePlus Motion Control will turn 250,000 microsteps in a clockwise direction,
accelerating at 100,000 microsteps per sec
2
, then decelerating at 100,000 microsteps per sec
2
,
pausing for 1000 milliseconds, then reversing the sequence in a counterclockwise direction,
repeating the motion cycle 3 times until the program ends.
Programming Notes
The example above demonstrates basic commands that verify that your MDrivePlus Motion Control is com-
municating with your PC. More complex commands and movement may require that your I/O and/or Analog
Input be interfaced and configured. Refer to MDrivePlus Motions Control Software Reference for details.
For more information on MDrivePlus Motion Control Programming and Command Control Sets, refer to the
Software Section of this manual.
NOTE
:
Entering
MDrivePlus
commands into
the Program Edit
Window, to be edited and
saved, is called “Program
Mode”.
NOTE
:
The program
can be stopped by
pressing the Escape
Button or by pressing Ctrl+C.
Figure GS.4: Download the Program
Содержание MDrive 34 Plus Series
Страница 12: ...1 6 MDrive34Plus Motion Control Hardware Revision R080106 Page Intentionally Left Blank ...
Страница 24: ...1 18 MDrive34Plus Motion Control Hardware Revision R080106 Page Intentionally Left Blank ...
Страница 26: ...2 2 MDrive34Plus Motion Control Hardware Revision R080106 ...
Страница 50: ...2 26 MDrive34Plus Motion Control Hardware Revision R080106 Page Intentionally Left Blank ...
Страница 52: ...A 2 MDrive34Plus Motion Control Hardware Manual Revision R080106 Page Intentionally Left Blank ...
Страница 66: ...A 16 MDrive34Plus Motion Control Hardware Manual Revision R080106 Page Intentionally Left Blank ...
Страница 82: ...A 32 MDrive34Plus Motion Control Hardware Manual Revision R080106 Page Intentionally Left Blank ...