Home › G-codes › Siemens 840D 828D › CYCLE97
CYCLE97 Thread cutting cycle
Siemens 840D 828D G-code · Lathe
Cuts outside or inside threads, straight or taper, single or multi start. Pitch, start and end points, diameters, depth, infeed angle and number of cuts are set in the call.
Format
CYCLE97(PIT, MPIT, SPL, FPL, DM1, DM2, APP, ROP, TDEP, FAL, IANG, NSP, NRC, NID, VARI, NUMT, _VRT)
Addresses
| Address | What it does |
|---|---|
PIT | Thread pitch as a value |
MPIT | Pitch as metric thread size, 3 to 60 |
SPL FPL | Thread start and end point in Z |
DM1 DM2 | Diameter at start and at end |
APP ROP | Run in and run out path |
TDEP | Thread depth |
FAL | Finish allowance |
IANG | Infeed angle. Plus feeds along one flank, minus alternates flanks. |
NSP | Start angle offset of the first thread in degrees |
NRC | Number of roughing cuts |
NID | Number of spring passes |
VARI | 1 to 4: outside or inside, constant infeed or constant chip area |
NUMT | Number of thread starts |
_VRT | Lift off distance |
How it works
Non modal.
Example program
T3 D1 ; THREADING TOOL
G97 S800 M3 ; FIXED RPM
G0 X24 Z5 ; START POSITION
CYCLE97(2.5,,0,-30,20,20,5,2,1.53,0.05,29,0,8,1,3,1,1) ; M20 X 2.5 OUTSIDE THREAD
…
G97 S800 M3 ; FIXED RPM
G0 X24 Z5 ; START POSITION
CYCLE97(2.5,,0,-30,20,20,5,2,1.53,0.05,29,0,8,1,3,1,1) ; M20 X 2.5 OUTSIDE THREAD
…
The full 5-line example is in the app. Example is in inch. Check offsets and clearances first.
Watch out for
- Program PIT or MPIT, not both.
- Use G97 before the call so the rpm stays constant.
- Make the run in APP long enough for the axis to reach speed.
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 CYCLE97 in the app All Siemens 840D 828D G-codes