(Part A) Machinerys Handbook 31st Edition Pages 1-1484

CNC PROGRAMMING CODES Table 1. Typical Turning G-Codes Table 1. (Continued) Typical Turning G-Codes Machinery's Handbook, 31st Edition

1357

G-Code

Description

G -Code

Description

G20 US customary units of input G21 Metric units of input G22 Stored stroke check ON G23 Stored stroke check OFF

G67 Custom macro modal call—cancel G68 Mirror image for double turrets G69 Mirror image for double turrets—cancel G70 Profile finishing cycle G71 Profile roughing cycle—Z axis direction

G25 Spindle speed fluctuation detection ON G26 Spindle speed fluctuation detection OFF G27 Machine zero position check G28 Machine zero return (reference point 1) G29 Return from machine zero G30 Machine zero return (reference point 2)

Profile roughing cycle—X axis direction

G72

G73 Pattern repetition cycle G74 Drilling cycle G75 Grooving cycle G76 Threading cycle

G31 Skip function

G90 Cutting cycle A (Group type A) G90 Absolute command (Group type B) G91 Incremental command (Group type B)

G32 Threading—constant lead G35 Circular threading CW G36 Circular threading CCW

G92 Thread cutting cycle (Group type A) G40 Cutter radius—cancel (Tool nose radius offset cancel) G92 Tool position register (Group type B) G41 Cutter radius—left (Tool nose radius offset left) G94 Cutting cycle B (Group type A) G42 Cutter radius—right (Tool nose radius compensation right) G94 Feed rate per minute (Group type B) G50 Tool position register (obsolete) / Maximum r/min preset G95 Feed rate per revolution (Group type B) G52 Local coordinate system setting G96 Constant surface speed G53 Machine coordinate system setting G97 Constant spindle speed (r/min) G54 Work coordinate offset 1 G98 Feed rate per minute (Group type A) G55 Work coordinate offset 2 G99 Feed rate per revolution (Group type A) G56 Work coordinate offset 3 Note that some G-codes are optional and some will vary from one control system to another. Typical list includes Group type A and Group type B—where some G-codes are different. For example, Group A uses addresses U and W to identify incremental motion, while Group B uses G91 and G92. There are other differences as well. Group A is the most common. Table 2. Typical Milling G-Codes G-Code Description G-Code Description G00 Rapid positioning G52 Local coordinate system setting G01 Linear interpolation G53 Machine coordinate system G02 Circular interpolation clockwise G54 Work coordinate offset 1 G03 Circular interpolation counterclockwise G55 Work coordinate offset 2 G04 Dwell (as a separate block) G56 Work coordinate offset 3 G09 Exact stop check—one block only G57 Work coordinate offset 4 G10 Programmable data input (Data setting) G58 Work coordinate offset 5 G11 Data setting mode—cancel G59 Work coordinate offset 6 G15 Polar coordinate command—cancel G60 Single direction positioning G16 Polar coordinate command G61 Exact stop mode G17 XY plane designation G62 Automatic corner override mode G18 ZX plane designation G63 Tapping mode G19 YZ plane designation G64 Cutting mode

Copyright 2020, Industrial Press, Inc.

ebooks.industrialpress.com

Made with FlippingBook - Share PDF online