For the most part, CNC controls will follow the instructions given in a
program to the letter. With the exception of basic syntax (program
formatting) mistakes, the CNC control will rarely be able to tell if a
mistake has been made.
For the most part, CNC controls will follow the instructions given in a program to the letter. With the exception of basic syntax (program formatting) mistakes, the CNC control will rarely be able to tell if a mistake has been made. While verifying any new program, the operator must be ready for anything. If, for example, the programmer made a mistake which tells the control to drive a tool at rapid into the workpiece, the control will follow the commands causing what is commonly referred to as a crash.
With a manually prepared program, just about anything could be wrong. The manual programmer might have meant to type X but instead typed Z. In this case, the resulting motion the machine makes will be totally unexpected. Literally every command in a manually prepared program may have a mistake and should be treated as suspect.
If a computer-aided manufacturing (CAM) system was used to prepare the CNC program, the basic syntax of the program will usually be correct. The basic motion commands the control is given should also be correct. However, even CAM generated programs will not be perfect. While they tend to be more correct than manually generated programs, problems could still exist with feeds, speeds, workholding, depth of cut, and so on. Conversationally generated CNC programs should be treated with the same respect as CAM generated programs. Keep in mind that even perfect programs will behave poorly if mistakes are made during setup such as with tool length measurements or the program zero measurement.
We cannot overstress the need for safe procedures when working with CNC equipment. While we are not trying to scare the beginner, we want to instill a high level of respect for this very powerful and potentially dangerous equipment.
There are three levels of priority that you should always adhere to when working with any machine tool.
Before discussing the actual techniques to verify programs, let's first examine the kinds of mistakes the programmer tends to make that will cause a program to fail. Knowing these common mistakes will help you diagnose problems as they occur.
Now that you have an idea of the kinds of things to watch out for, let's discuss the actual procedures to verify programs. One technique you will want to get in the habit of using has to do with the feed hold button. Every time you press the cycle start button to activate the program, always have a finger resting on the feed hold button. If an unexpected rapid motion takes place, you will not have to go looking for the feed hold button. Your finger will be ready to press it. No matter what you are doing, until you have the program verified, use this technique. We guarantee it will save a crash some day!
All CNC machines that have a conditional switch labeled machine lock allow this procedure. It allows the control to scan the program for syntax mistakes. Once the setup is made and all information related to the program is entered into the control (tool offsets, program zero, etc.), the operator will turn on the machine lock and dry run switches and will also turn up the dry run motion switch (usually feed rate override or jog feed rate) to its highest position to allow the control to move quickly through the program.
When the cycle is activated, the control will quickly scan the program for syntax mistakes. During the program's execution, the spindle will come on, the turret will index, and the control will appear to be actually running the program. However, the axes (X, Y, and Z) will not move.
This procedure allows the operator a relaxed way of ensuring the control can execute the program. Once the operator has confirmed that no axis motion is occurring (machine lock is truly on), they can rest easy until one of two things happens. Either the control will generate an alarm or it will complete the program without generating an alarm.
If the control finds a syntax mistake in the program and generates an alarm, the operator must diagnose the alarm, fix the problem and execute the program again. This must be repeated (with machine lock on) until the entire program can be executed without generating alarms.
When the control completes the execution of the entire program without generating an alarm, the operator will know that the control can accept the program. While there still may be serious motion mistakes within the program, at least the program can be executed from beginning to end without generating an alarm.
If a CAM system is used to prepare the CNC program, this procedure should not be required since there should be no syntax mistakes in the CNC program.
Once the machine lock dry run procedure has been successfully completed, the operator is ready to allow the program to cause axis motion. However, there could still be very serious mistakes in the program. In fact, the main reason for doing a free flowing dry run is to check for motion problems. The operator must be very careful indeed. At this time, the workholding setup has been made, but no workpiece is in position.
To execute this procedure, the operator will turn off the machine lock switch, turn down the dry run motion rate switch (typically jog feed rate) to its lowest position, and set the rapid override switch to its slowest motion rate. When the cycle is activated, the operator must have a finger ready to press the feed hold button.
With the jog feed rate switch set to its lowest position, the axes will barely creep along. As the operator increases the setting on this switch, the axes will move faster. The operator will increase the motion rate to a comfortable setting.
As each tool comes close to the workpiece or workholding device, the dry run motion rate can be turned down. If the operator is worried and wants to check something, the feed hold button can be pressed to temporarily stop the cycle. After pausing, pressing the cycle start button gets the machine moving again. If the operator wishes to cancel the cycle due to a motion mistake in the program, after pressing feed hold, the reset key can be pressed, the machine can be sent back to its reference point, and the problem can be corrected.
Aside from severe problems, the operator must also check for less serious problems. For example, the operator must check that the spindle is rotating in the correct direction for each tool and that basic motions the program generates appear to be correct.
In many cases, the operator will not be quite sure the program is correct
after doing only one free flowing dry run. The first time the program is executed in this way, the operator may be so concerned with serious mistakes that could cause damage to the machine, they pay little attention to the details of each movement. For this reason, many times the free flowing dry run must be repeated several times until the operator is satisfied that the motions are correct.
It is possible that the free flowing dry run will cause the machine to go into alarm state even though a machine lock dry run has been completed. Axis overtravels and problems related to offsets and other forms of compensation are among the things that can generate alarms in such a case.
Before actually trying to run the first workpiece, there is one more important procedure to follow. The operator must execute the cycle one more time with the dry run switch turned off (and no part in position). This will allow the operator to see one thing that could not be seen during a free flowing dry run. The free flowing dry run allowed the operator to take control of all motion rates with the dry run motion rate switch. This means when dry run is turned on, the operator will not be able to tell the difference between rapid motions and cutting motions. They all appear the same.
Here is an example of a problem the normal air cutting cycle will allow the operator to correct. Suppose the programmer rapids a drill up to the workpiece to drill a hole. But in the command to drill the hole, the programmer leaves out the G01 word by mistake. Since the machine is currently in the rapid mode, the hole would be drilled at rapid, breaking the drill and possibly injuring the operator. For this reason, we recommend running the program one more time as if a part were being machined, but without a part in position. This way the operator can confirm that the machine is rapiding where it is supposed to and machining where it is supposed to.
For extremely long cycles, the operator can toggle the dry run switch on and off. Once the operator is sure the current command is a cutting command, he can temporarily turn on the dry run switch to allow the balance of the command to be completed quickly. Then, dry run can be turned off again. Repeating this technique allows the operator to go through a lengthy program quickly, yet assure the cutting commands are where they are supposed to be.
At long last, the operator is finally ready to run the first workpiece. Yet each tool in the program includes at least one movement that poses a potentially dangerous situation. Most programmers rapid each tool within 0.100 inch of the workpiece surface before machining. This very small distance is impossible to check during the previous verification procedures. For this reason, the operator must be very careful with each tool's first approach to the workpiece. Also, if the tool rapids several times to different surfaces, the operator must be cautious with these motions as well.
For this reason, we recommend turning on dry run and single block during each tool's approach to the workpiece and during rapid motions to new machining surfaces. With dry run and single block on, the operator will have control of the motion rate during each tool's approach. As the tool gets close to the surface to be machined, the rate can be turned down to a very slow rate. And, since single block is on, the operator can rest assured the motion will stop at the end of the command. When the motion stops, the operator can check the clearance approach amount (usually 0.100 inch). If everything appears to be correct, the operator can turn off the dry run switch (never machine with dry run on!) and leave single block on. At the end of each command, the motion will stop and the operator will press the cycle start button to continue to the next command. When the coming command is a rapid move to another clearance position, the operator can turn on dry run to take control of the motion rate again. This procedure is repeated for every tool in the program.
On most controls, there is a position display that will help during each tool's first approach movement. It is commonly called the distance to go page. This page will show how much further a motion is going to be. For example, say the tool is currently approaching the workpiece. Motion is slowed by dry run and the operator has single block turned on to ensure that the machine will stop before cutting. As the tool comes within about 0.500 inch or so, the operator gets worried. He or she is concerned that the tool may not stop before it hits the workpiece, so feed hold is pressed to stop motion. At this point, the operator can check the distance to go. This distance can be compared to the tool's actual position relative to the workpiece.
The above discussions had operator safety as the primary concern. Yet the operator must also make good parts. While machining the very first workpiece, there are things the operator can do to ensure the first workpiece will come out to size.
If the operator considers what each tool is going to be doing during its machining operation, the tool offsets can be adjusted in a way that forces the tool to leave excess stock on the surface being machined. After machining with the trial offset, the machined surface can be measured and the operator will know exactly how much stock is yet to be machined. The offset can be adjusted accordingly, and the tool can be rerun. This time the tool will machine precisely to size. This sequence can be repeated for each tool in the program to assure that the first part will come out to print dimensions.
Here's the procedure again in list form:
Once the first part has been successfully completed, the operator is ready to run the production quantity of work-pieces. It may be wise to keep the machine from rapiding for the first few workpieces with rapid override until the operator is comfortable with the cycle.
If many workpieces must be run, it is worthwhile to monitor the first few parts being run. Many times the operator will find areas of the program that can be improved to minimize cycle time. Also, cutting conditions (feeds and speeds) can be adjusted to improve cycle time or lengthen tool life. However, if major changes are made in the program during optimizing, we recommend verifying the program again.
While the verification procedures we have given may seem like a great deal of work, we urge the beginner to use them. While it does take time it can easily be justified when compared to the possible consequences. Without verification procedures, CNC machining centers are very dangerous to operate. Even if no operator injury occurs during a crash, the time and expense during machine repair easily justifies being cautious while new programs are checked out.
It is common that a beginning operator is very cautious with the unfamiliar CNC machine. But after gaining experience, the operator becomes a little over confident. Then the operator starts short cutting the verification procedures. This is where problems begin. We liken this to a person learning how to snow ski. At first, the beginning skier is very concerned about hurting himself. No tricks or hot dogging are attempted. But after gaining confidence, the skier may attempt to do more than they are capable of. This is how legs get broken. The same can be said for the beginning CNC operator. As you gain confidence, you may be tempted to forego a procedure you would have done as a beginner. Watch out!blog comments powered by Disqus
If you already know basic machining practice as it relates to the CNC machine you will be working...
This concept examines the sequences of operation of a CNC machine by way of reference material re...
Effectively commanding motion on most CNC machines requires more than describing how the CNC mach...
This concept introduces the three basic modes of operation, presents examples of when they are us...
This perspective for a good programmer is a practical one, since the CNC operator must understand...
Simplicity and consistency are the hallmarks of good programming.
Presented here are three methods of developing CNC programs, manual programming, conversational (...
Though the thrust of this presentation is to teach you CNC usage, it helps to understand why thes...
Though applied for different reasons on different machine types, all forms of compensation allow ...