CNC Machinist Calculator Ultra

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

CYCLE840(RTP, RFP, SDIS, DP, DPR, DTB, SDR, SDAC, ENC, MPIT, PIT, AXN)

Addresses

AddressWhat it does
RTPRetraction plane, absolute, mm
RFPReference plane, absolute, mm, usually the part face
SDISSafety clearance in front of RFP, no sign, mm
DPFinal depth, absolute with sign, mm
DPRFinal depth from RFP, no sign, mm. Used if DP is also set
DTBDwell at final depth, seconds
SDRSpindle direction for retraction: 0 automatic reversal, or 3 or 4
SDACSpindle direction after the cycle: 3, 4 or 5
ENC0 with encoder, 1 without encoder
MPITPitch as metric size, M3 to M48, with sign. Encoder only
PITPitch as a value in mm, with sign. Encoder only
AXNTool 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

T7 D1 ; M8 TAP IN FLOATING HOLDER
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

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

CYCLE840(RTP, RFP, SDIS, DP, DPR, DTB, SDR, SDAC, ENC, MPIT, PIT, AXN)

Addresses

AddressWhat it does
RTPRetraction plane, absolute, mm
RFPReference plane, absolute, mm, usually the part face
SDISSafety clearance in front of RFP, no sign, mm
DPFinal depth, absolute with sign, mm
DPRFinal depth from RFP, no sign, mm. Used if DP is also set
DTBDwell at final depth, seconds
SDRSpindle direction for retraction: 0 automatic reversal, or 3 or 4
SDACSpindle direction after the cycle: 3, 4 or 5
ENC0 with encoder, 1 without encoder
MPITPitch as metric size, M3 to M48, with sign. Encoder only
PITPitch as a value in mm, with sign. Encoder only
AXNTool 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

T8 D1 ; M10 TAP IN FLOATING HOLDER
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

Related codes

CYCLE84

CYCLE840 on other controls

The same number can mean something different on another control.

ControlMeaning
Siemens 840D 828DTapping 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

App Store Google Play