Hi Alex, So for instance I could provide a GET_EXTERNAL_LATHE_DIA_MODE() function. As far as I can see, this would have to be implemented in three places: rs274ngc/gcodemodule.cc (backplot?) task/emccanon.cc (emc) sai/saicanon.cc (what is this used for?)
Presumably in the first two cases I would read a value from the ini file. I suppose the [RS274NGC] section would be the place to put it. This isn't something you would want to change on the fly. Thanks, Les Alex Joni wrote: > Hi Les, > > probably a parameter, which gets updated in interp::synch > There are a couple of GET_EXTERNAL_FOO functions defined in canon, that get > called from the interpreter. > So the sanest path imo is read the variable from task, then use a canon > function to set a canon variable, and have another canon function that gets > called from interp to query that. > I think you can even call the GET_EXTERNAL_* function from read_x(), there > are a couple of functions where it's done just like that. > > Regards, > Alex > > ----- Original Message ----- > From: "Leslie Newell" <e...@sheetcam.com> > To: "EMC developers" <emc-developers@lists.sourceforge.net> > Sent: Monday, December 15, 2008 9:42 PM > Subject: [Emc-developers] Adding lathe diameter mode > > > >> 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? >> >> Thanks, >> Les >> >> ------------------------------------------------------------------------------ >> 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 >> > > > -------------------------------------------------------------------------------- > > > > No virus found in this incoming message. > Checked by AVG - http://www.avg.com > Version: 8.0.176 / Virus Database: 270.9.18/1849 - Release Date: 15.12.2008 > 09:01 > > > ------------------------------------------------------------------------------ > 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 > ------------------------------------------------------------------------------ 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