Canned cycle

This article is about special codes that act like a macro in numerical controlled machines. For a general description of Numerical control, see Numerical control.

A canned cycle is a way of conveniently performing repetitive CNC machine operations. Canned cycles automate certain machining functions such as drilling, boring, tapping, pocketing, etc...[1] Canned cycles are so called because they allow a concise way to program a machine to produce a feature of a part.[2] A canned cycle is also known as a fixed cycle. A canned cycle is usually permanently stored as a pre-program in the machine's controller and cannot be altered by the user.

Programming format

The operation of a CNC machine tool is typically controlled by a "part program" written a language known as G-code. [3] Canned cycles are similar in concept to functions in a traditional computer language, and can be compared also to G-code macros. The format for a canned cycle consists of a series of parameters specified with a letter and a numerical value. The letter is referred to as an "address". (This use of the term "address" may be unfamiliar to programmers of conventional computers. It arises because in early and primitive machine controllers, the binary representation of the letter formed a physical address at which the controller would store the value following.)

N.. G.. G.. X.. Y.. R.. P.. Q.. I.. J.. Z.. F.. H.. S.. L.. A.. B.. C.. D..[2][4]

These addresses and values tell the machine where and how to move. The syntax of a canned cycle may vary depending on the brand of the control. In general, the following "words" will be in a canned cycle "block".

A, B, C and D are used for Rectangular pocket machining.

G80 is used for cancelling the currently selected canned cycle as G-codes for canned cycles are modal.

If the machine control supports it, the user may create their own custom canned cycles. As there are numbers not already used for G-codes,[5] new canned cycle programs can be stored at these vacant locations. This may be done on the popular Fanuc control with a technique referred to as "macro programming", after the Fanuc Macro-B language. (The term "Macro programming" in this sense is distinctly different from its more common use to refer to the action of programming a macro in G-code.)

Fanuc controllers (and most others, because Fanuc compatibility is a de facto standard) support the following fixed cycles:

Source: Smid 2008[2]

G73 High speed peck drilling cycle
G74 Left-hand tapping cycle
G76 Precision boring cycle
G80 Cancel any fixed cycle
G81 Drilling cycle
G82 Drilling cycle with dwell
G83 Peck drilling cycle
G84 Right-hand tapping cycle
G85 Boring cycle
G86 Boring cycle
G87 Back boring cycle
G88 Boring cycle
G89 Boring cycle

Advantages

The conciseness of canned cycles allows for quicker and easier development of programs at the machine.

As canned cycles reduce the number of blocks in a program, the storage space occupied by the program is less and the programmer escapes the tedium of writing the same instructions again and again. This reduces the potential for errors, and locating any errors that do exist is easier in a shorter program.

Job setup is also facilitated by canned cycles. Some canned cycles exist which are designed for use by machine tool operators for simple job set-up and measuring tasks.

See also

References

  1. Omirou, Sotiris L. (Feb 2009). "An epitrochoidal pocket—A new canned cycle for CNC milling machines". Robotics and Computer-Integrated Manufacturing. 25 (1): 73–80. doi:10.1016/j.rcim.2007.09.003. Retrieved 20 March 2015.
  2. 1 2 3 Smid 2008.
  3. Omirou, Sotiris L. (Nov 2003). "Space curve interpolation for CNC machines". Journal of Materials Processing Technology. 141 (3): 343–350. doi:10.1016/s0924-0136(03)00286-3. Retrieved 23 March 2015.
  4. Farouki, Rida T (Jan 1999). "G codes for the specification of Pythagorean-hodograph tool paths and associated feedrate functions on open-architecture CNC machines". International Journal of Machine Tools and Manufacture. 39 (1): 123–142. doi:10.1016/s0890-6955(98)00018-2. Retrieved 23 March 2015.
  5. EIA standards, RS-274-D "Interchangeable variable block data format for positioning, contouring, and contouring/positioning numerically controlled machines", American National Standards Institute, Washington D.C.

Bibliography

This article is issued from Wikipedia - version of the 12/3/2016. The text is available under the Creative Commons Attribution/Share Alike but additional terms may apply for the media files.