(Face off the stock) (Turn the stock OD to the major diameter) (Set Z 0 so the threading tool tip is at the face) G0 X 0.3449 Z 0.2000 G76 P 0.0500 Z -0.5000 I -0.1000 J 0.0080 K 0.0627 Q 29.50
The command format is: Figure 1 shows the essential features of the tool path of one loop of a G76 cycle. A complete threading operation is made up of one or more loops. A cycle start location is the location of the tool control point (CP) when G76 is invoked, point A in the figure. The rest of the loop path is based on this initial position and is not explicitly called out in the G76 command. The first move is marked 1 and moves from A to B. The next move, leg 2 is B to C and is synchronized with spindle position and not at a feed rate. (The blue highlight emphasizes this feature of leg 2.) Next is a retract move, leg 3. Leg 4 is a move to the start of the next loop. The complexity of this canned cycle is in applying this basic path to the various thread configurations, such as: internal or external threads, right hand, left hand, tapered threads, plus catering to the machine configuration and dynamics. |
Figure 1 |
Parameter Descriptions
|
Figure 2 |
||
Figure 3 |
|||
Optional Parameters If these parameters are missing in the command line, they are set to the default values listed below. If the parameter letter is used but a value is not included, this produces an error.
An error message will be presented and execution of G76 prevented if:
The tool will pause at the start of the synchronized path until the spindle's index triggers motion. A heavy cut may result as the tool rapids to and waits at the start if there is material at this location. To prevent this the path is usually set to start away from the workpiece. If an entry end taper is specified, the synchronized path starts earlier at a location intended to be the OD of the stock on the last pass, so usually has clearance. Once synchronization is triggered, it takes a short distance for the motion to stabilize, so the start should also be away enough to allow motion to stabilize before cutting starts on the workpiece. The end of the synchronized path can also have problems in that a rapid retract is started immediately at the end. This produces a cut that ramps away dependent on the rapid rate rather than spindle position. If the spindle speed changes between passes the ramp shape will change and can produce a heavy cut. Keeping the spindle speed constant for all passes, or using an exit taper, or removing material at the end of the thread can prevent this problem. Leg 4 (Figure 1) is intended to be a tool clearance path. Motion on this path should be set to be safe from hitting the workpiece on the front of the tool and also safe from obstacles on the back side of the tool and tool holder. Travel beyond the tool clearance may be a problem in tight places such as with internal threads. An issue is that the synchronized path shape is set by the final pass and is used from the first to last passes. If end tapers are used with a short tool clearance, I less than K (Figure 8), the tapers can go beyond the clearance, so use caution. |
Figure 4 Figure 5 Figure 6 Figure 7 Figure 8 |
||
A Basic Example1/4-20 UNC 2A x 1/2"The associated G-code might look like this: (Face off the stock) (Turn the stock OD to the major diameter) (Set Z 0 so the threading tool tip is at the face) G0 X 0.3449 Z 0.2000 G76 P 0.0500 Z -0.5000 I -0.1000 J 0.0080 K 0.0627 Q 29.50 |
|||
Starting with the last pass and working out, and using the 1/4-20 specifications:
For this example, let's say the 60 degree tool has a .0063 wide flat (Root Width) on the tip. h = 0.0063 * 0.8660 = 0.0055 For the pitch line width of P/2:
The pitch diameter for a 1/4-20 thread is 0.2146. I, tool clearance, and J, first depth of cut, are fairly arbitrary and don't require math to set. Add I to the major diameter to get the the start X for the G0 move in the G-code above Another way to do this using a micrometer and a test workpiece is to cut a feature on the test piece that indicates where the pitch line is on the tool. The process is to cut a smooth diameter on the test piece. Measure it with a micrometer and jot down the value. Next, touch-off the threading tool tip to the test piece (See area A in Figure 10) and enter the touch-off value (plus the gauge width if used). The X DRO will now indicate the control point diameter which is our temporary pitch diameter. Position the tool close to the end of the workpiece, zero the Z position, make a cut about P/4 into the workpiece (See area B in Figure 10), jot down the X value, retract, jog accurately over P/2 in Z, make another cut at the same depth as the first cut. Inspect the flat between the grooves (labeled C in Figure 10) with a loupe. Repeat the pair of cuts, making sure to make them at equal depths until the flat just comes to a point. Record the depth and subtract from the touch-off value. The result is the diameter depth between the tool tip and the pitch line. (Divide by 2 to get the radial depth if needed.) |
Figure 9 Figure 10 |