Preparatory NC Codes G00Linear Movement (rapid) G01Linear Movement (feed) G02Circular Movement (cw) G03Circular Movement (ccw) G70Inch units G71Metric units G94Feed in mm/min G95Feed in mm/rev G96Speed in mm/min G97Speed in RPM G90Absolute dimensions G91incremental dimensions CNC Programming
X Y (0, 55) G01 X30 Y55 G01 X30 Y20 G01 X48 Y20 G01 X48 Y0 G01 X106 Y0 G01 X106 Y28 G01 X72 Y28 G01 X30 G01 Y20 G01 X48 G01 Y0 G01 X106 G01 Y28 G01 X72 G91 G01 X30 G01 Y-35 G01 X18 G01 Y-20 G01 X58 G01 Y28 G01 X-34
Miscellaneous NC Codes M02End of program M03Clockwise rotation of spindle M04Counter-clockwise rotation of spindle M05Stop rotation of main spindle M06 Tool change M07Coolant on M09Coolant off CNC Programming
Sample Program N10 G71 G90 G94 G97 M03 M07 S500 N20 G01 X90 Y10 F200 N30 G02 X90 Y10 R20 N40 G00 X100 Y10 N50 G00 X80 Y0 N60 G91 N70 G01 X90 Y120 N80 G03 X40 Y0 R15 N90 G00 X20 Y20 N100 M05 M09 N110 M02
CNC Programming