Thread Research
Technology Center
CNC machining center universal milling macro program
Working principle uses the G03/G02 three axis linkage to walk the spiral line, the cutting tool along the work piece surface (the hole wall or the cylindrical surface) cutting. Screw interpolation for a week, the tool Z to a negative direction of a pitch.
Programming principle: Z-2.5 I3. G02
The advantage of Z-2.5 is equal to the right-hand thread pitch 2.5mm hypothesis 5mm processing tool radius M16 using three axis CNC milling machine and machining center processing thread, thread processing, as compared with the traditional 1 pitch thread cutter 2 can process all kinds of nominal diameter, the pitch was 2mm 2, the internal and external thread milling processing thread. The quality of thread than the traditional way of processing high quality 3, using machine clip blade cutter, long service life, 4 multi tooth thread milling processing, the processing speed of 5, far exceeding the tapping the first gage testing, stable quality machining method using P1999 X_ Y_ Z_ back G65 R_ A_ B_ C_ S_ F_XY thread hole or external thread Y=#25Z thread machining center of X=#24 bottom, Z axis position (absolute) Z=#26R rapid positioning (safety height) at the cutting thread position C=#3 R=#18A thread cutter radius A=#1B B=#2C nominal diameter of the screw thread milling cutter thread negative external screw positive S F spindle speed feed rate, mainly for each tooth engagement control tools such as: G65 p1999 X30 Y30 Z-10 R2 A2 B16 C-5 S2000 F150; M16 X30y30 in processing pitch dextral thread processing 2 10 when the spindle speed is 2000 rpm feeding schedule for 150mm/min macro program code O1999; G90G94G17G40; G0X#24Y#25; fast positioning to thread center X, Y coordinates M3S#19; spindle speed is set to #31=#2*0.5+#3; calculate the tool offset #32=#18-#1 tool; go spiral line, the first under the knife position of #33=#24-#31; calculate the position of the tool to move to the starting point of the G0Z#18 thread; rapid positioning to R G1X#33F#9 tools; tool of linear interpolation to the spiral line starting point, starting at X In the negative direction of the N20 G02Z-#32I#31; to offset as radius to pitch as spiral Z line down the knife quantity (absolute) coordinate IF[#32LE#26]GOTO30; the current Z to position than is equal to the set Z to the bottom position, jump #32=#32-#1; Z to a spiral target depth position (the vast of coordinates) GOTO20; N30; IF[#3GT0]THEN #6=#33-#1; external threads, the back knife tool to the negative X direction back a pitch amount IF[#3LT0]]THEN #6=#24; internal threads, back knife tool to move to screw thread center position G0X#6G90G0Z#18; knife to a safe height M99;