CNC Machinist Calculator Ultra

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

AddressWhat it does
RTPRetract plane, absolute
RFPReference plane, absolute, usually the part top
SDISSafety distance above the reference plane, no sign
DPFinal depth, absolute
DPRFinal depth relative to the reference plane, no sign. Program DP or DPR and leave the other empty.
DTBDwell at depth in seconds
SDRSpindle direction for retract, 0 for automatic reversal, or 3 or 4
SDACSpindle direction after the cycle, 3, 4 or 5
ENCTapping with or without encoder. Values depend on the cycle version.
MPITPitch as metric thread size
PITPitch as a value
AXNTool 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
…

The full 6-line example is in the app. Example is in inch. Check offsets and clearances first.

Watch out for

Related codes

CYCLE84 · G63

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

App Store Google Play