161
G-Code, CAD, and CAM discussions / Re: Example of using the L Repeat and Incrementing Z movement
« on: February 17, 2012, 06:18:57 PM »
I would agree with BR, as to looking into the manual. It is really well written, and goes into detail about things that you probably didn't know possible.
Dunno if this will help you out any, but I commonly use this facing program. It should be good enough for an introductory. Change numbers as desired....
%
O0000 (Facing)
G20
G0 G17 G40 G80 G90
T1 M6
G43 H1
G0 G90 X0.0 Y0.0 Z2.432 S1000 M3 F30
M98 P1 L7(M98=call sub, P=sub# to call, L=number of groundhog days)
M98 P2 (M98=call sub, P=sub# to call)
g90 g0 x0.0 y0.0 Z2.432
M5
M30 (program rewind)
O1 (sub#)
G91 Z-0.035
G90 G01 X0.0 Y0.0 F30
X-11.0 Y0.0
G91 Z0.002
G90 G0 X0.0 Y0.0
G91 Z-0.002
M99 (sub end)
O2 (sub#)
G91 Z-0.002
G90 G01 X0.0 Y0.0 F14.5
X-11.0 Y0.0
G90 G01 Z2.432
G0 X0.0 Y0.0
M99 (sub end)
%
Dunno if this will help you out any, but I commonly use this facing program. It should be good enough for an introductory. Change numbers as desired....
%
O0000 (Facing)
G20
G0 G17 G40 G80 G90
T1 M6
G43 H1
G0 G90 X0.0 Y0.0 Z2.432 S1000 M3 F30
M98 P1 L7(M98=call sub, P=sub# to call, L=number of groundhog days)
M98 P2 (M98=call sub, P=sub# to call)
g90 g0 x0.0 y0.0 Z2.432
M5
M30 (program rewind)
O1 (sub#)
G91 Z-0.035
G90 G01 X0.0 Y0.0 F30
X-11.0 Y0.0
G91 Z0.002
G90 G0 X0.0 Y0.0
G91 Z-0.002
M99 (sub end)
O2 (sub#)
G91 Z-0.002
G90 G01 X0.0 Y0.0 F14.5
X-11.0 Y0.0
G90 G01 Z2.432
G0 X0.0 Y0.0
M99 (sub end)
%