CNC Programming for Mill Example CNC program drills

  • Slides: 6
Download presentation
CNC Programming for Mill • Example CNC program – drills four holes • Haas

CNC Programming for Mill • Example CNC program – drills four holes • Haas manual at: k: classengr480haasusermanual. pdf or at http: //engr. walla. edu/engr 480/docs/Haas

G-Codes for Milling G 00 Rapid positioning G 01 Linear interpolation (feeding) G 02

G-Codes for Milling G 00 Rapid positioning G 01 Linear interpolation (feeding) G 02 CW Circular interpolation G 03 CCW Circular interpolation G 04 Dwell G 20 Inch system G 21 Metric system G 28 Return to reference point G 43 Tool Length Compensation

G-Codes for Milling G 54 -G 59 Select work coord system G 65 Macro

G-Codes for Milling G 54 -G 59 Select work coord system G 65 Macro call G 70 Bolt circle cycle G 81 Drill canned cycle G 83 Peck drill canned cycle G 84 Tapping canned cycle G 90 Absolute coordinates G 91 Incremental coordinates G 98 Initial point return

M-Codes for Milling M 00 Program Stop M 01 Opt. Program Stop (panel controlled)

M-Codes for Milling M 00 Program Stop M 01 Opt. Program Stop (panel controlled) M 03 Start spindle (normal rotation) M 04 Start spindle (reverse rotation) M 05 Stop spindle M 06 Tool change M 08 Start coolant M 09 Stop coolant M 30 Program end

% Example Program O 01001 (DRILL 1/4 IN HOLES) (DRILL EXAMPLE - 2013 -04

% Example Program O 01001 (DRILL 1/4 IN HOLES) (DRILL EXAMPLE - 2013 -04 -05) (OP 1 - TOP SIDE) T 9 M 6 (STOCK- 2 IN X 1/4 IN) G 43 H 9 (G 54 ZERO- LEFT FRONT TOP) S 2000 M 3 M 8 G 54 G 0 X 0. 50 Y 0. 50 Z 0. 1 G 00 G 40 G 90 G 17 G 20 G 83 Z-0. 35 Q 0. 1 R 0. 1 F 10. 0 (SPOT DRILL HOLES) X 0. 50 Y 1. 00 T 7 M 6 X 1. 00 Y 1. 00 G 43 H 7 X 1. 00 Y 0. 50 S 2000 M 3 G 80 G 00 Z 0. 1 M 8 G 0 X 0. 50 Y 0. 50 Z 0. 1 G 00 Z 6. 0 G 81 Z-0. 1 R 0. 1 F 10. ; (CANNED DRILL CYCLE) X 0. 50 Y 1. 00 M 9 X 1. 00 Y 1. 00 M 5 X 1. 00 Y 0. 50 G 80 G 00 Z 0. 1; (CANCEL CANNED CYCLE) M 30 % M 9 M 5

Loading CNC Program • • Copy to K: classengrcnc as haascode. txt Press List

Loading CNC Program • • Copy to K: classengrcnc as haascode. txt Press List Prog Type program number (O 01234) Press RECV RS 232