> Is there a way to alter this program so that I can put a target depth and just > have it repeat at .020" intervals until it reaches the target depth?
http://linuxcnc.org/docs/html/gcode_main.html#cha:O-Codes #<start> = 0 #<increment> = 0.02 #<finish> = -0.5 #1 = #<start> O100 WHILE [#1 GT [#<finish> + #<increment>]] #1 = [#1 - #<increment>] G1 X0.0000 Y0.0000 Z#1 F2 G1 X0.0000 Y1.5000 Z#1 F12 G1 X5.0000 Y1.5000 Z#1 (and so on) O100 ENDWHILE #1 = #<finish> G1 X0.0000 Y0.0000 Z#1 F2 G1 X0.0000 Y1.5000 Z#1 F12 G1 X5.0000 Y1.5000 Z#1 (repeat whole block here, possibly at finish feed rate) -- atp "Torque wrenches are for the obedience of fools and the guidance of wise men" ------------------------------------------------------------------------------ Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! Finally, a world-class log management solution at an even better price-free! Download using promo code Free_Logger_4_Dev2Dev. Offer expires February 28th, so secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsight-sfd2d _______________________________________________ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users