CAD CAM EDM DRO - Yahoo Group Archive

Re: Re: EMC Running My Controller

Posted by Fred Proctor
on 1999-09-01 12:56:49 UTC
Regarding the 5 kilohertz limit on sending pulses to stepper motors via
the parallel port, I am guilty of this figure. I don't know what the
hardware limitation is, but I have also heard (from Matt Shaver?) that
cutting out the capacitor will square up the bits nicely and let you run
faster.

The 5 kilohertz figure comes from:

1. The minimum reliable RT-Linux task period is 100 microseconds. I've
run a test routine at 50 microseconds, and it worked fine, but this is
pretty much the limit.

2. The stepper task outputs either an up pulse or down pulse each cycle,
depending upon the speed of the move. The maximum it can run is up one
cycle, down the next, up the next, down the next, ... so the period of
the full pulse is twice the task period, or 200 microseconds.

3. 200 microseconds/pulse = 5 kilohertz pulse rate.

The rate of the stepper task is entirely determined by the INI file
parameters [TRAJ] MAX_VELOCITY (in units/second) and the greatest of all
the [AXIS_#] INPUT_SCALE values (first one on line is scale in
steps/unit; second one is an offset that's not currently used).
Multiplying the two yields the steps/second required for max feed, and
double this gets the task frequency in cycles/second. If this gets above
5 kilohertz then you're taxing RT-Linux, but try to max it out and see
what happens. Maybe 10 Kilohertz or higher is achievable if you have a
fast CPU, and clip the caps on the parallel port. I'll try this and see
what I can get.

--Fred

Discussion Thread

Dan Mauch 1999-08-14 08:02:29 UTC Re: EMC Running My Controller Dan Falck 1999-08-15 04:55:04 UTC Re: EMC Running My Controller Dan Mauch 1999-08-15 06:38:54 UTC Re: EMC Running My Controller Jon Anderson 1999-08-15 09:00:12 UTC Re: EMC Running My Controller George Potter 1999-08-15 21:50:32 UTC Re: EMC Running My Controller Ray Henry 1999-08-16 05:35:26 UTC Re: EMC Running My Controller Ray Henry 1999-08-16 06:13:23 UTC Re: EMC Running My Controller Dan Mauch 1999-08-16 07:19:08 UTC Re: EMC Running My Controller Tim Goldstein 1999-08-16 08:36:15 UTC Re: EMC Running My Controller Fred Proctor 1999-09-01 12:56:49 UTC Re: Re: EMC Running My Controller