Home › G-codes › Siemens 808D › CYCLE840
CYCLE840 Tapping with compensating chuck / Tapping with compensating chuck on center
Siemens 808D G-code · Mill, Lathe
On mills: Tapping with compensating chuck
Taps with a floating tap holder, with or without spindle encoder. With encoder the cycle works out the feed from speed and pitch. Without encoder the pitch is ignored and the active feed is used.
Format
Addresses
| Address | What it does |
|---|---|
RTP | Retraction plane, absolute, mm |
RFP | Reference plane, absolute, mm, usually the part face |
SDIS | Safety clearance in front of RFP, no sign, mm |
DP | Final depth, absolute with sign, mm |
DPR | Final depth from RFP, no sign, mm. Used if DP is also set |
DTB | Dwell at final depth, seconds |
SDR | Spindle direction for retraction: 0 automatic reversal, or 3 or 4 |
SDAC | Spindle direction after the cycle: 3, 4 or 5 |
ENC | 0 with encoder, 1 without encoder |
MPIT | Pitch as metric size, M3 to M48, with sign. Encoder only |
PIT | Pitch as a value in mm, with sign. Encoder only |
AXN | Tool axis: 1, 2 or 3 for that axis of the current plane |
How it works
Non modal. It runs once at the current position. MCALL repeats it at each following position.
Example program
M6 ; TOOL CHANGE
G17 G90 G54 G94 G0 X35 Y35 S500 M3 ; OVER HOLE
Z50 ; CLEARANCE
…
The full 7-line example is in the app. Example is in inch. Check offsets and clearances first.
Watch out for
- Without encoder program F as rpm times pitch before the call. SDR must then be 3 or 4, or alarm 61202 stops the cycle.
- Program the spindle with M3 or M4 before the call. SDAC has no effect when SDR is 0.
- Feed and speed override are frozen at 100 percent while tapping. A holder with more float is needed without encoder.
On lathes: Tapping with compensating chuck on center
Taps on the spindle center with a floating holder, with or without encoder. Without encoder the pitch is ignored and the active feed is used.
Format
Addresses
| Address | What it does |
|---|---|
RTP | Retraction plane, absolute, mm |
RFP | Reference plane, absolute, mm, usually the part face |
SDIS | Safety clearance in front of RFP, no sign, mm |
DP | Final depth, absolute with sign, mm |
DPR | Final depth from RFP, no sign, mm. Used if DP is also set |
DTB | Dwell at final depth, seconds |
SDR | Spindle direction for retraction: 0 automatic reversal, or 3 or 4 |
SDAC | Spindle direction after the cycle: 3, 4 or 5 |
ENC | 0 with encoder, 1 without encoder |
MPIT | Pitch as metric size, M3 to M48, with sign. Encoder only |
PIT | Pitch as a value in mm, with sign. Encoder only |
AXN | Tool axis. In G18, 1 is Z |
How it works
Non modal. It runs once at the current position. MCALL repeats it at each following position.
Example program
G18 G90 G94 G0 X0 Z50 S400 M3 ; ON CENTER
G1 F600 ; 400 RPM TIMES 1.5 PITCH
CYCLE840(5,0,2,-20,,0,4,3,1,,,1) ; NO ENCODER, AXN 1 IS Z
…
The full 5-line example is in the app. Example is in inch. Check offsets and clearances first.
Watch out for
- Without encoder program F as rpm times pitch before the call and set SDR to 3 or 4.
- In G18 set AXN to 1 to tap along Z, or select G17 first. Overrides are frozen at 100 percent while tapping.
Related codes
CYCLE840 on other controls
The same number can mean something different on another control.
| Control | Meaning |
|---|---|
| Siemens 840D 828D | Tapping with compensating chuck cycle |
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 CYCLE840 in the app All Siemens 808D G-codes