G19 G-Code Command

  • 2 mins read

G19 G-Code Command

G19 is a G-code command used in CNC machining to specify the plane in which circular interpolation is to be performed. Specifically, G19 commands the machine to perform circular interpolation in the YZ plane. This means that the machine will move the cutting tool in a circular path in the YZ plane, as specified by the parameters of the G-code command.

In contrast, G17 specifies circular interpolation in the XY plane, and G18 specifies circular interpolation in the XZ plane. These commands are important for controlling the movement of the cutting tool in CNC machining, and they allow for precise and complex shapes to be cut with high accuracy.

How G19 G-Code Command is used

Here’s an example of G19 being used in a G-code program with comments:

G00 X0 Y0 Z0    ; Rapid move to the starting position
G90             ; Set absolute positioning mode
G19             ; Set circular interpolation plane to YZ
G02 X10 Y10 I5 J0  ; Perform a clockwise circular interpolation in the YZ plane, with a center point at (5,0) and a radius of 10 units
G01 X20 Y0       ; Move in a straight line to (20,0)
G03 X30 Y10 I5 J0  ; Perform a counterclockwise circular interpolation in the YZ plane, with a center point at (25,0) and a radius of 10 units
G00 X0 Y0       ; Rapid move back to the starting position

In this example, the G-code program starts by moving the cutting tool to the starting position at (0,0,0) using a rapid move (G00). It then sets the absolute positioning mode (G90) and specifies that circular interpolation should be performed in the YZ plane (G19).

The program then performs two circular interpolations using G02 and G03 commands. The first interpolation is a clockwise circle with a center point at (5,0) and a radius of 10 units. The second interpolation is a counterclockwise circle with a center point at (25,0) and a radius of 10 units. Both of these circular interpolations are performed in the YZ plane, as specified by the G19 command.

Finally, the program moves the cutting tool back to the starting position using a rapid move (G00).