G03 G-Code Command

  • 4 mins read

G03 G-Code Command

G03 is a G-code command used in CNC machining to specify a counter clockwise circular movement of the cutting tool. It is used to create circular cuts, arcs, and contours in the workpiece. The G03 command requires parameters to define the center point of the arc, the radius of the arc, and the end point of the arc. The command is typically followed by an X, Y, and Z coordinate to specify the end point of the arc.

How G03 G-Code Command is used

Here is an example of a G03 command being used in a G-code program with comments in brackets and a spindle on command for 2000 rpm:

G00 X0 Y0 Z0  [rapid move to starting position]
M03 S2000     [turn on spindle at 2000 rpm]
G01 Z-0.5 F10 [move down to cutting depth at a feed rate of 10 mm per minute]
G03 X-1 Y1 R1. [cut a clockwise arc with a radius of 1 mm and end point at X-1 Y1]
G01 Z0 F100    [move up to retract the cutting tool at a feed rate of 10 mm per minute]
M05           [turn off the spindle]

In this example, the program starts with a rapid move to the starting position at X0 Y0 Z0. Then, the spindle is turned on at 2000 rpm with the M03 command. The cutting tool is moved down to a cutting depth of Z-0.5 at a feed rate of 10 units per minute with the G01 command. The G03 command is used to cut a counter clockwise arc with a radius of 1 mm and an end point at X-1 Y1. The cutting tool is then retracted by moving up to Z0 at a feed rate of 100 units per minute with the G01 command. Finally, the spindle is turned off with the M05 command.

Here’s a more complex example of a G03 command being used in a G-code program:

G00 X0 Y0 Z0        ; Rapid move to starting position
M03 S1000           ; Turn on spindle at 1000 rpm
G01 Z-0.5 F50       ; Move down to cutting depth at a feed rate of 50 units per minute
G01 X10 Y0 F100     ; Move horizontally to X10 at a feed rate of 100 units per minute
G03 X15 Y5 R5 F200  ; Cut a clockwise arc with a radius of 5 units and end point at X15 Y5 at a feed rate of 200 units per minute
G01 X20 Y10 F100    ; Move diagonally to X20 Y10 at a feed rate of 100 units per minute
G03 X25 Y5 R5 F200  ; Cut a clockwise arc with a radius of 5 units and end point at X25 Y5 at a feed rate of 200 units per minute
G01 X30 Y0 F100     ; Move horizontally to X30 at a feed rate of 100 units per minute
G03 X35 Y5 R5 F200  ; Cut a clockwise arc with a radius of 5 units and end point at X35 Y5 at a feed rate of 200 units per minute
G01 X40 Y10 F100    ; Move diagonally to X40 Y10 at a feed rate of 100 units per minute
G03 X45 Y5 R5 F200  ; Cut a clockwise arc with a radius of 5 units and end point at X45 Y5 at a feed rate of 200 units per minute
G01 X50 Y0 F100     ; Move horizontally to X50 at a feed rate of 100 units per minute
G01 Z0 F50          ; Move up to retract the cutting tool at a feed rate of 50 units per minute
M05                 ; Turn off spindle

In this example, the program starts with a rapid move to the starting position at X0 Y0 Z0. Then, the spindle is turned on at 1000 rpm with the M03 command. The cutting tool is moved down to a cutting depth of Z-0.5 at a feed rate of 50 units per minute with the G01 command.

The G01 and G03 commands are then used to move the cutting tool along a complex path consisting of horizontal and diagonal movements and circular cuts with varying radii and end points. The feed rates for the movements and cuts are also varied, with some moves made at a feed rate of 100 units per minute and others at a feed rate of 200 units per minute. Finally, the cutting tool is retracted by moving up to Z0 at a feed rate of 50 units per minute with the G01 command. The spindle is turned off with the M05 command.