You are on page 1of 9

MILLING

G00 G01 G02 G03 G04 G07 G09 G10 G11 G12 G13 G17 G18 G19 G20 G21 G22 G23 . . Positioning in Rapid Linear Interpolation Circular Interpolation (CW) Circular Interpolation (CCW) Dwell Imaginary axis designation Exact stop check Program parameter input Program parameter input cancel Circle Cutting CW Circle Cutting CCW XY Plane XZ Plane YZ Plane Inch Units Metric Units Stored stroke limit ON Stored stroke limit OFF . .

TURNING
G00 G01 G02 G03 G04 G07 . G10 G11 . . G17 G18 G19 G20 G21 G22 G23 G25 G26 Positioning in Rapid Linear Interpolation Circular Interpolation (CW) Circular Interpolation (CCW) Dwell Feedrate sine curve control . Data setting Data setting cancel . . XY Plane XZ Plane YZ Plane Inch Units Metric Units Stored stroke check function ON Stored stroke check function OFF Spindle speed fluctuation detection OFF Spindle speed fluctuation detection ON

MILLING
G27 G28 G29 G30 G31 . G33 G34 G35 G36 G40 G41 G42 G43 G44 G45 G46 G47 G48 G49 Reference point return check Automatic return to reference point Automatic return from reference point Return to 2nd, 3rd, 4th reference point Skip function . Thread cutting Bolt hole circle (Canned Cycle) Line at angle (Canned Cycle) Arc (Canned Cycle) Cutter compensation Cancel Cutter compensation Left Cutter compensation Right Tool Length Compensation (Plus) Tool Length Compensation (Minus) Tool offset increase Tool offset decrease Tool offset double increase Tool offset double decrease Tool Length Compensation Cancel

TURNING
G27 G28 G29 G30 G31 G32 . G34 . G36 G40 G41 G42 . . . G46 . . . Reference point return check Automatic Zero Return Return from Zero Return Position 2nd reference point return Skip function Thread cutting . Variable lead thread cutting . Automatic tool compensation Tool Nose Radius Compensation Cancel Tool Nose Radius Compensation Left Tool Nose Radius Compensation Right . . . Automatic Tool Nose Radius Compensation . . .

MILLING
G50 G51 G52 G53 G54 G55 G56 G57 G58 G59 G60 G61 G62 G63 G64 G65 G66 G67 G68 G69 Scaling OFF Scaling ON Local coordinate system setting Machine coordinate system selection Workpiece Coordinate System Workpiece Coordinate System 2 Workpiece Coordinate System 3 Workpiece Coordinate System 4 Workpiece Coordinate System 5 Workpiece Coordinate System 6 Single direction positioning Exact stop check mode Automatic corner override Tapping mode Cutting mode Custom macro simple call Custom macro modal call Custom macro modal call cancel Coordinate system rotation ON Coordinate system rotation OFF

TURNING
G50 . G52 G53 G54 G55 G56 G57 G58 G59 . G61 G62 G63 G64 G65 G66 G67 G68 G69 Coordinate system setting and maximum rpm . Local coordinate system setting Machine coordinate system setting Workpiece Coordinate System Workpiece Coordinate System 2 Workpiece Coordinate System 3 Workpiece Coordinate System 4 Workpiece Coordinate System 5 Workpiece Coordinate System 6 . Exact stop check mode Automatic corner override Tapping mode Cutting mode User macro simple call User macro modal call User macro modal call cancel Mirror image for double turrets ON Mirror image for double turrets OFF

MILLING
G70 G71 G72 G73 G74 G75 G76 G77 G78 G79 G80 G81 G82 G83 G84 G85 G86 G87 G88 G89 Inch Units Metric Units User canned cycle High-Speed Peck Drilling Cycle Counter tapping cycle User canned cycle Fine boring cycle User canned cycle User canned cycle User canned cycle Cancel Canned Cycles Drilling Cycle Counter Boring Cycle Deep Hole Drilling Cycle Tapping cycle Boring Cycle Boring Cycle Back Boring Cycle Boring Cycle Boring Cycle

TURNING
G70 G71 G72 G73 G74 G75 G76 . . . G80 . . G83 G84 . G86 G87 G88 G89 Finishing Cycle Turning Cycle Facing Cycle Pattern repeating Peck Drilling Cycle Grooving Cycle Threading Cycle . . . Canned cycle for drilling cancel . . Face Drilling Cycle Face Tapping Cycle . Face Boring Cycle Side Drilling Cycle Side Tapping Cycle Side Boring Cycle

MILLING
G90 G91 G92 G93 G94 G95 G96 G97 G98 G99 Absolute Positioning Incremental Positioning Reposition Origin Point Inverse time feed Per minute feed Per revolution feed Constant surface speed control Constant surface speed control cancel Set Initial Plane default Return to Retract (Rapid) Plane

