Close Menu
  • MAKİNELER ve İMALAT
    • Tools & Equipment
    • Computer-Aided Drawing
    • CAD/CAM Education
    • CNC Machine Programming
    • Casting Technologies
    • Electrical & Electronics Technologies
    • Hydraulics & Pneumatics
    • Manufacturing Processes
    • Manufacturing Technologies
    • Occupational Safety
    • Mold & Die Design
    • Solid Modeling
    • Welding Technology
    • Machine Elements
    • Mechanical Trade Drawing
    • Materials Science
    • Automotive & Vehicle Technologies
    • Robotics Technologies
    • Health Technologies
    • Defense & Aerospace Technologies
    • Descriptive Geometry
    • Technical Drawing
    • Software & Hardware Technologies
    • Innovative Manufacturing Methods
  • TEKNOLOJİ ve YAŞAM
    • OTOMOBİLLER ve TAŞIT
      • Vehicle & Engine Knowledge
      • Safe Driving
      • Sürüş Destek Sistemleri
    • Genel Kültür
      • Movies & TV Shows
      • Görsel ve Grafik Sanat
      • Books & Literature
      • Music
      • Sports
      • History
      • History of Technology
    • GÜNDELİK YAŞAM TEKNOLOJİLERİ
    • Hobbies & Entertainment
    • Internet Technologies
    • Health
    • Mobile Technologies
Makine Eğitimi
  • Machines & Manufacturing
    Machine Elements
    Hydraulics & Pneumatics
    Technical Drawing
    Computer-Aided Design & Manufacturing
    Basic Manufacturing Processes
    Manufacturing Processes
    Industry Technologies
    Other Technical Courses
    Motion & Power Transmission
    Simple Machines
    Chains & Sprockets
    Shafts & Journals
    Gears
    Cams
    Couplings
    Belts & Pulleys
    Springs
    Bearings
    Keys
    Fastening Joining
    Retaining Rings
    Screws, Bolts & Nuts
    Cotter Pins
    Flanges
    Welding
    Rivets
    Pins & Bolts
    Washers
    Calculators
    Gear Ratio Calculator
    Spring Constant Calculator
    Belt Pulley Ratio Calculator
    Other Machine Elements
    Slides & Linear Guides
    Brakes
    Flywheels
    Clamps
    Shock Absorbers
    Gaskets & O-Rings
    Seals & Sealing Elements
    Hydraulics
    Introduction to Hydraulics & Principles
    Hydraulic Systems & Applications
    Accumulators
    Filters
    Motors
    Pumps
    Valves
    Pneumatics
    Introduction to Pneumatics & Principles
    Pneumatic Systems & Applications
    Pneumatic Circuit Components
    Valves
    Cylinders
    Silencers
    Motors
    Compressors
    Dryers
    Conditioning Units
    Common Topics & Maintenance
    Hydraulic & Pneumatic Maintenance
    Study Notes, Exams & Tests
    Technical Drawing
    Introduction to Technical Drawing
    Geometric Drawings
    Perspective & Projection
    Orthographic Views
    Dimensioning
    Sectioning
    Assembly & Detail Drawings
    Tolerances
    Surface Finish Symbols
    Mechanical Engineering Drawing
    Screws, Bolts & Nuts
    Pulley Drawings
    Gear Drawings
    Shafts & Journals
    Bearing Drawings
    Pins & Bolts
    Spring Drawings
    Welds in Technical Drawing
    Washers
    Cotter Pins
    Technical Drawing Exercises
    Mechanical Drawing Exercises
    Gear Exercises
    View Extraction Exercises
    Pulley Exercises
    Pin & Bolt Exercises
    Threaded Fastening Exercises
    Descriptive Geometry
    Computer-Aided Drawing
    AutoCAD Drawing Lessons
    Solid Modeling & Animation
    Solid Model Drawing Files
    Solid Model Assembly Examples
    Solid Model Drawing Lessons
    3D CAD Software Reviews
    Solid Modeling Exercises
    CNC Programming
    CAM
    Measurement & Inspection
    Dial Indicators
    Calipers
    Gauges
    Micrometers
    Materials Science
    Steels
    Cast Iron
    Aluminum
    Plastics
    Material Testing & Hardness Measurement
    Occupational Safety
    Workshop Safety
    Safety When Working With Electricity
    Machine Safety Rules
    Hand Operations
    Filing
    Marking
    Cutting Operations
    Reaming
    Tapping
    Threading With a Die
    Drill Bit Sharpening
    Working With Machines
    Basic Turning Operations
    Basic Milling Operations
    Shaper Machine
    Machining
    Turning
    Milling
    Grinding
    Innovative Manufacturing Methods
    EDM (Electrical Discharge Machining)
    Laser Machining
    Waterjet Machining
    3D Printing
    3D Scanners
    Welding
    Rolling
    Casting
    Mold & Die Design
    Mechanical & Hydraulic Presses
    Blanking & Piercing Dies
    Bending Dies
    Drawing Dies
    Plastic Injection Molds
    Extrusion Dies
    Compound Dies
    Progressive Dies
    Blow Molds
    Spinning Dies
    Spray Molds
    Manufacturing of Machine Parts
    Automotive & Vehicle Technologies
    Motor Vehicle Manufacturing
    Raw Material Production
    History of Technology
    Health & Medical Technologies
    Defense & Aerospace
    Robotics Technologies
    Software & Hardware Technologies
    Mechanics - Strength of Materials
    Physics Topics
  • Technology & Life
    Hobbies & Entertainment
    Sports
    Music
    Vehicle & Engine Knowledge
    Vehicle Maintenance & Repair
    Safe Driving
    Driver Assistance Systems
    History
    Movies & TV Shows
    Books & Literature
    Computers & Internet
    Computer Tips
    Software Reviews
    Hardware & Peripherals
    Practical & Safe Internet Use
    Visual & Graphic Art
    Mobile Technologies
    Travel
    Science
    Health
    First Aid Knowledge
    Everyday Technologies
