CNC Machinist Calculator Ultra

Home › G-codes › Mach3 Mach4 › G13

G13 Circle or pocket, counterclockwise

Mach3 Mach4 G-code · Mill

Cuts a full circle counterclockwise around the current position, then returns to center. Counterclockwise inside a hole is climb milling.

Format

G13 I [J] F [P] [Q]

Addresses

AddressWhat it does
IRadius the tool moves out along X
JMach4 Y part of the lead in, sets the lead in angle
QMach4 start radius for a pocket
PMach4 step over for a pocket
FFeed rate

How it works

Non modal in practice. Runs once from the current point.

Example program

G0 G20 G90 G54 G17 G40 G49 G80 (SAFE START, INCH)
T1 M6 (TOOL CHANGE)
S6000 M3 (SPINDLE ON)
G0 X1.5 Y0.25 (HOLE CENTER)
…

The full 8-line example is in the app. Example is in inch. Check offsets and clearances first.

Watch out for

Related codes

G12 · G3

G13 on other controls

The same number can mean something different on another control.

ControlMeaning
Haas NGCCircular pocket milling counterclockwise
Okuma OSPTurret A select
Heidenhain TNC (ISO)Counterclockwise arc, polar

Every G-code for Mach3 Mach4 in your pocket. The app has the full example programs, search by number or shop word, a line decoder and calculators for tapping, threading and drilling.

Open G13 in the app All Mach3 Mach4 G-codes

App Store Google Play