TURNING
G90 G91 G92 . G94 . G96 G97 G98 G99 G107 G112 G113 G250 G251 Absolute Programming Incremental Programming Thread Cutting Cycle . End face Turning Cycle . Constant surface speed control Constant surface speed control cancel Linear Feedrate Per Time Feedrate Per Revolution Cylindrical Interpolation Polar coordinate interpolation mode Polar coordinate interpolation mode cancel Polygonal turning mode cancel Polygonal turning mode

MILLING
M00 M01 M02 M03 M04 M05 M06 Program Stop Optional Program Stop Program End Spindle On Clockwise Spindle On Counterclockwise Spindle Stop Tool Change

TURNING
M00 M01 M02 M03 M04 M05 Program Stop Optional Program Stop Program End Spindle On Clockwise Spindle On Counterclockwise Spindle Stop

M07 M08 M09 M10 M11 M30 M98 M99 Coolant On Coolant Off Clamps On Clamps Off End of Program, Reset to Start Call subroutine command Return from subroutine command M30 M98 M99 M08 M09

Coolant 1 On Coolant 2 On Coolant Off

End of Program, Reset to Start Subprogram call Return from subprogram

List of G Codes for Turning supported by Denford CNC Controls


G Code G00* G01 G02 G03 G04 G20 G21* G28 G40* G41 G42 G50 G70 G71 G72 G73 G74 G75 G76 G81 G90 G92 G94 G96 G97* G98* G99 Group 1 1 1 1 0 6 6 0 7 7 7 0 0 0 0 0 0 0 0 1 1 1 1 2 2 11 11 Type Modal Modal Modal Modal Non-modal Modal Modal Non-modal Modal Modal Modal Non-modal Non-modal Non-modal Non-modal Non-modal Non-modal Non-modal Non-modal Modal Modal Modal Modal Modal Modal Modal Modal Function. Positioning (Rapid Traverse) Linear Interpolation (Feed) Circular Interpolation CW Circular Interpolation CCW Dwell Inch Data Input Metric Data Input Reference Point Return Tool Nose Radius Compensation Cancel Tool Nose Radius Compensation Left Tool Nose Radius Compensation Right Work Co-ordinate Change/Max. Spindle Speed setting Finishing Cycle Stock Removal in Turning - X Stock Removal in Facing - Z Pattern Repeating Peck Drilling in Z Axis Grooving in X Axis Multiple Thread Cutting Cycle Deep hole drilling (No FANUC) Diameter Cutting Cycle A (Outer/Inner) Thread Cutting Cycle Cutting Cycle B (End Face Cycle) Assessed Surface Speed Control Assessed Surface Speed Control Cancel Feed Per Minute Feed Per Revolution

Note: 1. Not all G codes apply to each machine. 2. G codes marked with an * are set at machine power up and when the machine is reset or the emergency stop button is activated. 3. The G50 code will be a modal (retained) code if it is followed by the letter S. A G50 code will be a non-modal (one-shot) code if it is followed by X(U) or Z(W).

G76 THREADING CYCLE The G76 command contains, within two blocks, all the information required to generate a standard thread form and pitch. G76 P (A) / (B) / (C) Q (Min) R G76 X(U) Z(W) ; ;

P (DEP) Q (1st) F

P (A) is the number of thread finishing passes (1 to 99). P (B) is the chamfer amount. This is the angle at which the tool leaves the billet, at the end of the thread cutting cycle. P (C) is the angle of the tool tip (80, 60, 55, 30, 29 and 0). Note - (A), (B) and (C) are all specified at the same time by the address P, eg, P036060 = number of cuts is 03, chamfer amount of 60 and tool angle of 60. Q (Min) is the minimum cutting depth (in microns). When the depth of the cut calculated by the CNC control becomes less than this limit, the cutting depth is clamped at this minimum value. R is the finishing allowance. This is the final, or finishing, cuts applied to the thread. The number of stages to complete this finishing allowance is determined by the value of P(A), ie, the value of R divided by the P(A) number of finishing passes equals the value of each finishing allowance stage. X(U) is the end position of the thread in the X axis (the core diameter). Z(W) is the end position of the thread in the Z axis. P (DEP) is the depth of the thread as a radius value (in microns). Q (1st) is the depth of the first pass as a radius value (in microns). F is the size of the thread pitch.

G76 THREADING CYCLE The G76 command contains, within two blocks, all the information required to generate a standard thread form and pitch. Example for M24: G00 X24.5 Z5 G76 P036060 Q150 R0.03 G76 X20.319 Z-50 P1840 Q300 F3

You might also like