[ create a new paste ] login | about

Link: http://codepad.org/2cyD82aV    [ raw code | fork ]

Plain Text, pasted on Apr 20:
%

(program to mark a 5x8 inch rectangle)

(XY plane select, inch mode, cancel diameter comp, cancel length offset)
G17 G20 G40 G49

(coordinate system 1, cancel motion, non-incremental motion, feed/minute mode)
G54 G80 G90 G94

G53 G0 Z0            (temporarily cancel offsets, retract quill)
M05 M09              (spindle and coolant off)

(set the tool parameters)
(tool length offset = 1 inches and radius of cutter bit = 0.5 inches)
G20 G10 L1 P1 Z1 R0.5

( in inches )
G20
G0 Z0                (rapid to 0 above the part)
G0 X0 Y0             (rapid to the starting XY)
G01 F1               (setting the feed rate to 1 inch per minute)

( draw the rectangle )

G41 G00 X0 Y0      D1   (place the cutter at the start)
G41 G01 Z-0.001 F1 D1   (plunge and start working)

G41 G01 X0 Y8  F1 D1
G41 G01 X5 Y8  F1 D1
G41 G01 X5 Y0  F1 D1
G41 G01 X0 Y0  F1 D1

( getting back to rest )
G0 Z0                (rapid to 0 above the part)
G0 X0 Y0             (rapid to the starting XY)

M05 M09              (spindle and coolant off)
G53 G0 Z0            (temporarily cancel offsets, retract quill)

G40                  (cancel diameter offset)
G49                  (cancel length offset)
M2                   (end program)

%



Create a new paste based on this one


Comments: