Stephen Wille Padnos wrote: > Sebastian Kuzminsky wrote: > >> Gerhard Pircher wrote: >> >> >>>> If your spindle is not reversible you could connect the step line to >>>> either Up or Down, and run it that way. >>>> >>>> >>> Well, it is reversible. Maybe I should build a simple step/dir to >>> quadrature converter. That shouldn't be too hard. >>> >>> Thanks for enlightening me! >>> >>> >> It might be simple to use the Dir line from your spindle as the selector >> to a demux, and send the Step signal to either Up or Down on the hm2 >> encoder input. >> >> > That's a good idea, with a couple of caveats: > > 1) There is no demux component ;) > 2) When someone writes one, they will need to be careful about what > happens to the unused output - there shouldn't be any unexpected > transitions on the "other" output > 3) There could be several counts in the wrong direction since counting > is done in a MHz-speed "thread" in the FPGA and the demux would only be > checked at 1Khz to 10kHz rates. This wouldn't be bad in practice since > the spindle would have to slow down before reversing, but it could also > be a problem if the spindle is more or less still and the dir line > changes out of sunc with the step pulses.
The "component" i'm thinking about would have to be written in eagle, since hm2's input pins cannot be written from HAL... ;-) -- Sebastian Kuzminsky ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users