Home › G-codes › Siemens 840D 828D › G332
G332 Rigid tapping retract
Siemens 840D 828D G-code · Mill and lathe
Pulls the tap out after G331 with the same lead. The spindle reverses automatically.
Format
G332 Z K
Addresses
| Address | What it does |
|---|---|
Z | Retract position |
K | Lead, same value and sign as in G331 |
How it works
Modal, G group 1 (motion).
Example program
SPOS=0 ; POSITION CONTROL
G331 Z-20 K1.5 S500 ; TAP IN
G332 Z5 K1.5 ; TAP OUT
M3 S2000 ; BACK TO SPEED CONTROL
G331 Z-20 K1.5 S500 ; TAP IN
G332 Z5 K1.5 ; TAP OUT
M3 S2000 ; BACK TO SPEED CONTROL
Example is in inch. Check offsets and clearances first.
Watch out for
- Use the same K as in G331. A different value damages the thread.
- After tapping, program M3 or M4 with S to return the spindle to speed control.
Related codes
Every G-code for Siemens 840D 828D 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 G332 in the app All Siemens 840D 828D G-codes