CNC Canned Cycles – Turning
Ever wondered how a programmer manages to code when the same repetitive task has to be done multiple times? Rewriting the same code, again and again, is definitely not the solution! Read this blog to know more about a repetitive turning job is done using canned cycles.
Assume we need to do a turning job and reduce the diameter of a spindle from 80mm to 60mm and the length of the spindle is 10 cm. Assuming that the depth of cut is 1 mm, to finish this job, we need run 20 cycles and hence 60 lines of code need to be written! That’s too much! Here’s where canned cycles come into play.
A canned cycle, also known as a fixed cycle, is a combination of repetitive CNC machine movements that perform operations like turning, drilling, milling, boring, and tapping. Using a canned cycle simplifies the code by using a single block with a G-code to specify the machining operations which usually require multiple blocks. Like in the previous example instead of running 60 long lines of code, we can simply replace it with a canned cycle and finish the job with just 6 lines of code! The code would look like this –
N10 T104 M06
N20 G97 S2000 G95 F0.1 M03
N30 G00 X60 Z2 M08
N40 G01 Z-102
N50 G01 X70
N60 G00 X200 Z200 M09
Canned cycles are used in electronic instruments, making the holes on the complex parts of air crafts and aerospace component manufacturing, optical or mold-making industry as they are very helpful when tasks have to be repeated and reduce human effort by a significant amount.
The G-code for Canned Cycle for Turning is G71. Its function is Rough Turning Cycle. It can be used whenever a repetitive turning job has to be done.
Still at student, Arya is going to studying Mechanical Engineering at The University of Illinois at Urbana Champaign. He aspires to be an entrepreneur in the future, and is an intern right now at Text and Clicks. He is very enthusiastic and hard working, and loves adventure.