Makine Eğitimi
Home»CNC Machine Programming»G02 and G03 Codes: Circular Motion Commands
29 August 2026

G02 and G03 Codes: Circular Motion Commands

CNC Circular Motion Commands

In this article, part of our machine technology CNC lessons section, we’re covering two preparatory function codes: G02 and G03. We’ll look at what the G02 code does, what the G03 code is, and where they’re used. We’ll also go over sample usage of the G02 and G03 CNC codes.

  • The G02 Code
    • How Is the G02 Code Used?
      • Method 1: Defining the radius of the circular motion
      • Method 2: Defining the center of the circular motion
  • The G03 Code
    • How Is the G03 Code Used?
      • Method 1: Defining the radius of the circular motion
      • Method 2: Defining the center of the circular motion
    • G02 and G03 Commands, CNC Program Examples
    • G02 and G03 CNC Program Example 2:
  • Related Questions

Clockwise Motion


The G02 code makes the tool follow a clockwise circular path on the CNC machine.

Counterclockwise Motion


The G03 code is the command that makes the tool move in a counterclockwise circular path.

Defining the Radius


In circular motion commands, the arc’s radius is typically specified either with the R parameter or with I, J, K center coordinates.

The G02 Code

This is the clockwise circular motion command. It’s used to produce concave (internal) radii. Circular movements to the target point are made at feed rate F, either by specifying the desired radius value or by defining the radius center.

How Is the G02 Code Used?

Method 1: Defining the radius of the circular motion

G02 X….. Y….. R….. F…..
X,Y = coordinates of target point B
R = radius of the circular motion
F = feed rate

how the G02 code is used, example

Method 2: Defining the center of the circular motion

G02 X….. Y….. I….. J….. F…..
X,Y = coordinates of target point B
I = distance of the radius center from the starting point of the circular motion, along the X direction
J = distance of the radius center from the starting point of the circular motion, along the Y direction
F = feed rate

CNC circular motion code, G02

The G03 Code

This is the counterclockwise circular motion command. It’s used to create convex (external) radii. Circular movements to the target point are made at feed rate F, either by specifying the desired radius value or by defining the radius center.

How Is the G03 Code Used?

Method 1: Defining the radius of the circular motion

G03 X….. Y….. R….. F…..
X,Y = coordinates of target point B, R = radius of the circular motion
F = feed rate

G03 CNC code

Method 2: Defining the center of the circular motion

G03 X….. Y….. I….. J….. F…..
X,Y = coordinates of target point B
I = distance of the radius center from the starting point of the circular motion, along the X direction
J = distance of the radius center from the starting point of the circular motion, along the Y direction
F = feed rate

G02 and G03 Commands, CNC Program Examples

G50 S2000 T0300
G96 S200 M03
G00 X0 Z3.0 T0303 M08:
G42 G01 Z00 F0.2
G03 X20.0 Z-10.0 R10.0:
G01 Z-50.0:
G02 X100.0 Z-74.385 R45.0
G01 Z-125.0:
G40 U2.0 W1.0
G00 X200.0 Z200.0 M09 T0300
M30
G02 and G03 codes example

G02 and G03 CNC Program Example 2:

G50 S2000 T0300:
G96 S200 M03:
G00 X35.0 Z5.0 T0303 M08:
G01 Z-20.0 F0.2:
G02 X67.0 Z-36.0 R16.0
G01 X68.0:
G03 X100.0 Z-52.0 R16.0:
G01 Z-82.0:
G00 X200.0 Z200.0 M09 T0300:
M30:
cnc-g02-g03

For a page that briefly introduces CNC G and M codes, see: > List of CNC G Codes and Their Meanings


Related Questions

G02 makes the tool move in a clockwise circular path, while G03 does the opposite, producing counterclockwise motion. Which direction an arc or circle is cut in depends on which of these two codes is used.

The R parameter only gives the arc’s radius, while I and J values define the exact coordinates of the arc’s center point. This gives a more precise definition, especially when cutting a full circle or in cases where defining by radius alone could be ambiguous.

Related Posts

CNC G code list beginner guide CNC G Code List and Meanings (Beginner’s Guide) Cnc Freze Atölyesi çalışma talimatı CNC Milling Workshop Operating Instructions CNC Longitudinal Turning Cycle G90 - G71 - G70 CNC Longitudinal Turning Cycle – G90 – G71 – G70 The structure of CNC milling machines The Structure of CNC Milling Machines Mechanical Clamping Elements on Machine Tools Mechanical Clamping Elements on Machine Tools modern CNC machines video series The World’s Most Modern CNC Machines Video Series G74 CNC drilling code cycle diagram G74 CNC Peck Drilling Cycle Explained What the Keys on the CNC Milling Control Panel Mean What the Keys on the CNC Milling Control Panel Mean
Share. Facebook Twitter WhatsApp Tumblr Email Telegram Copy Link

Leave A Reply Cancel Reply

Engine Noises and What They Mean
Traffic Regulatory Signs and Their Meanings. Restriction and Command Signs
  • Contact
  • Terms of Service
  • Privacy & Cookie Policy

Type above and press Enter to search. Press Esc to cancel.