CNC Machinist Calculator Ultra

Home › G-codes › Siemens 808D › G331

G331 Rigid tapping in

Siemens 808D G-code · Mill and lathe

Taps with the spindle in position control, locked to the axis, so no compensating chuck is needed. The sign of the lead sets right or left hand. G332 pulls the tap out with the same lead.

Format

G331 Z K S

Addresses

AddressWhat it does
ZTapping depth
KThread lead. Positive for right hand as with M3, negative for left hand as with M4.
SSpindle speed, written without M3 or M4

How it works

Modal, G group 1 (motion).

Example program

T5 D1 ; TAP, 0.8 MM PITCH
M6 ; TOOL CHANGE
G54 G0 G90 X10 Y10 Z5 ; ABOVE HOLE
SPOS=0 ; SPINDLE TO POSITION CONTROL
…

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

Watch out for

Related codes

G332 · SPOS · G63 · CYCLE84

G331 on other controls

The same number can mean something different on another control.

ControlMeaning
Siemens 840D 828DRigid tapping in

Every G-code for Siemens 808D 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 G331 in the app All Siemens 808D G-codes

App Store Google Play