Leslie Newell wrote:
> I am working on adding lathe diameter mode. I need to have an option for 
> read_x() in interp_read.cc to either read the x value (radius mode) or 
> half the X value (diameter mode).
>
> What is the best way to pass that flag to read_x()? As far as I can see, 
> the read_XX functions only have access to the parameters and not to the 
> setup_struct. Would it be acceptable to use a parameter to switch 
> radius/diameter modes? If not, what would be the cleanest way of doing this?
>   
Somehow it HAS to be a switchable option from the G-code.  I can see 
where diameter programming would be most convenient, but then someday 
you'd do something fancy on a CAD program as a profile of the surface, 
and that would come out in radius mode.

Jon

------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
Emc-developers mailing list
Emc-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-developers

Reply via email to