Sinumerik 840D cycles: drilling, milling and turning
Sinumerik 840D standard cycles with parameter lists: CYCLE81 to CYCLE89, MCALL with HOLES1/HOLES2, pockets, face milling, CYCLE800, CYCLE832, CYCLE95 and CYCLE97.
Sinumerik cycles are subprograms that are called with a parameter list, for example CYCLE83(…). The input screens of the control write the call with all parameters, but the call can also be typed by hand. The parameter order is fixed: an unused parameter keeps its comma, and parameters at the end of the list can be dropped.
The lists on this page are the classic parameter lists of the 840D. On an 840D sl with SINUMERIK Operate the cycle names are the same, but most cycles have additional parameters at the end of the list. A program written with the short list still runs, the missing parameters take their default values.
Conditions for every cycle
The working plane (G17, G18, G19) is selected before the call. Drilling cycles drill in the axis perpendicular to the plane, milling cycles feed in along that axis.
| Plane | Plane axes | Infeed axis |
|---|---|---|
| G17 | X/Y | Z |
| G18 | Z/X | Y |
| G19 | Y/Z | X |
Tool, offset (D), spindle speed, direction of rotation and feed are programmed before the call unless the cycle has its own parameter for them. G commands and the programmable frame that were active before the call are still active afterwards.
Common parameters
| Parameter | Meaning |
|---|---|
| RTP | Retraction plane, absolute. The cycle ends here |
| RFP | Reference plane, absolute, usually the top of the workpiece |
| SDIS | Safety clearance above the reference plane, entered without sign |
| DP | Final depth, absolute |
| DPR | Final depth relative to the reference plane, entered without sign |
If both DP and DPR are given, the cycle takes the depth from DPR. A relative depth with RTP equal to RFP, or with the retraction plane below the reference plane, stops the cycle with alarm 61101.
Drilling cycles
| Cycle | Call | Sequence |
|---|---|---|
| CYCLE81 | CYCLE81(RTP, RFP, SDIS, DP, DPR) | Drilling, centering. Rapid to RFP + SDIS, feed to depth, rapid to RTP |
| CYCLE82 | CYCLE82(RTP, RFP, SDIS, DP, DPR, DTB) | As CYCLE81 with dwell DTB at depth (counterboring) |
| CYCLE83 | CYCLE83(RTP, RFP, SDIS, DP, DPR, FDEP, FDPR, DAM, DTB, DTS, FRF, VARI, _AXN, _MDEP, _VRT, _DTD, _DIS1) | Deep-hole drilling with chip breaking or full retraction |
| CYCLE84 | CYCLE84(RTP, RFP, SDIS, DP, DPR, DTB, SDAC, MPIT, PIT, POSS, SST, SST1, _AXN, _PTAB, _TECHNO, _VARI, _DAM, _VRT) | Rigid tapping, without compensating chuck |
| CYCLE840 | CYCLE840(RTP, RFP, SDIS, DP, DPR, DTB, SDR, SDAC, ENC, MPIT, PIT, _AXN, _PTAB, _TECHNO) | Tapping with compensating chuck |
| CYCLE85 | CYCLE85(RTP, RFP, SDIS, DP, DPR, DTB, FFR, RFF) | Boring 1. Feed in at FFR, dwell, feed out to RFP + SDIS at RFF |
| CYCLE86 | CYCLE86(RTP, RFP, SDIS, DP, DPR, DTB, SDIR, RPA, RPO, RPAP, POSS) | Boring 2. Dwell, oriented spindle stop at POSS, tool moved clear by RPA/RPO/RPAP, rapid out |
| CYCLE87 | CYCLE87(RTP, RFP, SDIS, DP, DPR, SDIR) | Boring 3. Spindle stop at depth, program waits for NC start, rapid out |
| CYCLE88 | CYCLE88(RTP, RFP, SDIS, DP, DPR, DTB, SDIR) | Boring 4. Dwell, spindle stop (with or without program stop), rapid out after NC start |
| CYCLE89 | CYCLE89(RTP, RFP, SDIS, DP, DPR, DTB) | Boring 5. Dwell, feed out to RFP + SDIS, rapid to RTP |
CYCLE81 to CYCLE84 and CYCLE86 to CYCLE89 use the feed programmed before the call. SDIR in the boring cycles is the direction of rotation inside the cycle (3 for M3, 4 for M4).
CYCLE83 deep-hole drilling
| Parameter | Meaning |
|---|---|
| FDEP / FDPR | Depth of the first infeed, absolute or relative to RFP |
| DAM | Degression. Positive: amount by which each infeed shrinks. Negative: factor. 0: no degression |
| DTB | Dwell at each infeed depth. Positive in seconds, negative in revolutions |
| DTS | Dwell at the start point and when clearing chips, same units as DTB |
| FRF | Feed factor for the first infeed (0.001 to 1) |
| VARI | 0: chip breaking (short retraction), 1: full retraction to clear chips |
| _AXN | Drilling axis: 1 = first, 2 = second, otherwise third geometry axis |
| _MDEP | Minimum infeed depth, used together with a degression factor |
| _VRT | Retraction amount for chip breaking. 0 sets 1 mm |
| _DTD | Dwell at final depth. 0 uses the value of DTB |
| _DIS1 | Clearance when re-entering the hole with VARI = 1. 0 calculates it automatically |
CYCLE84 rigid tapping
| Parameter | Meaning |
|---|---|
| DTB | Dwell at thread depth |
| SDAC | Direction of rotation after the cycle: 3, 4 or 5 |
| MPIT | Pitch given as metric thread size (3 for M3 up to 48 for M48). The sign sets the direction |
| PIT | Pitch as a value. The sign sets the direction |
| POSS | Spindle angle for the oriented stop at the start of the cycle |
| SST | Speed for tapping |
| SST1 | Speed for retraction |
| _PTAB | Unit of PIT: 0 as programmed system, 1 mm, 2 threads per inch, 3 inch per revolution |
MPIT and PIT are alternatives, only one of them is filled in.
CYCLE840 is used with a compensating chuck. SDR sets the direction for retraction (0 reverses automatically). ENC selects tapping with or without spindle encoder: 0 with encoder, 1 without encoder and feed programmed before the call, 11 without encoder and feed calculated by the cycle, 20 with encoder and dwell.
Modal call with MCALL
With MCALL in front of the cycle name, the cycle runs automatically after every following block with path motion. The MCALL block itself does not drill. MCALL without a name switches the modal call off, and so does a new MCALL with another subprogram. A subprogram called modally cannot contain another modal call.
G17 G90 G54
T5 M6
D1 S1600 M3 F140
G0 X0 Y0 Z50
MCALL CYCLE83(50, 0, 2, -30, , -8, , 3, 0, 0, 1, 1)
X20 Y10
X50
X80 Y30
MCALL
G0 Z100The cycle drills at X20 Y10, X50 Y10 and X80 Y30. The first infeed goes to Z−8, each further infeed is 3 mm shorter, and the drill retracts fully after each infeed (VARI = 1).
Hole pattern cycles
Pattern cycles only describe positions. They are combined with a drilling cycle that is called modally with MCALL before the pattern. Without an active modal drilling cycle, the control reports alarm 62100. The alarm can be acknowledged, and the pattern then only positions.
| Cycle | Call | Parameters |
|---|---|---|
| HOLES1 | HOLES1(SPCA, SPCO, STA1, FDIS, DBH, NUM) | Holes on a line. SPCA/SPCO reference point; STA1 angle of the line to the first axis; FDIS distance from the reference point to the first hole; DBH spacing; NUM number of holes |
| HOLES2 | HOLES2(CPA, CPO, RAD, STA1, INDA, NUM) | Holes on a circle. CPA/CPO center; RAD radius; STA1 angle of the first hole; INDA angle between two holes; NUM number of holes |
| CYCLE801 | CYCLE801(_SPCA, _SPCO, _STA, _DIS1, _DIS2, _NUM1, _NUM2) | Grid. _SPCA/_SPCO reference point; _STA angle to the first axis; _DIS1 column spacing; _DIS2 row spacing; _NUM1 columns; _NUM2 rows |
If INDA is left out, HOLES2 spreads the holes evenly over the full circle.
G17 G90 G54
T12 M6
D1 S900 M3
G0 X0 Y0 Z50
MCALL CYCLE84(50, 0, 2, -18, , 0, 3, , 1.5, 0, 400, 800)
HOLES2(0, 0, 40, 15, 60, 6)
MCALL
G0 Z100Six M10 threads on a circle with radius 40 mm. The first hole sits at 15°, the following ones every 60°. The spindle taps at 400 rpm and retracts at 800 rpm.
Milling cycles
| Cycle | Purpose |
|---|---|
| CYCLE71 | Face milling of a rectangular area |
| CYCLE72 | Contour milling along a contour subprogram |
| CYCLE73, CYCLE74, CYCLE75 | Pocket with islands from contour subprograms |
| CYCLE76 | Rectangular spigot |
| CYCLE77 | Circular spigot |
| CYCLE90 | Thread milling |
| POCKET1, POCKET2 | Rectangular and circular pocket (older versions) |
| POCKET3 | Rectangular pocket |
| POCKET4 | Circular pocket |
| LONGHOLE | Elongated holes on a circle |
| SLOT1 | Slots on a circle |
| SLOT2 | Circumferential slots |
| CYCLE60 | Engraving |
| CYCLE899 | Trochoidal milling and plunge milling of slots |
| CYCLE800 | Swivelling the working plane |
| CYCLE832 | High-speed settings |
POCKET3 rectangular pocket
POCKET3(_RTP, _RFP, _SDIS, _DP, _LENG, _WID, _CRAD, _PA, _PO, _STA, _MID, _FAL, _FALD, _FFP1, _FFD, _CDIR, _VARI, _MIDA, _AP1, _AP2, _AD, _RAD1, _DP1)| Parameter | Meaning |
|---|---|
| _DP | Pocket depth, absolute |
| _LENG, _WID | Length and width. A sign means the pocket is dimensioned from a corner |
| _CRAD | Corner radius |
| _PA, _PO | Reference point of the pocket |
| _STA | Angle between the pocket length and the first axis (0 to under 180°) |
| _MID | Maximum infeed depth |
| _FAL, _FALD | Finishing allowance on the wall and on the floor |
| _FFP1, _FFD | Feed in the plane and feed for the infeed |
| _CDIR | 0 climb milling, 1 conventional milling, 2 with G2, 3 with G3 |
| _VARI | Units digit: 1 roughing, 2 finishing. Tens digit: infeed 0 vertical with G0, 1 vertical with G1, 2 helical, 3 oscillating along the pocket axis |
| _MIDA | Maximum stepover in the plane |
| _AP1, _AP2, _AD | Blank size: length, width, depth from the reference plane |
| _RAD1 | Helix radius, or maximum ramp angle for oscillating infeed |
| _DP1 | Infeed per helix turn |
G17 G90 G54
T8 M6
D1 S3000 M3
G0 X0 Y0 Z20
POCKET3(20, 0, 2, -12, 80, 50, 6, 60, 40, 0, 4, 0.3, 0.2, 600, 200, 0, 21, 6, , , , 4, 2)Roughs a pocket 80 × 50 mm with 6 mm corner radius and 12 mm depth, centered on X60 Y40. Infeed 4 mm per pass on a helix with 4 mm radius and 2 mm pitch, stepover 6 mm, 0.3 mm left on the walls and 0.2 mm on the floor.
POCKET4 (circular pocket) uses the same scheme with _PRAD for the radius and _PA/_PO as center. Its _VARI has a thousands digit: 0 machines plane by plane, 1 mills the whole depth on a helix.
CYCLE71 face milling
CYCLE71(_RTP, _RFP, _SDIS, _DP, _PA, _PO, _LENG, _WID, _STA, _MID, _MIDA, _FDP, _FALD, _FFP1, _VARI, _FDP1)_PA/_PO is the start corner, _LENG and _WID the incremental size of the area (the sign selects the corner). _FDP is the run-out in cutting direction, _FDP1 the overrun in stepover direction. _VARI: units digit 1 roughing, 2 finishing. Tens digit 1 or 2 mills parallel to the first or second axis in one direction, 3 or 4 parallel to the first or second axis with alternating direction.
CYCLE800 swivel
CYCLE800(_FR, _TC, _ST, _MODE, _X0, _Y0, _Z0, _A, _B, _C, _X1, _Y1, _Z1, _DIR)CYCLE800 rotates the working plane on machines with swivel head or swivel table. The kinematics are stored in a swivel data set, which the machine builder sets up.
| Parameter | Meaning |
|---|---|
| _FR | Retraction before swivelling: 0 none, 1 Z axis, 2 Z then X/Y, 4 or 5 along the tool axis |
| _TC | Name of the swivel data set. “0” deselects it |
| _ST | Units digit: 0 new plane, 1 additive to the current plane. Higher digits control tool tip tracking and tool alignment |
| _MODE | How the angles in _A, _B, _C are interpreted (axis by axis, solid angle, projection angle or direct axis positions) |
| _X0, _Y0, _Z0 | Rotation point (offset before the rotation) |
| _A, _B, _C | Rotation angles |
| _X1, _Y1, _Z1 | Zero point offset after the rotation |
| _DIR | Preferred direction of the rotary axis when two solutions exist |
CYCLE832 high-speed settings
CYCLE832(_TOL, _TOLM)CYCLE832 sets the contour tolerance and the matching smoothing, compressor and dynamics settings for free-form machining. _TOL is the tolerance of the machining axes in mm (or degrees for rotary axes). _TOLM selects the machining type: roughing, semi-finishing, finishing, or 0 to return to the default settings. The machine builder can adapt what each type switches on.
CYCLE832(0.1, 1003) (Roughing, tolerance 0.1 mm)
CORE_ROUGH
CYCLE832(0.005, 102001) (Finishing, tolerance 0.005 mm)
CORE_FINISH
CYCLE832(0, 0) (Default settings)Turning cycles
| Cycle | Purpose |
|---|---|
| CYCLE93 | Grooving |
| CYCLE94 | Undercut form E and F (DIN 509) |
| CYCLE95 | Stock removal along a contour |
| CYCLE96 | Thread undercut (DIN 76) |
| CYCLE97 | Thread cutting |
| CYCLE98 | Chained threads |
| CYCLE950 | Extended stock removal with blank contour |
CYCLE95 stock removal
CYCLE95(NPP, MID, FALZ, FALX, FAL, FF1, FF2, FF3, VARI, DT, DAM, _VRT)| Parameter | Meaning |
|---|---|
| NPP | Name of the contour subprogram, or a program section given by labels |
| MID | Infeed depth |
| FALZ, FALX | Finishing allowance in the longitudinal and in the facing axis |
| FAL | Finishing allowance following the contour |
| FF1 | Feed for roughing |
| FF2 | Feed for plunging into undercuts |
| FF3 | Feed for finishing |
| VARI | Machining type, see table |
| DT | Dwell for chip breaking during roughing |
| DAM | Path length after which each roughing cut is interrupted to break the chip |
| _VRT | Lift-off from the contour during roughing |
| VARI | Machining |
|---|---|
| 1 | Roughing, longitudinal, outside |
| 2 | Roughing, facing, outside |
| 3 | Roughing, longitudinal, inside |
| 4 | Roughing, facing, inside |
| 5 to 8 | Finishing, same order as 1 to 4 |
| 9 to 12 | Roughing and finishing, same order as 1 to 4 |
Adding 200 (201 to 212) switches off the cleanup cut along the contour after each roughing pass. Residual corners can then remain, depending on tool radius and infeed. In longitudinal machining the infeed is in the facing axis, in facing it is in the longitudinal axis. Outside machining feeds in negative direction, inside machining in positive direction.
G18 G90 G54 G95
T1 D1 S1200 M4
G0 X80 Z5
CYCLE95("SHAFT_CONTOUR", 2, 0.1, 0.2, , 0.3, 0.15, 0.08, 9, , , 1)
G0 X150 Z100Roughs and finishes the outside contour from the subprogram SHAFT_CONTOUR longitudinally, with 2 mm infeed and allowances of 0.1 mm in Z and 0.2 mm in X.
CYCLE97 thread cutting
CYCLE97(PIT, MPIT, SPL, FPL, DM1, DM2, APP, ROP, TDEP, FAL, IANG, NSP, NRC, NID, VARI, NUMT, _VRT)| Parameter | Meaning |
|---|---|
| PIT / MPIT | Pitch as a value, or as metric thread size (3 to 60) |
| SPL, FPL | Start and end point of the thread in the longitudinal axis |
| DM1, DM2 | Diameter at start and end point (different values give a taper thread) |
| APP, ROP | Run-in and run-out path |
| TDEP | Thread depth |
| FAL | Finishing allowance |
| IANG | Infeed angle. Positive: infeed along one flank. Negative: alternating flanks |
| NSP | Start angle offset of the first thread |
| NRC | Number of roughing cuts |
| NID | Number of spring passes |
| VARI | 1 outside, constant infeed depth; 2 inside, constant infeed depth; 3 outside, constant chip cross-section; 4 inside, constant chip cross-section |
| NUMT | Number of thread starts |
| _VRT | Retraction above the start diameter |
G18 G90 G54 G95
T3 D1 S800 M4
G0 X40 Z10
CYCLE97( , 30, 0, -28, 30, 30, 6, 2, 2.15, 0.05, 29, 0, 6, 1, 3, 1, 1)
G0 X100 Z100External thread M30 (pitch 3.5 mm taken from MPIT) over 28 mm length, 6 roughing cuts at constant chip cross-section, 0.05 mm finishing allowance and one spring pass.