1 of 28

Canned Cycles

2 of 28

What Are Canned Cycles

Canned cycles are G-Code commands that take certain repetitive machining tasks and break them into their logical elementary parameters.

For instance: a Peck Drilling Cycle

Instead of issuing commands for each movement of the tool, the programmer can ask for a peck cycle and just give the hole depth and peck distance.

3 of 28

G83 Peck Drilling

Also takes G98/G99

G98 retracts to last Z start

G99 retracts to R plane

4 of 28

Peck Parameters

Q - Constant Peck Amount (always incremental)

Or

I - First Peck

J - Reduction per pass

K - Minimum

5 of 28

Modal

NOTE: Canned cycles are modal. They will stay active until cancelled.

Z0.5

G81 X1.0 Y1.0 R0.1 Z-1.0 F50. G98 Hole 1

X3.0 Hole 2

X2.0 Y2.0 Hole 3

G80

6 of 28

G98/G99 Option

G98 is active by default

  • Retracts to last Z move before drilling

G99 must be specified

  • Retracts to specified R value

7 of 28

Lathe Canned Cycle (G71)

8 of 28

Lathe Canned Cycles

G71 - Stock Removal Cycle

D - Depth of cut for each pass

F - Feed rate to use within the PQ block

I - X Axis roughing allowance

K - Z Axis roughing allowance

P - Starting block number of path to rough

Q - Ending block number of path to rough

S - Spindle speed to use within the PQ block

T - Tool and offset to use within the PQ block

U - X Axis finish allowance

W - Z Axis finish allowance

9 of 28

HAAS Example (see lathe manual p.208)

10 of 28

Another example

11 of 28

G53

G53 refers to the machine CSYS.

But it is TEMPORARY

(non-modal)

12 of 28

Type I and II Cycles

Type I - Monotonic

Can not have increasing/decreasing x values

Type II - Nonmonotonic

Can not have increasing/decreasing x values

First block with X only is Type I

First block with X and Z is Type II

13 of 28

Troubleshooting G71 Video

14 of 28

Other Canned Lathe Cycles

G70 - Finish cycle to clean up a path that has been roughed already.

G72 - End Face Stock Removal

G73 - Irregular Path Stock Removal

G76 - Threading Cycle, Multiple Pass

G80 - Canned Cycle Cancel

15 of 28

Lathe Canned Drilling Cycles

G81 - Drill Canned Cycle

G82 - Spot Drill Canned Cycle

G83 - Peck Drill Canned Cycle

G84 - Tapping Canned Cycle

G85 - Boring Canned Cycle

16 of 28

Programming with Excel

17 of 28

Programming with Excel

Why?

  • Accessible
  • Widely used
  • Inexpensive
  • Powerful
  • Fast
  • Can bypass CAD step altogether
  • Can build in process/code knowledge and standards
  • Good In-between technology for companies with families of similar customizable parts.

Video Lecture of this part

18 of 28

19 of 28

20 of 28

One Caveat:

Be sure your code works for ALL cases.

For example: If a user enters .5, the code generated may be:

G1 X0.5 ← OK!

But if they enter 1.0, the code generated may be:

G1 X1 ← WRONG!

Extraordinarily important slide

21 of 28

22 of 28

%

(Begin Header)�(SEE THE NOTE WHERE YOU GOT THIS)

(DON’T USE THIS CODE, USE THE CODE ON ELEARN)

G20 (Inch Mode)

G40 G17 G80 (comp cancel, plane, camp cancel)

T10 (Tool Number)

M06 (Tool Change)

G43 H10 (Length comp ON, Offset NO)

G54 (Part Zero Origin)

S1000 (Spindle Speed RPM)

M09 (Coolant Off)

G90 (Absolute)

M03

(End Header)

G00 Z1.7500

F10.0

G83 X2.0000 Y3.0000 Z-0.5751 R0.25 G99 P0.50 Q0.75 (Hole #1)

X2.0000 Y2.0000 Z-0.5751 G99 (Hole #2)

X2.0000 Y1.0000 Z-0.5751 G98 (Hole #3)

X7.0000 Y1.0000 Z-0.5751 G99 (Hole #4)

X7.0000 Y2.0000 Z-0.5751 G99 (Hole #5)

X7.0000 Y3.0000 Z-0.5751 G98 (Hole #6)

X12.0000 Y3.0000 Z-0.5751 G99 (Hole #7)

X12.0000 Y2.0000 Z-0.5751 G99 (Hole #8)

(Begin Footer)

G80 G00 Z6.0000

M30

%

Note: For assignment use code on e-courseware

23 of 28

Peck Drilling Assignment

24 of 28

25 of 28

Can be used as alternatives to Canned Arrays (Mill G70-G72)

26 of 28

Verify with

AutoCAD Script...

27 of 28

In the absence of detector arrays, a single pixel coupled with a spatially selective mask has been shown to be a practical solution to imaging problems in the terahertz and sub-millimeter wave domains. In this paper we demonstrate real-time two-dimensional imager for sub-millimeter waves that is based on a spatially selective image plane mask. The imager consists of a heterodyne source and receiver pair, image forming optics, a spatially selective mask, data acquisition hardware, and image reconstruction software. The optics form an image onto the spatially selective mask and linear measurements of the image are made. The mask must be designed to ensure maximum transmission, measurement linearity, and measurement to measurement independence and our design parameters are presented.

28 of 28

G71

Lathe Example