The processing of threaded holes in parts vertical machining processing is very common, and in the machinery industry, it is very common as a threaded connection between parts. It is very necessary to understand the processing of threaded holes. Before processing, we must first understand the basic composition of the threaded hole. From the mark of the thread, we can know that it is composed of the aperture and the pitch. Before processing, we must first select the tools, including the drill for processing the bottom hole of the thread and the tap for processing the corresponding thread.
![]()
As a beginner, we must first know the size of the threaded bottom hole and the selection of related cutting parameters before processing the threaded hole.

The programming command for tapping is G84. In this tapping cycle, when it reaches the bottom of the hole, the spindle rotates in the opposite direction.
Now we use examples to demonstrate the programming of threaded holes.
Example: There is a 300X300 steel plate with a thickness of 30 mm, and the corresponding threaded hole M10 is punched in the required position. As shown below.
![]()
Analysis: According to the processing of threaded holes, we can know the relevant tools and parameters by looking up the table. The drill bit used for bottom hole processing of M10 is a machine tapping tap with a diameter of 9, and the tap is M10*1.
Program: Set tool T1 to drill bit 9, T2 to tap M10
G54G90G0X0Y0; (Establish a coordinate system, the tool shifts to the origin)
G43H1Z50; (Establish tool length compensation)
G0 X50Y50; (moving to the drilling position)
M03 S700; (spindle start)
G99G82Z-35R5P1000F180; (drill the first hole, raise the knife to point R)
Y250; (drill the second hole, raise the knife to point R)
X150; (drill the third hole, raise the knife to point R)
G98Y50 (drill the fourth hole, raise the knife to the starting point)
G80; (cancel drilling cycle)
G0 Z200 M05; (raise the tool, the spindle stops)
M06T2; (tool change T2)
G43H2Z50; (Establish tool length compensation)
G0 X50Y50; (moving to the drilling position)
M03 S500; (spindle start)
G90G99G84Z-35R5P600F500; (tap the first hole, raise the knife to point R)
Y250; (tapping the second hole, raising the knife to point R)
X150; (Tap the third hole, raise the knife to point R)
G98Y50 (tapping the fourth hole, raising the knife to the starting point)
G80; (cancel drilling cycle)
G0 Z200 M05; (raise the tool, the spindle stops)
M30; (program end, return to program starting point)
It is easier to break during the tapping process. It is recommended that you clean the burrs of the drilling before processing and add a guided chamfer. The effect of adding lubricating oil during the tapping process will be better.




