CAD CAM EDM DRO - Yahoo Group Archive

Re: [CAD_CAM_EDM_DRO] delay time

Posted by ccs@m...
on 2001-11-13 07:44:13 UTC
> I have a small problem. I am sending signals to parallel port
> 1010101 and step motor is turning due to signals. I write a program
> and the motor is turning normaly. But if I use the computer of my
> lecturer in university, motor is turning app. 10 times speed. I thing
> frequency of pulses are in my computer lower than computer of the
> lecturer. It mieans "delay(1000)" by my PC = "delay(10000)" by other
> PC. How can I regulate it? Thanks

If you use a simple loop of program commands to generate the delay
between pulses, then the pulse rate will depend on the clock speed
of the computer. You can simply change the amount of the delay loop
to get crude speed control.

For example, on a slow computer you might have the program count
to 1000 between pulses. On a faster computer, change the program
to count to 8000. You of course will need to find numbers that
work for your computers.

Timing loops are not very reliable though, particularly on computers
running modern operating systems like windows. For this reason
most stepper motor programs run under DOS or use special hardware
boards to generate the pulses. Under DOS you can reprogram the
timer interrupt to run much faster than normal and use this to
time your pulses.

Chris Stratton

-------------------------------------------------
Christopher C. Stratton
Engineer, Instrument Maker, and Horn Player
ccs@... 617 628 1062
http://web.mit.edu/~stratton/www/brassbuild.html

Discussion Thread

sdiken@r... 2001-11-13 00:44:02 UTC delay time Sven Peter 2001-11-13 06:16:10 UTC Re: [CAD_CAM_EDM_DRO] delay time ccs@m... 2001-11-13 07:44:13 UTC Re: [CAD_CAM_EDM_DRO] delay time Alan Marconett KM6VV 2001-11-13 11:11:45 UTC Re: [CAD_CAM_EDM_DRO] delay time ballendo@y... 2001-11-13 16:13:59 UTC Re: delay time