% O0001 <---CHANGE THIS!!! (program description) (date: 9/1/08) (filename name: cnc_lab1.txt) (author: instructor) (tool #1: 3/4" regular end mill) (tool 1 offset register: H1) (tool #2: 1/8" ball nose end mill) (tool 2 offset register: H2) (set to inch units) G20 (safe start line) G17 G40 G49 G80 G90 G54 (select tool 1/change tool) T1 M6 (tool length comp./offset reg) G43 H1 (set rpm/spindle start CW) S5000 M3 (area clearance) G0 X-.5 Y.25 Z.2 G1 Z.0 F30. X4. Y.75 X-.5 Y1.25 X4. Y1.75 X-.5 Y2.25 X4. G0 Z.2 (raise head to machine zero in Z) G91 G28 Z0. T2 M6 G43 H2 S3000 M3 G90 (Start here with lettering code) (spindle stop) M5 (go to machine zero in Z, then x,y) G91 G28 Z0. G28 X0. Y0. (end program) M30 %