EasyManua.ls Logo

Dover DMM-0200 - Sample Programs

Dover DMM-0200
112 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Page 83 of 112
DMM-0200 Product User Guide
159 Swanson Road
Boxborough, MA 01719
Tel: 508-475-3400
Email: sales@dovermotion.com
Sample Programs
Standalone Example Program 1 Single Thread
Task: Set the high speed and low speed and move the motor to 1000 and back to 0.
HSPD=20000 ;* Set the high speed to 20000 pulses/sec
LSPD=1000 ;* Set the low speed to 1000 pulses/sec
ACC=300 ;* Set the acceleration to 300 msec
EO=1 ;* Enable the motor power
X1000 ;*Moveto1000
WAITX ;*Wait forX-axis move to complete
X0 ;* Move to zero
WAITX ;*Wait forX-axis move to complete
END ;*Endoftheprogram
Standalone Example Program 2 Single Thread
Task: Move the motor back and forth indefinitely between position 1000 and 0.
HSPD=20000 ;* Set the high speed to 20000 pulses/sec
LSPD=1000 ;* Set the low speed to 1000 pulses/sec
ACC=300 ;* Set the acceleration to 300 msec
EO=1 ;* Enable the motor power
WHILE 1=1 ;*Foreverloop
X0 ;*Movetozero
WAITX ;*Wait forX-axis move to complete
X1000 ;*Moveto1000
WAITX ;*Wait forX-axis move to complete
ENDWHILE ;* Go back to WHILE statement
END
Standalone Example Program 3 Single Thread
Task: Move the motor back and forth 10 times between position 1000 and 0.
HSPD=20000 ;* Set the high speed to 20000 pulses/sec
LSPD=1000 ;* Set the low speed to 1000 pulses/sec
ACC=300 ;* Set the acceleration to 300 msec
EO=1 ;* Enable the motor power
V1=0 ;* Set variable 1to value 0
WHILE V1<10 ;* Loop while variable 1 is less than 10
X0 ;*Movetozero
WAITX ;*Wait forX-axis move to complete
X1000 ;*Moveto1000
WAITX ;*Wait forX-axis move to complete
V1=V1+1 ;* Increment variable 1
ENDWHILE ;* Go back to WHILE statement

Table of Contents

Related product manuals