Home › G-codes › Siemens 840D 828D › CYCLE840
CYCLE840 Tapping with compensating chuck cycle
Siemens 840D 828D G-code · Mill
Taps with a floating tap holder. The spindle reverses at depth. ENC tells the cycle whether the spindle encoder is used.
Verify on your machine. This entry could not be fully checked against the maker manual. Check your machine manual before you run it.
Format
CYCLE840(RTP, RFP, SDIS, DP, DPR, DTB, SDR, SDAC, ENC, MPIT, PIT, AXN)
Addresses
| Address | What it does |
|---|---|
RTP | Retract plane, absolute |
RFP | Reference plane, absolute, usually the part top |
SDIS | Safety distance above the reference plane, no sign |
DP | Final depth, absolute |
DPR | Final depth relative to the reference plane, no sign. Program DP or DPR and leave the other empty. |
DTB | Dwell at depth in seconds |
SDR | Spindle direction for retract, 0 for automatic reversal, or 3 or 4 |
SDAC | Spindle direction after the cycle, 3, 4 or 5 |
ENC | Tapping with or without encoder. Values depend on the cycle version. |
MPIT | Pitch as metric thread size |
PIT | Pitch as a value |
AXN | Tool axis |
How it works
Non modal. It runs once at the current position. Use MCALL to repeat it at every following position.
Example program
T7 D1 ; M10 X 1.5 TAP IN FLOATING HOLDER
M6
G0 X20 Y20 S400 M3 F600 ; 400 RPM TIMES 1.5 PITCH
Z50
…
M6
G0 X20 Y20 S400 M3 F600 ; 400 RPM TIMES 1.5 PITCH
Z50
…
The full 6-line example is in the app. Example is in inch. Check offsets and clearances first.
Watch out for
- Without encoder the feed must be programmed as rpm times pitch before the call.
- The holder must float enough to take up the spindle stop and reverse.
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 CYCLE840 in the app All Siemens 840D 828D G-codes