Originally Posted by
Titaniumboy
Here is a sample of rigid tapping G-code from the Pulsar manual if you are working under Mach 3 (or without encoder feedback under other Controller software). Sorry about the lousy formatting. I couldn't figure out how make the code more readable.
(Novakon Rigid Tapping)
M6 T130 (Call the Tool Change for the ½-13 tap.)
G43 H130 Set the machine offset for the ½-13 tap.)
M08 (Turn on the coolant – DO NOT turn ON the spindle.)
G84 G98 X0.0000 Y0.0000 F150.0000 (Implement the Canned Rigid Tap Cycle, move to first hole at X = 0.0, Y = 0.0 and set the tapping Feed Rate to 150 inches per minute.)
Z0.0000 (Lower the tap to the top of the hole.)
G91 (Implement the Novakon Rigid Tapping Cycle.)
G01 (Use the specified Feed Rate to tap the hole.)
Z-1.0000 A13.0000 (Rotate the spindle clockwise 13.0000 revolutions as the tap is lowered one inch at the specified Feed Rate. If you are using BobCAD, it will automatically calculate the correct tpi.)
Z1.0000 A-13.0000 (Rotate the spindle counterclockwise 13.0000 revolutions as tap is raised one inch at the specified Feed Rate.)
G90 Z0.2000 (Implement the Absolute Distance Mode and move the tap 0.2 inches above hole.)
X1.0000 (Move to the second hole at X = 1.0 and Y = 0.0.)
Z0.0000 (Lower the tap to the top of the hole.)
[I think the sample code forgot to put a G91 here]
Z-1.0000 A13.0000 (Rotate the spindle clockwise 13.0000 revolutions as the tap is lowered one inch at the specified Feed Rate.)
Z1.0000 A-13.0000 (Rotate the spindle counterclockwise 13.0000 revolutions as tap is raised one inch at the specified Feed Rate.)
G90 Z0.2000 (Implement the Absolute Distance Mode and move to the tap 0.2 inches above hole.)
G80 (Cancel the Novakon Rigid Tapping Cycle.)
M09 M05 (Turn OFF the coolant and the spindle.)
M30 (End of program.)
%