3 Mistakes That Cause CNC Programs to Fail
Despite enhancements to manufacturing technology, there are still issues today that can cause programs to fail. These failures can cause lost time, scrapped parts, damaged machines and even injured operators.
Share
Hwacheon Machinery America, Inc.
Featured Content
View MoreAutodesk, Inc.
Featured Content
View MoreTakumi USA
Featured Content
View MoreModern CNCs are much more forgiving than their early predecessors. In the old days, everything had to be just so. Before program formatting enhancements, programmed values required fixed formats (without decimal points), circular commands required cumbersome directional vectors (instead of simple radius specifications) and every command had to contain the same number of characters (before word address programming). Before tool length compensation, programmers had to know the exact length of every tool for a program could be created. Before floating zero, all coordinates had to be specified in incremental mode. And before absolute position encoders, every axis had to be in a planned starting position before the program could be run. The list of simplifying enhancements over the years is a lengthy one.
Even with all the improvements, there are still issues today that can cause programs to fail. These failures can cause lost time, scrapped parts, damaged machines and even injured operators. Three things to watch for are: (1) program formatting mistakes, (2) process mistakes and (3) setup mistakes.
While modern CNCs are quite flexible, there are still issues that will keep you from being able to load or run them. With a FANUC CNC, for example, the letter O is used to specify a program number. Simply mistaking the letter O for the number 0 in a program, which is a common beginner’s mistake, will make the CNC stop loading the needed program and start loading another program whenever a letter O is encountered. A similar mistake that can lead to program loading issues is mistaking the lower-case L (l) for the number 1.
Once a program is successfully loaded into the CNC memory, there are still syntax mistakes that will generate errors when the program is executed. Leaving out the radius designator (usually an R word) in a circular motion command is one of many examples.
With currently available program preparation methods, there is really no excuse for having program formatting issues at the machine. Properly configured computer-aided manufacturing (CAM) systems and tool-path plotters can verify that G-code programs will load properly and, once loaded, that they will run without generating errors.
Inconsistencies in programming methods can also lead to problems at the machine. Many CNC features can be handled in multiple ways. With tool length compensation, for instance, the tool length offset can represent the cutting tool length or the distance from the tool tip to the Z-axis program zero surface. Offset entries must match the chosen method. Choose one method and stick to it for all cutting tools in a program, programs running on a given machine and machines used by the company.
In similar fashion, cutter radius compensation allows the programming of either the cutter’s centerline path or the work-surface path — and offset entries must be appropriate to the chosen method. Again, pick the method that best suits your company and stick with it.
Next up are process mistakes. The manufacturing process encompasses anything that affects how components are produced. Of special importance to multi-tool, metal-cutting CNC machines like machining centers and turning centers is the order by which machining operations are performed. One common rule of thumb is that all roughing operations should be done prior to any finishing operations. Breaking this rule often results in a process that will not consistently allow the production of acceptable workpieces.
While not something that will cause a program to fail, a poor process can lead to inefficiencies. Cutting tool and fixture selection must relate to the number of workpieces being produced. What is appropriate when running a lot of fifty workpieces probably will not be efficient enough when running thousands of workpieces.
Another process-related issue that can cause program issues is the improper selection of cutting conditions, including depths of cut, speed and feedrate. If cutting conditions are too aggressive, of course, cutting tools will wear out quickly or break. If they are too conservative, efficiency will suffer.
Finally, consider setup mistakes. There are many things a setup person does while getting the machine ready to run a job that affect the way a program will run. This means that even a proven program (one that has been successfully run many times before) will fail if mistakes are made during setup.
Many setup mistakes may be obvious, like fixture/jaw/clamp placement and cutting tool assignments. If they go undetected during the program’s verification, however, the results could be disastrous.
Other setup mistakes are related to offset settings. For machining centers, the lengths of all cutting tools must be properly measured and entered into corresponding tool length compensation offsets. Likewise, the radius of all side-cutting end mills must be measured and entered into corresponding cutter radius compensation offsets. Program zero assignment values must be properly determined and entered into work coordinate system setting offsets. Similar offset entries must be correctly done when making turning center setups.
Related Content
2 Secondary Coordinate Systems You Should Know
Coordinate systems tell a CNC machine where to position the cutting tool during the program’s execution for any purpose that requires the cutting tool to move.
Read MoreStrange But True: Odd Things That Happen With CNCs
These oddities in the way a CNC naturally behaves can help explain some rather unusual situations that may occur during machining.
Read MoreA Spiral Milling Custom Macro Using Constant Contouring Feedrate
Helical milling or “spiral” milling are helpful when machining a circular pocket that is much larger than the milling cutter diameter.
Read MoreHelp Operators Understand Sizing Adjustments
Even when CNCs are equipped with automatic post-process gaging systems, there are always a few important adjustments that must be done manually. Don’t take operators understanding these adjustments for granted.
Read MoreRead Next
Setting Up the Building Blocks for a Digital Factory
Woodward Inc. spent over a year developing an API to connect machines to its digital factory. Caron Engineering’s MiConnect has cut most of this process while also granting the shop greater access to machine information.
Read MoreBuilding Out a Foundation for Student Machinists
Autodesk and Haas have teamed up to produce an introductory course for students that covers the basics of CAD, CAM and CNC while providing them with a portfolio part.
Read More5 Rules of Thumb for Buying CNC Machine Tools
Use these tips to carefully plan your machine tool purchases and to avoid regretting your decision later.
Read More