Thanks John and Jim,

 >>>>John wrote...

Is there any reason you aren't just letting EMC generate the pulses for 
both A-axis and spindle mode?  Do you need a hardware step generator 
because software step pulses aren't fast enough for lathe mode?

It would not be difficult to come up with a HAL configuration that uses 
two HAL stepgen modules, one in position mode for A-axis control, and 
one in velocity mode for spindle control.  A limit2 block could be used 
to provide speed ramping in lathe mode.>>>>

Thanks John but whooooah - this is waaaaay ahead of my current programming 
abilities!
The principle sounds just fine but I think it will take a whole lot of reading 
and burning the midnight oil to work out how to do it - so far HAL is a total 
mystery to me.

>>>>>>>>>>>If you can use two separate EMC configurations for lathe mode and 
>>>>>>>>>>>A-axis 
mode (restart EMC when switching modes), it gets even simpler.  Each 
config would load exactly the HAL blocks it needs, with no muxes.>>>>>>>>>>>>>>>

There is no reason I couldn't run different EMC2 configs - the only thing that 
has prevented me from doing so is that I thought I would be..
a) unable to run the spindle freely without being confined by limits - I would 
hate the spindle to stop halfway through a job... and
b) be constrained by G-code and have to work out each time how many turns the 
spindle would have to make to do a cut at a certain feedrate..

>From what you say it seems that there may be a way to separate the spindle 
>rotation from the G-code. It would be ideal to have the spindle run through 
>EMC as I expect I could then just leave it to its own devices and know that it 
>would switch itself off at the end of the job. Presumably it would also be 
>possible to change spindle speed part way through a job - or is this going too 
>far??

I guess I'd better start reading - but if you would like to offer any deeper 
clues I'm all ears ( or rather, I've just polished my specs....)

-- 
Best wishes,

Ian
____________
Ian W. Wright
Sheffield  UK

"The difference between theory and practice is much smaller in theory than in 
practice..."


-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
Emc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to