Leonardo Marsaglia wrote: > So i was wondering if i can make the spindle turn and stop in a given angle? > > > It would be could if i can make the spindle turn degree by degree, but i > don't see a gcode to do that. > Some machines need to orient the spindle so that a tool changer can correctly insert a toolholder. That was what was needed on the Mazak. So, it didn't need to resist torques, just to deliver the spindle to that angle. If you want to turn a spindle to a specified angle, then it is a "C" axis, not a spindle. Some machines, especially lathes with live tooling do this. I think it could be done with EMC with a little trickery at the HAL level. You would likely have a pair of custom G-codes that would switch between spindle mode and C axis mode. A standard VFD would not be very good for this, as they get sluggish right near zero speed. A flux-vector VFD (which costs more) is designed for this kind of operation.
The HAL trickery is to make EMC not see spindle movement as C axis motion when the "spindle" is running, and so spindle speed commands would control it in that mode. It would then connect the VFD to the C axis control for C axis positioning mode. Jon ------------------------------------------------------------------------------ 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