Hi, Could someone please give me a little tutorial on using do/while loops in g-code please or, at least, point to me to a tutorial on the web while I have obviously missed in several hours of trawling the 'net. I'm trying to write a simple gearcutting program where I can mount the blank on a rotary axis and traverse the cutter back and forth on the X-axis a given number of times. I'm wanting to make the script 'universal' so that I can just insert numbers into variables for number of teeth, length of X travel, depth of each cut, and total cut depth but I seem to be getting my brain in a twist trying to figure out how to write the loops. I know that, if I was bright, I should be able to figure this out easily and maybe even write an interactive GUI but, today at least, I'm not and I need to get this part made ASAP!! ( a house full of grandchildren doesn't help either :-( )
Thanks, Ian ---------------------- Ian W. Wright Sheffield UK ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Emc-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-users
