Stepper Drive control
bennettdan
Posts: 614
Hello,
··· I have a Stepper drive that accepts 200 pulses to rotate a motor 1 revolution. What I want to do is send it say 2000 pulses to rotate it 10 revolutions will this work or is their a better way? Also if I want to vary the speed then I can just change the Pause statement right?
FOR pulses = 1 TO 2000
PULSOUT 14,100
PAUSE 20
NEXT
··· I have a Stepper drive that accepts 200 pulses to rotate a motor 1 revolution. What I want to do is send it say 2000 pulses to rotate it 10 revolutions will this work or is their a better way? Also if I want to vary the speed then I can just change the Pause statement right?
FOR pulses = 1 TO 2000
PULSOUT 14,100
PAUSE 20
NEXT
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- Stephen
The simplest way is the way that you are doing, but you can use variables for you instruction, say:
FOR Pulses = 1 to numdesired
PULSOUT Pin , length
PAUSE period
NEXT
Note that what I called "length" is probably not necessary because you are using an stepper controller drive, witch will probably ingore this information, it may have a maximum and an minimum pulse width, for faster control use the minimum value.
Hope to Help
Amaral
Post Edited (bennettdan) : 5/15/2007 3:40:26 AM GMT