[ create a new paste ] login | about

Link: http://codepad.org/6lT3oiHY    [ raw code | fork ]

Plain Text, pasted on Apr 18:
%

(program skeleton for use as basis for NC programs)
N0010 G17 G20 G40 G49 (XY plane select, inch mode, cancel diameter comp, cancel length offset)
N0020 G54 G80 G90 G94 (coordinate system 1, cancel motion, non-incremental motion, feed/minute mode)
N0030 G53 G0 Z-0.5 (temporarily cancel offsets, retract quill)
N0040 X11.5 Y5 (move X and Y to the tool change position, change as required)
N0050 M05 M09 (spindle and coolant off)

(display a message for the operator)
N0060 (MSG,working)

( in mm )
G21
X210 Y90 (move X and Y to workpiece 0)
Z-156 (move Z to workpiece 0)

( setting the feed rate to 50 mm per minute )
G01 F50
G92 X00 Y00 Z00
Z-0.75
X10 Y00
X10 Y10
X00 Y10
X00 Y20
X10 Y20
Z0
X0 Y0
G92.2

Z-120
( in inches )
G20

N0120 M05 M09 (spindle and coolant off)
N0030 G53 G0 Z-0.5 (temporarily cancel offsets, retract quill)
N0040 X11.5 Y5 (move X and Y to home)

N0180 G49 (cancel length offset)
N0150 M2 (end program)

%



Create a new paste based on this one


Comments: