On 02/22/2014 11:16 PM, Stuart Stevenson wrote: > What is the L supposed to do? > The way I read the program the tool would: > > G0 X1 Y2 Z3 - move (in G90) to X1 Y2 Z3 or (in G91) move 1 inch X > , 2 inches Y and 3 inches Z
See: http://www.linuxcnc.org/docs/html/gcode/gcode.html#sec:G81-Drilling-Cycle Example 2 - Relative Position G81 > G91 G98 G81 X4 Y5 Z-0.6 R1.8 L3 - in the drill cycle the tool would rapid > 1.8 inches positive Z , move 4 inches positive X and 5 inches positive Y > then drill .06 negative Z then rapid 1.2 inches negative Z to the starting > point is L supposed to repeat the complete cycle 3 times? Yes, the L is a repeat of 3 times. We are at XYZ=1,2,3. What is supposed to happen according to the documentation is that the sequence "G91 G98 G81 X4 Y5 Z-0.6 R1.8 L3" translates into: G91 G0 Z1.8 ; end at 1, 2, 4.8 initial rapid G0 X4 Y5 ; end at 5, 7, 4.8 first cycle G1 Z-0.6 ; end at 5, 7, 4.2 G0 Z0.6 ; end at 5, 7, 4.8 G0 X4 Y5 ; end at 9, 12, 4.8 second cycle G1 Z-0.6 ; end at 9, 12, 4.2 G0 Z0.6 ; end at 9, 12, 4.8 G0 X4 Y5 ; end at 13, 17, 4.8 third cycle G1 Z-0.6 ; end at 13, 17, 4.2 G0 Z0.6 ; end at 13, 17, 4.8 The attached image shows what LinuxCNC actually does (same for version 2.5): G91 G0 Z1.8 ; end at 1, 2, 4.8 initial rapid G0 X4 Y5 Z-1.8 ; end at 5, 7, 3 first cycle G1 Z1.2 ; end at 5, 7, 4.2 G0 Z0.6 ; end at 5, 7, 4.8 G0 X4 Y5 Z-1.8 ; end at 9, 12, 3 second cycle G1 Z1.2 ; end at 9, 12, 4.2 G0 Z0.6 ; end at 9, 12, 4.8 G0 X4 Y5 Z-1.8 ; end at 13, 17, 3 third cycle G1 Z1.2 ; end at 13, 17, 4.2 G0 Z0.6 ; end at 13, 17, 4.8 I can imaging that the G98 (return to "old_z") would initiate the return to Z-level at 3, but changing the G98 to a G99 does not change anything at all. The sequence is still not conforming to the documentation. -- Greetings Bertho (disclaimers are disclaimed)
<<attachment: g81-relative.png>>
------------------------------------------------------------------------------ Managing the Performance of Cloud-Based Applications Take advantage of what the Cloud has to offer - Avoid Common Pitfalls. Read the Whitepaper. http://pubads.g.doubleclick.net/gampad/clk?id=121054471&iu=/4140/ostg.clktrk
_______________________________________________ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users