You are on page 1of 6

CNC Programming

Introduction

Types • Programming for turning center • Programming for machining center .

Parts of programming The common word addresses are: N-G-X-Y-Z-A-B-C-F-S-T–M N = sequence number of instructions G = preparatory function XYZABC = co-ordinate and angular data F = feed S = spindle speed T = tool code M = miscellaneous function .

G Code • • • • • • • • • • • • G00 G01 G02 G03 G04 G20 G21 G28 G90 G91 G94 G95 Positioning (Rapid feed) Linear Interpolation Circular Interpolation/helical CW Circular Interpolation/helical CCW Dwell Inch input Metric Input Return to home position (zero) Absolute command Incremental command Feed rate. mode . mm/rev. mm/min mode Feed rate.

M codes • • • • • • • • • • • M00 M01 M02 M03 M04 M05 M06 M07 M08 M09 M30 Program stop Optional stop End of program Spindle CW Spindle CCW Spindle stop Tool change Tap Oil on Coolant on Coolant/Tap Oil of End of program and rewind .

Manual Part programming • Simple turning ex. Using G01 50 35 50 30 .