When machining a hole of a disk part with a machining center, especially in the programming of a hole drilled on its circumference, the commonly used method is a coordinate programming method, which programs regular holes and irregular holes. All are suitable. By calculating the coordinate value of the hole, the data of the coordinate value is programmed into the drilling program, a drilling cycle program is programmed, and then the program is run and the drilling is completed. This method has a relatively large amount of calculations, and it is also apt to make mistakes when the data is cumbersome. When the keyboard is used to input a program at the machining center, it may cause input errors due to a large number of decimal points, and the hole may be biased. With the help of Huazhong CNC staff, after many practice, the author explored the programming method of using the coordinate angle rotation function drilling loop subroutine, which is concise and fast, and it is not easy to make mistakes. It is very convenient to use in production.
The following is a detailed description of drilling programming through a typical disk part. The workpiece is shown in the drawing and the program is as follows:
%1104
N0010 G54 (workpiece coordinate system selection) N0020 M03 S180 (spindle forward 180r/min) N0030 T0505 (tool magazine No. 5 tool compensation No. 5) N0040 G90 G00 Z50 (fast moving spindle to set-up clearance) N0050 G00 X0 Y0 Z0 (Quick positioning of X and Y axes to workpiece coordinate zero) N0060 G68 X0 Y0 P15 (rotation 15o defines the first hole angle) N0070 M98 P0001 (call drilling subroutine) N0080 G68 X0 Y0 P45 N0090 M98 P0001 N0100 C68 X0 Y0 P75 N0110 M98 P0001 N0120 G68 X0 Y0 P105 N0130 M98 P0001 N0140 G68 X0 Y0 P135 N0150 M98 P0001 N0160 G68 X0 Y0 P165 N0170 M98 P0001 N0180 G68 X0 Y0 P195 N0l90 M98 P0001 N0200 G68 X0 Y0 P225 N0210 M98 P0001 N0220 G68 X0 Y0 P255 N0230 M98 P0001 N0240 G68 X0 Y0 P285 N0250 M98 P0001 N0260 G68 X0 Y0 P315 N0270 M98 P0001 N0280 G68 X0 Y0 P345 N0290 M98 P0001 N0300 G00 X0 Y0 Z50 N0310 M05 N0320 M30 %0001 N0010 G99 G82 X158.750 Y0 R5 Z-120 P2 F100 N0020 M99 G99 - Return to R point plane G82 - Drill Cycle Instruction with Stall X158.75 - Rotation radius of pitch circle R5 - 5mm from the end face Z-120——drilling depth P2 - time for drilling the bottom hole F——Infeed This program can be quickly programmed by mouth calculations with only one calculator or no calculator at all. It is efficient and practical, and is much more concise than the traditional calculation of coordinate values. Let's compare the process of calculating the coordinate data using this workpiece. The drilling coordinate data calculation result is as follows: X1+41.088 Y1+153.341 X2+112.253 Y2+112.253 X3+153.341 Y3+41.088 . . . According to the coordinate data, drilling cycle programming is performed. The program is as follows: G00 X+41.088 Y+153.341 G99 G82 G90 R5 Z-120 P2 F100 G00 X+112.253 Y+112.253 G99 G82 G90 R5 Z-120 P2 F100 . . . Comparing the two can be concluded that the use of the angle programming efficiency is much higher, the program is also good, the amount of calculation is also less, has been applied in production practice many times and received good results.