Before continuing, let’s understand how pocket milling works in general. In the below figure as you can see W, and L variables define the width and height of the pocket, R-value is the depth of the cut. As you can guess we shouldn`t plunge all depths of cut at one time to avoid tool breakage.So we should plunge a 2mm machine pocket and plunge again and machine pocket again. This cycle continues until we hit the final depth. Let us say we machine a pocket that has an 8mm (0.315 inches) depth.So if we plunge 2mm(0.079 inches) at one time then it will take 4 pocket machining at the depths of -2mm,-4mm,-6mm,-8mm, (in inches -0.079,-0.157,-0.236,-0.315). Also, we should give a finish pass on the final depth, so the maximum plunging depth should be 7.9mm so we can give a 0.1 finish pass.Check the pictures below;Final CutRough CutOn the right picture, you can see a rough cut, and on the left a final cut for the bottom and walls of the pocket. In our example part the pocket explodes on the bottom so just a contour finish operation can be used too to save time.G24 rectangular pocket milling cycle writing format in the Fanuc system.G24 X…Y… L…W… Z… R… Q… D… F…;X,Y : Coordinates of the lower left corner of the pocketL : Pocket size on the X-axis (mm)W : The width of the pocket on the Y-axis (mm)Z : Pocket depth (mm)R : Safety distance (mm)Q : The cutter’s side-shift distance for the next chip (mm)D : Plunge the amount in the Z axis (mm)F : Progress (mm/min.)If you follow this draft you can cut directly from Fanuc MDI mode or the in-memory program. You need to turn your spindle and give preparation G-codes before cutting. Further, you can see prep. G-codes.This is an embedded pocket cycle for Siemens controllers.POCKET3 (RTP, RFP, SDIS, DP, DPR, LENG, WID, CRAD, CPA, CPO, STA, FFD, FFP1, CDIR, FAL, VARI, MIDF, FFP2, SSF)Pocket-3RTP : Rebound distanceRFP : Reference planeSIDS : safety distanceDP : Pocket depth (absolute)DPR : Pocket depth relative to the reference planeLENG : Length (length) of the pocketWID : Pocket width (width)CRAD : Corner radiusCPA : X value of pocket center/cornerCPO : Y value of pocket center/cornerSTA : Pocket angle (0-180 degrees)FFD : Plunge feedFFP1 : Pocket emptying advance valueMID : Immersion depth (amount)CDIR : Machining direction (2 = clockwise, 3 = counter-clockwise)FAL : Fine chip allowance for peripheral surfacesVARI : 0= Machining the pocket to full-size 1=Roughing and leaving fine chips, 2=Finishing the chipsMIDF : Maximum plunge depth (feed) when finishingFFP2 : Cutting feed for finishingSSF : Speed for finishingRectangular pocket milling cycle (Siemens)Example of rectangular pocket milling.Let’s program the above part with the G24 cycle in the Fanuc system;∅12 mm Carbide flat-end milling cutter (T09)∅14 mm Carbide flat tip end mill cutter (T07)O .. .. .. .. ;Program nameT9 M6Tool selectionM03 S1400Spindle rotation clockwiseG90 G54 G0 X0 Y0 ;Absolute coordinate, workpiece zero, X andrapid positioning to the Y-axis positionG43 H9 Z25 M08;Positioning of tool #9 with tool lengthcompensation and turning on the coolantG98 G24 X20 Y12 L25 W43 Z-9 R5 Q9 D2 F180;Return to origin command at the end of thecycle and processing of the first pocketG28 G91 Z0;Quick move of the team to the referenceT7 M6Tool selectionM03 S1200;Turning the spindle clockwiseG90 G54 G0 X0 Y0;Absolute coordinate, workpiece zero, rapidpositioning to X and Y axis positionG43 H7 Z20 M08;Positioning of tool #7 with tool lengthcompensation and turning on the coolantG24 X85 Y12 L28 W43 Z-12 R5 Q10 D1.5 F160;Processing the second pocketG80;Cycle cancellationG28 G91 Z0;Quick move of the team to the referenceM30;End of programLet’s program the part with the Pocket cycle in the Siemens system;∅12 mm carbide flat tip end mill cutter (T09)∅14 mm carbide flat tip end mill cutter (T07)O .. .. .. .. ;Program nameG90 G54Absolute coordinate, workpiece zero pointT09 D1 M6Change toolS900 M03Rotating the spindle clockwiseG0 X0 Y0Quick positioning to X and Y axis positionZ20Quick positioning to the Z axis positionPOCKET3(10, 0, 5, ,-9, 25, 43, 6, 32.5, 32.5, 0, 50, 100, 2, 3, 0, ,,)Fill in the cycle parametersT07 D1 M6Change tool.S800 M03Spindle rotation clockwiseG0 X0 Y0Quick positioning to X and Y axis positionZ20Quick positioning to the Z axis positionPOCKET3(10, 0, 5, ,-12, 25, 43, 7, 99, 32.5, 0, 50, 100, 2, 3, 0, ,,)Fill in the cycle parametersM30End of programCircular pocket milling G25A circular pocket milling is done on a part with this cycle and it is just a circular version of the rectangular pocket cycle. Here, the cutter quickly moves to the specified height and the center of the pocket, then slides out from the center to mill the pocket. After each depth passes, it goes back to the middle and keeps going. This process keeps going until the depth of the pocket is reached. The Diameter is a big difference here.Circular pocket milling cycle (Fanuc)In the figure below you can see the pocket roughing and finishing.G25 Circular pocket milling cycle writing format.G25 X… Y… I… J… Z… R… Q… D… F… ;X,Y : Coordinate a point on the circleI, J : Circle center coordinatesZ : Pocket depth (mm)R : Safety distance (mm)Q : The cutter’s side-shift distance for the next chip (mm)D : Plunge amount in Z axis (mm)F : Feed (mm/min.)POCKET4 (RTP, RFP, SDIS, DP, DPR, PRAD, CPA, CPO, FFD, FFP1, MID, CDIR, FAL, VARI, MIDF, FFP2, SSF)Pocket – 4RTP : Rebound distanceRFP : Reference planeSIDS : safety distanceDP : Pocket depthDPR : Pocket depth relative to the reference planePRAD : Radius of pocketCPA : Abscess of pocket center/corner (x value) absolutelyCPO : Absolute ordinate of pocket center/corner (y value)FFD : Plunge feedFFP1 : Sideshift advance valueMID : Maximum plunge depthCDIR : Machining direction (2=clockwise, 3=counterclockwise)FAL : Fine chip allowance for peripheral surfacesVARI : 0= Machining the pocket to full size 1= Roughing and leaving fine chips, 2= FinishingMIDF : Maximum plunge depth when finishingFFP2 : FinishingSSF : Speed for finishingExample of circular pocket milling cycle;Example of circular pocket milling cycle.Let’s program the above part with the G25 cycle in the Fanuc system;∅16 mm carbide-coated flat end milling cutter (T03)O .. .. .. .. ;Program nameT3 M6Tool changeM03 S1400Spindle rotation clockwiseG90 G54 G0 X0 Y0 ;Absolute coordinate, workpiece zero point,quick positioning to X and Y axis positionG43 H3 Z25 M08;Positioning of tool #3 with tool lengthcompensation and turning on the coolantG98 G25 X38 Y10 I38 J33 Z-6 R5 Q10 D2 F90Return to origin at the end of cycle machining∅46 mm pocketG0 X38 Y33;Positioning the tool on the X and Y axisG25 X38 Y18 I38 J33 Z-16 R-2 Q10 D2 F90;Machining ∅30 mm pocketG0 X98 Y15;Positioning the tool on the X and Y axisG25 X38 Y18 I98 J33 Z-10 R4 Q10 D2 F90;Machining ∅36 mm pocketG80 ;Cycle cancellationG28 G91 Z0 ;Quick move of the team to the referenceM30;End of programLet's keep in touch! Thanks for subscribing!Oops, something went wrong. Please try again later.Let’s program the part with the G25 cycle in the Fanuc system;∅16 mm carbide flat-end milling cutter (T03)O .. .. .. .. ;Program nameG90 G54T03 D1 M6Tool changeS1000 M03Spindle rotation clockwiseG0 X0 Y0Quick positioning to X and Y axis positionZ20Quick positioning to the Z axis positionPOCKET4(10, 0, 5, ,-16, 15, 38, 33, 50, 100, 2, 3, 0, ,,)Cycle parametersPOCKET4(10, 0, 5, ,-6, 23, 38, 33, 50, 100, 2, 3, 0, ,,)Cycle parametersPOCKET4(10, 0, 5, ,-10, 18, 98, 33, 50, 100, 2, 3, 0, ,,)Cycle parametersM30End of programSimulation of cycles and application on the machineAfter the program is written, the movements of the cutter are checked on the screen of the simulation, and any errors in the program are looked for. If there are mistakes, they can be eliminated before cutting.When the machine lock switch is turned ON before the simulation begins, the progress movements shown on the machine position indicator are shown, but the machine axes do not move (Lock).In the Siemens system, the movements of the cutter are tracked in two dimensions, and at the end of the simulation, a 3D view of the part that was cut is shown.On the simulation monitoring screen, the part profile and tool paths can be checked by simulating the CNC program written by the editor. If there are mistakes in the program, it can be sent back to the editor to be fixed.Pocket milling simulation screen at Siemens.Simulation of our example part.

RTP : Rebound distanceRFP : Reference planeSIDS : safety distanceDP : Pocket depth (absolute)DPR : Pocket depth relative to the reference planeLENG : Length (length) of the pocketWID : Pocket width (width)CRAD : Corner radiusCPA : X value of pocket center/cornerCPO : Y value of pocket center/cornerSTA : Pocket angle (0-180 degrees)FFD : Plunge feedFFP1 : Pocket emptying advance valueMID : Immersion depth (amount)CDIR : Machining direction (2 = clockwise, 3 = counter-clockwise)FAL : Fine chip allowance for peripheral surfacesVARI : 0= Machining the pocket to full-size 1=Roughing and leaving fine chips, 2=Finishing the chipsMIDF : Maximum plunge depth (feed) when finishingFFP2 : Cutting feed for finishingSSF : Speed for finishingRectangular pocket milling cycle (Siemens)Example of rectangular pocket milling.Let’s program the above part with the G24 cycle in the Fanuc system;∅12 mm Carbide flat-end milling cutter (T09)∅14 mm Carbide flat tip end mill cutter (T07)O .. .. .. .. ;Program nameT9 M6Tool selectionM03 S1400Spindle rotation clockwiseG90 G54 G0 X0 Y0 ;Absolute coordinate, workpiece zero, X andrapid positioning to the Y-axis positionG43 H9 Z25 M08;Positioning of tool #9 with tool lengthcompensation and turning on the coolantG98 G24 X20 Y12 L25 W43 Z-9 R5 Q9 D2 F180;Return to origin command at the end of thecycle and processing of the first pocketG28 G91 Z0;Quick move of the team to the referenceT7 M6Tool selectionM03 S1200;Turning the spindle clockwiseG90 G54 G0 X0 Y0;Absolute coordinate, workpiece zero, rapidpositioning to X and Y axis positionG43 H7 Z20 M08;Positioning of tool #7 with tool lengthcompensation and turning on the coolantG24 X85 Y12 L28 W43 Z-12 R5 Q10 D1.5 F160;Processing the second pocketG80;Cycle cancellationG28 G91 Z0;Quick move of the team to the referenceM30;End of programLet’s program the part with the Pocket cycle in the Siemens system;∅12 mm carbide flat tip end mill cutter (T09)∅14 mm carbide flat tip end mill cutter (T07)O .. .. .. .. ;Program nameG90 G54Absolute coordinate, workpiece zero pointT09 D1 M6Change toolS900 M03Rotating the spindle clockwiseG0 X0 Y0Quick positioning to X and Y axis positionZ20Quick positioning to the Z axis positionPOCKET3(10, 0, 5, ,-9, 25, 43, 6, 32.5, 32.5, 0, 50, 100, 2, 3, 0, ,,)Fill in the cycle parametersT07 D1 M6Change tool.S800 M03Spindle rotation clockwiseG0 X0 Y0Quick positioning to X and Y axis positionZ20Quick positioning to the Z axis positionPOCKET3(10, 0, 5, ,-12, 25, 43, 7, 99, 32.5, 0, 50, 100, 2, 3, 0, ,,)Fill in the cycle parametersM30End of programCircular pocket milling G25A circular pocket milling is done on a part with this cycle and it is just a circular version of the rectangular pocket cycle. Here, the cutter quickly moves to the specified height and the center of the pocket, then slides out from the center to mill the pocket. After each depth passes, it goes back to the middle and keeps going. This process keeps going until the depth of the pocket is reached. The Diameter is a big difference here.Circular pocket milling cycle (Fanuc)In the figure below you can see the pocket roughing and finishing.G25 Circular pocket milling cycle writing format.G25 X… Y… I… J… Z… R… Q… D… F… ;X,Y : Coordinate a point on the circleI, J : Circle center coordinatesZ : Pocket depth (mm)R : Safety distance (mm)Q : The cutter’s side-shift distance for the next chip (mm)D : Plunge amount in Z axis (mm)F : Feed (mm/min.)POCKET4 (RTP, RFP, SDIS, DP, DPR, PRAD, CPA, CPO, FFD, FFP1, MID, CDIR, FAL, VARI, MIDF, FFP2, SSF)Pocket – 4RTP : Rebound distanceRFP : Reference planeSIDS : safety distanceDP : Pocket depthDPR : Pocket depth relative to the reference planePRAD : Radius of pocketCPA : Abscess of pocket center/corner (x value) absolutelyCPO : Absolute ordinate of pocket center/corner (y value)FFD : Plunge feedFFP1 : Sideshift advance valueMID : Maximum plunge depthCDIR : Machining direction (2=clockwise, 3=counterclockwise)FAL : Fine chip allowance for peripheral surfacesVARI : 0= Machining the pocket to full size 1= Roughing and leaving fine chips, 2= FinishingMIDF : Maximum plunge depth when finishingFFP2 : FinishingSSF : Speed for finishingExample of circular pocket milling cycle;Example of circular pocket milling cycle.Let’s program the above part with the G25 cycle in the Fanuc system;∅16 mm carbide-coated flat end milling cutter (T03)O .. .. .. .. ;Program nameT3 M6Tool changeM03 S1400Spindle rotation clockwiseG90 G54 G0 X0 Y0 ;Absolute coordinate, workpiece zero point,quick positioning to X and Y axis positionG43 H3 Z25 M08;Positioning of tool #3 with tool lengthcompensation and turning on the coolantG98 G25 X38 Y10 I38 J33 Z-6 R5 Q10 D2 F90Return to origin at the end of cycle machining∅46 mm pocketG0 X38 Y33;Positioning the tool on the X and Y axisG25 X38 Y18 I38 J33 Z-16 R-2 Q10 D2 F90;Machining ∅30 mm pocketG0 X98 Y15;Positioning the tool on the X and Y axisG25 X38 Y18 I98 J33 Z-10 R4 Q10 D2 F90;Machining ∅36 mm pocketG80 ;Cycle cancellationG28 G91 Z0 ;Quick move of the team to the referenceM30;End of programLet's keep in touch! Thanks for subscribing!Oops, something went wrong. Please try again later.Let’s program the part with the G25 cycle in the Fanuc system;∅16 mm carbide flat-end milling cutter (T03)O .. .. .. .. ;Program nameG90 G54T03 D1 M6Tool changeS1000 M03Spindle rotation clockwiseG0 X0 Y0Quick positioning to X and Y axis positionZ20Quick positioning to the Z axis positionPOCKET4(10, 0, 5, ,-16, 15, 38, 33, 50, 100, 2, 3, 0, ,,)Cycle parametersPOCKET4(10, 0, 5, ,-6, 23, 38, 33, 50, 100, 2, 3, 0, ,,)Cycle parametersPOCKET4(10, 0, 5, ,-10, 18, 98, 33, 50, 100, 2, 3, 0, ,,)Cycle parametersM30End of programSimulation of cycles and application on the machineAfter the program is written, the movements of the cutter are checked on the screen of the simulation, and any errors in the program are looked for. If there are mistakes, they can be eliminated before cutting.When the machine lock switch is turned ON before the simulation begins, the progress movements shown on the machine position indicator are shown, but the machine axes do not move (Lock).In the Siemens system, the movements of the cutter are tracked in two dimensions, and at the end of the simulation, a 3D view of the part that was cut is shown.On the simulation monitoring screen, the part profile and tool paths can be checked by simulating the CNC program written by the editor. If there are mistakes in the program, it can be sent back to the editor to be fixed.Pocket milling simulation screen at Siemens.Simulation of our example part.

G25 X… Y… I… J… Z… R… Q… D… F… ;X,Y : Coordinate a point on the circleI, J : Circle center coordinatesZ : Pocket depth (mm)R : Safety distance (mm)Q : The cutter’s side-shift distance for the next chip (mm)D : Plunge amount in Z axis (mm)F : Feed (mm/min.)POCKET4 (RTP, RFP, SDIS, DP, DPR, PRAD, CPA, CPO, FFD, FFP1, MID, CDIR, FAL, VARI, MIDF, FFP2, SSF)Pocket – 4RTP : Rebound distanceRFP : Reference planeSIDS : safety distanceDP : Pocket depthDPR : Pocket depth relative to the reference planePRAD : Radius of pocketCPA : Abscess of pocket center/corner (x value) absolutelyCPO : Absolute ordinate of pocket center/corner (y value)FFD : Plunge feedFFP1 : Sideshift advance valueMID : Maximum plunge depthCDIR : Machining direction (2=clockwise, 3=counterclockwise)FAL : Fine chip allowance for peripheral surfacesVARI : 0= Machining the pocket to full size 1= Roughing and leaving fine chips, 2= FinishingMIDF : Maximum plunge depth when finishingFFP2 : FinishingSSF : Speed for finishingExample of circular pocket milling cycle;Example of circular pocket milling cycle.Let’s program the above part with the G25 cycle in the Fanuc system;∅16 mm carbide-coated flat end milling cutter (T03)O .. .. .. .. ;Program nameT3 M6Tool changeM03 S1400Spindle rotation clockwiseG90 G54 G0 X0 Y0 ;Absolute coordinate, workpiece zero point,quick positioning to X and Y axis positionG43 H3 Z25 M08;Positioning of tool #3 with tool lengthcompensation and turning on the coolantG98 G25 X38 Y10 I38 J33 Z-6 R5 Q10 D2 F90Return to origin at the end of cycle machining∅46 mm pocketG0 X38 Y33;Positioning the tool on the X and Y axisG25 X38 Y18 I38 J33 Z-16 R-2 Q10 D2 F90;Machining ∅30 mm pocketG0 X98 Y15;Positioning the tool on the X and Y axisG25 X38 Y18 I98 J33 Z-10 R4 Q10 D2 F90;Machining ∅36 mm pocketG80 ;Cycle cancellationG28 G91 Z0 ;Quick move of the team to the referenceM30;End of programLet's keep in touch! Thanks for subscribing!Oops, something went wrong. Please try again later.Let’s program the part with the G25 cycle in the Fanuc system;∅16 mm carbide flat-end milling cutter (T03)O .. .. .. .. ;Program nameG90 G54T03 D1 M6Tool changeS1000 M03Spindle rotation clockwiseG0 X0 Y0Quick positioning to X and Y axis positionZ20Quick positioning to the Z axis positionPOCKET4(10, 0, 5, ,-16, 15, 38, 33, 50, 100, 2, 3, 0, ,,)Cycle parametersPOCKET4(10, 0, 5, ,-6, 23, 38, 33, 50, 100, 2, 3, 0, ,,)Cycle parametersPOCKET4(10, 0, 5, ,-10, 18, 98, 33, 50, 100, 2, 3, 0, ,,)Cycle parametersM30End of programSimulation of cycles and application on the machineAfter the program is written, the movements of the cutter are checked on the screen of the simulation, and any errors in the program are looked for. If there are mistakes, they can be eliminated before cutting.When the machine lock switch is turned ON before the simulation begins, the progress movements shown on the machine position indicator are shown, but the machine axes do not move (Lock).In the Siemens system, the movements of the cutter are tracked in two dimensions, and at the end of the simulation, a 3D view of the part that was cut is shown.On the simulation monitoring screen, the part profile and tool paths can be checked by simulating the CNC program written by the editor. If there are mistakes in the program, it can be sent back to the editor to be fixed.Pocket milling simulation screen at Siemens.Simulation of our example part.

One of the powerful G-Code cycles is the Pocket Milling Cycle. Its powers come from its algorithms which can generate complex circular and rectangular-linear toolpaths with just variables, and G-code properties. G24 and 25 are often used for pocket milling with CNC machines.

X,Y : Coordinates of the lower left corner of the pocketL : Pocket size on the X-axis (mm)W : The width of the pocket on the Y-axis (mm)Z : Pocket depth (mm)R : Safety distance (mm)Q : The cutter’s side-shift distance for the next chip (mm)D : Plunge the amount in the Z axis (mm)F : Progress (mm/min.)If you follow this draft you can cut directly from Fanuc MDI mode or the in-memory program. You need to turn your spindle and give preparation G-codes before cutting. Further, you can see prep. G-codes.This is an embedded pocket cycle for Siemens controllers.POCKET3 (RTP, RFP, SDIS, DP, DPR, LENG, WID, CRAD, CPA, CPO, STA, FFD, FFP1, CDIR, FAL, VARI, MIDF, FFP2, SSF)Pocket-3RTP : Rebound distanceRFP : Reference planeSIDS : safety distanceDP : Pocket depth (absolute)DPR : Pocket depth relative to the reference planeLENG : Length (length) of the pocketWID : Pocket width (width)CRAD : Corner radiusCPA : X value of pocket center/cornerCPO : Y value of pocket center/cornerSTA : Pocket angle (0-180 degrees)FFD : Plunge feedFFP1 : Pocket emptying advance valueMID : Immersion depth (amount)CDIR : Machining direction (2 = clockwise, 3 = counter-clockwise)FAL : Fine chip allowance for peripheral surfacesVARI : 0= Machining the pocket to full-size 1=Roughing and leaving fine chips, 2=Finishing the chipsMIDF : Maximum plunge depth (feed) when finishingFFP2 : Cutting feed for finishingSSF : Speed for finishingRectangular pocket milling cycle (Siemens)Example of rectangular pocket milling.Let’s program the above part with the G24 cycle in the Fanuc system;∅12 mm Carbide flat-end milling cutter (T09)∅14 mm Carbide flat tip end mill cutter (T07)O .. .. .. .. ;Program nameT9 M6Tool selectionM03 S1400Spindle rotation clockwiseG90 G54 G0 X0 Y0 ;Absolute coordinate, workpiece zero, X andrapid positioning to the Y-axis positionG43 H9 Z25 M08;Positioning of tool #9 with tool lengthcompensation and turning on the coolantG98 G24 X20 Y12 L25 W43 Z-9 R5 Q9 D2 F180;Return to origin command at the end of thecycle and processing of the first pocketG28 G91 Z0;Quick move of the team to the referenceT7 M6Tool selectionM03 S1200;Turning the spindle clockwiseG90 G54 G0 X0 Y0;Absolute coordinate, workpiece zero, rapidpositioning to X and Y axis positionG43 H7 Z20 M08;Positioning of tool #7 with tool lengthcompensation and turning on the coolantG24 X85 Y12 L28 W43 Z-12 R5 Q10 D1.5 F160;Processing the second pocketG80;Cycle cancellationG28 G91 Z0;Quick move of the team to the referenceM30;End of programLet’s program the part with the Pocket cycle in the Siemens system;∅12 mm carbide flat tip end mill cutter (T09)∅14 mm carbide flat tip end mill cutter (T07)O .. .. .. .. ;Program nameG90 G54Absolute coordinate, workpiece zero pointT09 D1 M6Change toolS900 M03Rotating the spindle clockwiseG0 X0 Y0Quick positioning to X and Y axis positionZ20Quick positioning to the Z axis positionPOCKET3(10, 0, 5, ,-9, 25, 43, 6, 32.5, 32.5, 0, 50, 100, 2, 3, 0, ,,)Fill in the cycle parametersT07 D1 M6Change tool.S800 M03Spindle rotation clockwiseG0 X0 Y0Quick positioning to X and Y axis positionZ20Quick positioning to the Z axis positionPOCKET3(10, 0, 5, ,-12, 25, 43, 7, 99, 32.5, 0, 50, 100, 2, 3, 0, ,,)Fill in the cycle parametersM30End of programCircular pocket milling G25A circular pocket milling is done on a part with this cycle and it is just a circular version of the rectangular pocket cycle. Here, the cutter quickly moves to the specified height and the center of the pocket, then slides out from the center to mill the pocket. After each depth passes, it goes back to the middle and keeps going. This process keeps going until the depth of the pocket is reached. The Diameter is a big difference here.Circular pocket milling cycle (Fanuc)In the figure below you can see the pocket roughing and finishing.G25 Circular pocket milling cycle writing format.G25 X… Y… I… J… Z… R… Q… D… F… ;X,Y : Coordinate a point on the circleI, J : Circle center coordinatesZ : Pocket depth (mm)R : Safety distance (mm)Q : The cutter’s side-shift distance for the next chip (mm)D : Plunge amount in Z axis (mm)F : Feed (mm/min.)POCKET4 (RTP, RFP, SDIS, DP, DPR, PRAD, CPA, CPO, FFD, FFP1, MID, CDIR, FAL, VARI, MIDF, FFP2, SSF)Pocket – 4RTP : Rebound distanceRFP : Reference planeSIDS : safety distanceDP : Pocket depthDPR : Pocket depth relative to the reference planePRAD : Radius of pocketCPA : Abscess of pocket center/corner (x value) absolutelyCPO : Absolute ordinate of pocket center/corner (y value)FFD : Plunge feedFFP1 : Sideshift advance valueMID : Maximum plunge depthCDIR : Machining direction (2=clockwise, 3=counterclockwise)FAL : Fine chip allowance for peripheral surfacesVARI : 0= Machining the pocket to full size 1= Roughing and leaving fine chips, 2= FinishingMIDF : Maximum plunge depth when finishingFFP2 : FinishingSSF : Speed for finishingExample of circular pocket milling cycle;Example of circular pocket milling cycle.Let’s program the above part with the G25 cycle in the Fanuc system;∅16 mm carbide-coated flat end milling cutter (T03)O .. .. .. .. ;Program nameT3 M6Tool changeM03 S1400Spindle rotation clockwiseG90 G54 G0 X0 Y0 ;Absolute coordinate, workpiece zero point,quick positioning to X and Y axis positionG43 H3 Z25 M08;Positioning of tool #3 with tool lengthcompensation and turning on the coolantG98 G25 X38 Y10 I38 J33 Z-6 R5 Q10 D2 F90Return to origin at the end of cycle machining∅46 mm pocketG0 X38 Y33;Positioning the tool on the X and Y axisG25 X38 Y18 I38 J33 Z-16 R-2 Q10 D2 F90;Machining ∅30 mm pocketG0 X98 Y15;Positioning the tool on the X and Y axisG25 X38 Y18 I98 J33 Z-10 R4 Q10 D2 F90;Machining ∅36 mm pocketG80 ;Cycle cancellationG28 G91 Z0 ;Quick move of the team to the referenceM30;End of programLet's keep in touch! Thanks for subscribing!Oops, something went wrong. Please try again later.Let’s program the part with the G25 cycle in the Fanuc system;∅16 mm carbide flat-end milling cutter (T03)O .. .. .. .. ;Program nameG90 G54T03 D1 M6Tool changeS1000 M03Spindle rotation clockwiseG0 X0 Y0Quick positioning to X and Y axis positionZ20Quick positioning to the Z axis positionPOCKET4(10, 0, 5, ,-16, 15, 38, 33, 50, 100, 2, 3, 0, ,,)Cycle parametersPOCKET4(10, 0, 5, ,-6, 23, 38, 33, 50, 100, 2, 3, 0, ,,)Cycle parametersPOCKET4(10, 0, 5, ,-10, 18, 98, 33, 50, 100, 2, 3, 0, ,,)Cycle parametersM30End of programSimulation of cycles and application on the machineAfter the program is written, the movements of the cutter are checked on the screen of the simulation, and any errors in the program are looked for. If there are mistakes, they can be eliminated before cutting.When the machine lock switch is turned ON before the simulation begins, the progress movements shown on the machine position indicator are shown, but the machine axes do not move (Lock).In the Siemens system, the movements of the cutter are tracked in two dimensions, and at the end of the simulation, a 3D view of the part that was cut is shown.On the simulation monitoring screen, the part profile and tool paths can be checked by simulating the CNC program written by the editor. If there are mistakes in the program, it can be sent back to the editor to be fixed.Pocket milling simulation screen at Siemens.Simulation of our example part.

Isaac Aloyan is a talented mechanical engineer with a background in machinery design and manufacturing. He completed his diploma from the Department of Machinery Design and Manufacturing at Kocaeli University and also graduated from Level 7 NZDE Mechanical Engineering at Manukau Institute of Technology (M.I.T). Isaac has developed strong expertise in various areas of mechanical engineering, including CNC programming and machining, vacuum mold design and production, manual machining, CAD and CAM, and thermoforming machine design and production. Also, he has educator experience in the area of CNC machinery and programming and mechanical design. With two decades of experience under his belt, Isaac has established a website called mechutopia.com to share his knowledge and help others who are interested in the field of mechanical engineering. The site is likely to feature a wealth of information, resources, and tips for those looking to learn about CNC machines, machining, mold production, and more. It is a testament to Isaac's dedication to the field and his commitment to helping others excel in sub-domains of mechanical engineering like design and manufacturing.

Let’s program the above part with the G24 cycle in the Fanuc system;∅12 mm Carbide flat-end milling cutter (T09)∅14 mm Carbide flat tip end mill cutter (T07)O .. .. .. .. ;Program nameT9 M6Tool selectionM03 S1400Spindle rotation clockwiseG90 G54 G0 X0 Y0 ;Absolute coordinate, workpiece zero, X andrapid positioning to the Y-axis positionG43 H9 Z25 M08;Positioning of tool #9 with tool lengthcompensation and turning on the coolantG98 G24 X20 Y12 L25 W43 Z-9 R5 Q9 D2 F180;Return to origin command at the end of thecycle and processing of the first pocketG28 G91 Z0;Quick move of the team to the referenceT7 M6Tool selectionM03 S1200;Turning the spindle clockwiseG90 G54 G0 X0 Y0;Absolute coordinate, workpiece zero, rapidpositioning to X and Y axis positionG43 H7 Z20 M08;Positioning of tool #7 with tool lengthcompensation and turning on the coolantG24 X85 Y12 L28 W43 Z-12 R5 Q10 D1.5 F160;Processing the second pocketG80;Cycle cancellationG28 G91 Z0;Quick move of the team to the referenceM30;End of programLet’s program the part with the Pocket cycle in the Siemens system;∅12 mm carbide flat tip end mill cutter (T09)∅14 mm carbide flat tip end mill cutter (T07)O .. .. .. .. ;Program nameG90 G54Absolute coordinate, workpiece zero pointT09 D1 M6Change toolS900 M03Rotating the spindle clockwiseG0 X0 Y0Quick positioning to X and Y axis positionZ20Quick positioning to the Z axis positionPOCKET3(10, 0, 5, ,-9, 25, 43, 6, 32.5, 32.5, 0, 50, 100, 2, 3, 0, ,,)Fill in the cycle parametersT07 D1 M6Change tool.S800 M03Spindle rotation clockwiseG0 X0 Y0Quick positioning to X and Y axis positionZ20Quick positioning to the Z axis positionPOCKET3(10, 0, 5, ,-12, 25, 43, 7, 99, 32.5, 0, 50, 100, 2, 3, 0, ,,)Fill in the cycle parametersM30End of programCircular pocket milling G25A circular pocket milling is done on a part with this cycle and it is just a circular version of the rectangular pocket cycle. Here, the cutter quickly moves to the specified height and the center of the pocket, then slides out from the center to mill the pocket. After each depth passes, it goes back to the middle and keeps going. This process keeps going until the depth of the pocket is reached. The Diameter is a big difference here.Circular pocket milling cycle (Fanuc)In the figure below you can see the pocket roughing and finishing.G25 Circular pocket milling cycle writing format.G25 X… Y… I… J… Z… R… Q… D… F… ;X,Y : Coordinate a point on the circleI, J : Circle center coordinatesZ : Pocket depth (mm)R : Safety distance (mm)Q : The cutter’s side-shift distance for the next chip (mm)D : Plunge amount in Z axis (mm)F : Feed (mm/min.)POCKET4 (RTP, RFP, SDIS, DP, DPR, PRAD, CPA, CPO, FFD, FFP1, MID, CDIR, FAL, VARI, MIDF, FFP2, SSF)Pocket – 4RTP : Rebound distanceRFP : Reference planeSIDS : safety distanceDP : Pocket depthDPR : Pocket depth relative to the reference planePRAD : Radius of pocketCPA : Abscess of pocket center/corner (x value) absolutelyCPO : Absolute ordinate of pocket center/corner (y value)FFD : Plunge feedFFP1 : Sideshift advance valueMID : Maximum plunge depthCDIR : Machining direction (2=clockwise, 3=counterclockwise)FAL : Fine chip allowance for peripheral surfacesVARI : 0= Machining the pocket to full size 1= Roughing and leaving fine chips, 2= FinishingMIDF : Maximum plunge depth when finishingFFP2 : FinishingSSF : Speed for finishingExample of circular pocket milling cycle;Example of circular pocket milling cycle.Let’s program the above part with the G25 cycle in the Fanuc system;∅16 mm carbide-coated flat end milling cutter (T03)O .. .. .. .. ;Program nameT3 M6Tool changeM03 S1400Spindle rotation clockwiseG90 G54 G0 X0 Y0 ;Absolute coordinate, workpiece zero point,quick positioning to X and Y axis positionG43 H3 Z25 M08;Positioning of tool #3 with tool lengthcompensation and turning on the coolantG98 G25 X38 Y10 I38 J33 Z-6 R5 Q10 D2 F90Return to origin at the end of cycle machining∅46 mm pocketG0 X38 Y33;Positioning the tool on the X and Y axisG25 X38 Y18 I38 J33 Z-16 R-2 Q10 D2 F90;Machining ∅30 mm pocketG0 X98 Y15;Positioning the tool on the X and Y axisG25 X38 Y18 I98 J33 Z-10 R4 Q10 D2 F90;Machining ∅36 mm pocketG80 ;Cycle cancellationG28 G91 Z0 ;Quick move of the team to the referenceM30;End of programLet's keep in touch! Thanks for subscribing!Oops, something went wrong. Please try again later.Let’s program the part with the G25 cycle in the Fanuc system;∅16 mm carbide flat-end milling cutter (T03)O .. .. .. .. ;Program nameG90 G54T03 D1 M6Tool changeS1000 M03Spindle rotation clockwiseG0 X0 Y0Quick positioning to X and Y axis positionZ20Quick positioning to the Z axis positionPOCKET4(10, 0, 5, ,-16, 15, 38, 33, 50, 100, 2, 3, 0, ,,)Cycle parametersPOCKET4(10, 0, 5, ,-6, 23, 38, 33, 50, 100, 2, 3, 0, ,,)Cycle parametersPOCKET4(10, 0, 5, ,-10, 18, 98, 33, 50, 100, 2, 3, 0, ,,)Cycle parametersM30End of programSimulation of cycles and application on the machineAfter the program is written, the movements of the cutter are checked on the screen of the simulation, and any errors in the program are looked for. If there are mistakes, they can be eliminated before cutting.When the machine lock switch is turned ON before the simulation begins, the progress movements shown on the machine position indicator are shown, but the machine axes do not move (Lock).In the Siemens system, the movements of the cutter are tracked in two dimensions, and at the end of the simulation, a 3D view of the part that was cut is shown.On the simulation monitoring screen, the part profile and tool paths can be checked by simulating the CNC program written by the editor. If there are mistakes in the program, it can be sent back to the editor to be fixed.Pocket milling simulation screen at Siemens.Simulation of our example part.

If you follow this draft you can cut directly from Fanuc MDI mode or the in-memory program. You need to turn your spindle and give preparation G-codes before cutting. Further, you can see prep. G-codes.This is an embedded pocket cycle for Siemens controllers.POCKET3 (RTP, RFP, SDIS, DP, DPR, LENG, WID, CRAD, CPA, CPO, STA, FFD, FFP1, CDIR, FAL, VARI, MIDF, FFP2, SSF)Pocket-3RTP : Rebound distanceRFP : Reference planeSIDS : safety distanceDP : Pocket depth (absolute)DPR : Pocket depth relative to the reference planeLENG : Length (length) of the pocketWID : Pocket width (width)CRAD : Corner radiusCPA : X value of pocket center/cornerCPO : Y value of pocket center/cornerSTA : Pocket angle (0-180 degrees)FFD : Plunge feedFFP1 : Pocket emptying advance valueMID : Immersion depth (amount)CDIR : Machining direction (2 = clockwise, 3 = counter-clockwise)FAL : Fine chip allowance for peripheral surfacesVARI : 0= Machining the pocket to full-size 1=Roughing and leaving fine chips, 2=Finishing the chipsMIDF : Maximum plunge depth (feed) when finishingFFP2 : Cutting feed for finishingSSF : Speed for finishingRectangular pocket milling cycle (Siemens)Example of rectangular pocket milling.Let’s program the above part with the G24 cycle in the Fanuc system;∅12 mm Carbide flat-end milling cutter (T09)∅14 mm Carbide flat tip end mill cutter (T07)O .. .. .. .. ;Program nameT9 M6Tool selectionM03 S1400Spindle rotation clockwiseG90 G54 G0 X0 Y0 ;Absolute coordinate, workpiece zero, X andrapid positioning to the Y-axis positionG43 H9 Z25 M08;Positioning of tool #9 with tool lengthcompensation and turning on the coolantG98 G24 X20 Y12 L25 W43 Z-9 R5 Q9 D2 F180;Return to origin command at the end of thecycle and processing of the first pocketG28 G91 Z0;Quick move of the team to the referenceT7 M6Tool selectionM03 S1200;Turning the spindle clockwiseG90 G54 G0 X0 Y0;Absolute coordinate, workpiece zero, rapidpositioning to X and Y axis positionG43 H7 Z20 M08;Positioning of tool #7 with tool lengthcompensation and turning on the coolantG24 X85 Y12 L28 W43 Z-12 R5 Q10 D1.5 F160;Processing the second pocketG80;Cycle cancellationG28 G91 Z0;Quick move of the team to the referenceM30;End of programLet’s program the part with the Pocket cycle in the Siemens system;∅12 mm carbide flat tip end mill cutter (T09)∅14 mm carbide flat tip end mill cutter (T07)O .. .. .. .. ;Program nameG90 G54Absolute coordinate, workpiece zero pointT09 D1 M6Change toolS900 M03Rotating the spindle clockwiseG0 X0 Y0Quick positioning to X and Y axis positionZ20Quick positioning to the Z axis positionPOCKET3(10, 0, 5, ,-9, 25, 43, 6, 32.5, 32.5, 0, 50, 100, 2, 3, 0, ,,)Fill in the cycle parametersT07 D1 M6Change tool.S800 M03Spindle rotation clockwiseG0 X0 Y0Quick positioning to X and Y axis positionZ20Quick positioning to the Z axis positionPOCKET3(10, 0, 5, ,-12, 25, 43, 7, 99, 32.5, 0, 50, 100, 2, 3, 0, ,,)Fill in the cycle parametersM30End of programCircular pocket milling G25A circular pocket milling is done on a part with this cycle and it is just a circular version of the rectangular pocket cycle. Here, the cutter quickly moves to the specified height and the center of the pocket, then slides out from the center to mill the pocket. After each depth passes, it goes back to the middle and keeps going. This process keeps going until the depth of the pocket is reached. The Diameter is a big difference here.Circular pocket milling cycle (Fanuc)In the figure below you can see the pocket roughing and finishing.G25 Circular pocket milling cycle writing format.G25 X… Y… I… J… Z… R… Q… D… F… ;X,Y : Coordinate a point on the circleI, J : Circle center coordinatesZ : Pocket depth (mm)R : Safety distance (mm)Q : The cutter’s side-shift distance for the next chip (mm)D : Plunge amount in Z axis (mm)F : Feed (mm/min.)POCKET4 (RTP, RFP, SDIS, DP, DPR, PRAD, CPA, CPO, FFD, FFP1, MID, CDIR, FAL, VARI, MIDF, FFP2, SSF)Pocket – 4RTP : Rebound distanceRFP : Reference planeSIDS : safety distanceDP : Pocket depthDPR : Pocket depth relative to the reference planePRAD : Radius of pocketCPA : Abscess of pocket center/corner (x value) absolutelyCPO : Absolute ordinate of pocket center/corner (y value)FFD : Plunge feedFFP1 : Sideshift advance valueMID : Maximum plunge depthCDIR : Machining direction (2=clockwise, 3=counterclockwise)FAL : Fine chip allowance for peripheral surfacesVARI : 0= Machining the pocket to full size 1= Roughing and leaving fine chips, 2= FinishingMIDF : Maximum plunge depth when finishingFFP2 : FinishingSSF : Speed for finishingExample of circular pocket milling cycle;Example of circular pocket milling cycle.Let’s program the above part with the G25 cycle in the Fanuc system;∅16 mm carbide-coated flat end milling cutter (T03)O .. .. .. .. ;Program nameT3 M6Tool changeM03 S1400Spindle rotation clockwiseG90 G54 G0 X0 Y0 ;Absolute coordinate, workpiece zero point,quick positioning to X and Y axis positionG43 H3 Z25 M08;Positioning of tool #3 with tool lengthcompensation and turning on the coolantG98 G25 X38 Y10 I38 J33 Z-6 R5 Q10 D2 F90Return to origin at the end of cycle machining∅46 mm pocketG0 X38 Y33;Positioning the tool on the X and Y axisG25 X38 Y18 I38 J33 Z-16 R-2 Q10 D2 F90;Machining ∅30 mm pocketG0 X98 Y15;Positioning the tool on the X and Y axisG25 X38 Y18 I98 J33 Z-10 R4 Q10 D2 F90;Machining ∅36 mm pocketG80 ;Cycle cancellationG28 G91 Z0 ;Quick move of the team to the referenceM30;End of programLet's keep in touch! Thanks for subscribing!Oops, something went wrong. Please try again later.Let’s program the part with the G25 cycle in the Fanuc system;∅16 mm carbide flat-end milling cutter (T03)O .. .. .. .. ;Program nameG90 G54T03 D1 M6Tool changeS1000 M03Spindle rotation clockwiseG0 X0 Y0Quick positioning to X and Y axis positionZ20Quick positioning to the Z axis positionPOCKET4(10, 0, 5, ,-16, 15, 38, 33, 50, 100, 2, 3, 0, ,,)Cycle parametersPOCKET4(10, 0, 5, ,-6, 23, 38, 33, 50, 100, 2, 3, 0, ,,)Cycle parametersPOCKET4(10, 0, 5, ,-10, 18, 98, 33, 50, 100, 2, 3, 0, ,,)Cycle parametersM30End of programSimulation of cycles and application on the machineAfter the program is written, the movements of the cutter are checked on the screen of the simulation, and any errors in the program are looked for. If there are mistakes, they can be eliminated before cutting.When the machine lock switch is turned ON before the simulation begins, the progress movements shown on the machine position indicator are shown, but the machine axes do not move (Lock).In the Siemens system, the movements of the cutter are tracked in two dimensions, and at the end of the simulation, a 3D view of the part that was cut is shown.On the simulation monitoring screen, the part profile and tool paths can be checked by simulating the CNC program written by the editor. If there are mistakes in the program, it can be sent back to the editor to be fixed.Pocket milling simulation screen at Siemens.Simulation of our example part.

It is important to set parameters like the size of the pocket, the depth of cut, the point(height) of rapid arrival, and the amount of cutter side-shift (side-cut). Let’s look at them in more depth.

G24 rectangular pocket milling cycle writing format in the Fanuc system.G24 X…Y… L…W… Z… R… Q… D… F…;X,Y : Coordinates of the lower left corner of the pocketL : Pocket size on the X-axis (mm)W : The width of the pocket on the Y-axis (mm)Z : Pocket depth (mm)R : Safety distance (mm)Q : The cutter’s side-shift distance for the next chip (mm)D : Plunge the amount in the Z axis (mm)F : Progress (mm/min.)If you follow this draft you can cut directly from Fanuc MDI mode or the in-memory program. You need to turn your spindle and give preparation G-codes before cutting. Further, you can see prep. G-codes.This is an embedded pocket cycle for Siemens controllers.POCKET3 (RTP, RFP, SDIS, DP, DPR, LENG, WID, CRAD, CPA, CPO, STA, FFD, FFP1, CDIR, FAL, VARI, MIDF, FFP2, SSF)Pocket-3RTP : Rebound distanceRFP : Reference planeSIDS : safety distanceDP : Pocket depth (absolute)DPR : Pocket depth relative to the reference planeLENG : Length (length) of the pocketWID : Pocket width (width)CRAD : Corner radiusCPA : X value of pocket center/cornerCPO : Y value of pocket center/cornerSTA : Pocket angle (0-180 degrees)FFD : Plunge feedFFP1 : Pocket emptying advance valueMID : Immersion depth (amount)CDIR : Machining direction (2 = clockwise, 3 = counter-clockwise)FAL : Fine chip allowance for peripheral surfacesVARI : 0= Machining the pocket to full-size 1=Roughing and leaving fine chips, 2=Finishing the chipsMIDF : Maximum plunge depth (feed) when finishingFFP2 : Cutting feed for finishingSSF : Speed for finishingRectangular pocket milling cycle (Siemens)Example of rectangular pocket milling.Let’s program the above part with the G24 cycle in the Fanuc system;∅12 mm Carbide flat-end milling cutter (T09)∅14 mm Carbide flat tip end mill cutter (T07)O .. .. .. .. ;Program nameT9 M6Tool selectionM03 S1400Spindle rotation clockwiseG90 G54 G0 X0 Y0 ;Absolute coordinate, workpiece zero, X andrapid positioning to the Y-axis positionG43 H9 Z25 M08;Positioning of tool #9 with tool lengthcompensation and turning on the coolantG98 G24 X20 Y12 L25 W43 Z-9 R5 Q9 D2 F180;Return to origin command at the end of thecycle and processing of the first pocketG28 G91 Z0;Quick move of the team to the referenceT7 M6Tool selectionM03 S1200;Turning the spindle clockwiseG90 G54 G0 X0 Y0;Absolute coordinate, workpiece zero, rapidpositioning to X and Y axis positionG43 H7 Z20 M08;Positioning of tool #7 with tool lengthcompensation and turning on the coolantG24 X85 Y12 L28 W43 Z-12 R5 Q10 D1.5 F160;Processing the second pocketG80;Cycle cancellationG28 G91 Z0;Quick move of the team to the referenceM30;End of programLet’s program the part with the Pocket cycle in the Siemens system;∅12 mm carbide flat tip end mill cutter (T09)∅14 mm carbide flat tip end mill cutter (T07)O .. .. .. .. ;Program nameG90 G54Absolute coordinate, workpiece zero pointT09 D1 M6Change toolS900 M03Rotating the spindle clockwiseG0 X0 Y0Quick positioning to X and Y axis positionZ20Quick positioning to the Z axis positionPOCKET3(10, 0, 5, ,-9, 25, 43, 6, 32.5, 32.5, 0, 50, 100, 2, 3, 0, ,,)Fill in the cycle parametersT07 D1 M6Change tool.S800 M03Spindle rotation clockwiseG0 X0 Y0Quick positioning to X and Y axis positionZ20Quick positioning to the Z axis positionPOCKET3(10, 0, 5, ,-12, 25, 43, 7, 99, 32.5, 0, 50, 100, 2, 3, 0, ,,)Fill in the cycle parametersM30End of programCircular pocket milling G25A circular pocket milling is done on a part with this cycle and it is just a circular version of the rectangular pocket cycle. Here, the cutter quickly moves to the specified height and the center of the pocket, then slides out from the center to mill the pocket. After each depth passes, it goes back to the middle and keeps going. This process keeps going until the depth of the pocket is reached. The Diameter is a big difference here.Circular pocket milling cycle (Fanuc)In the figure below you can see the pocket roughing and finishing.G25 Circular pocket milling cycle writing format.G25 X… Y… I… J… Z… R… Q… D… F… ;X,Y : Coordinate a point on the circleI, J : Circle center coordinatesZ : Pocket depth (mm)R : Safety distance (mm)Q : The cutter’s side-shift distance for the next chip (mm)D : Plunge amount in Z axis (mm)F : Feed (mm/min.)POCKET4 (RTP, RFP, SDIS, DP, DPR, PRAD, CPA, CPO, FFD, FFP1, MID, CDIR, FAL, VARI, MIDF, FFP2, SSF)Pocket – 4RTP : Rebound distanceRFP : Reference planeSIDS : safety distanceDP : Pocket depthDPR : Pocket depth relative to the reference planePRAD : Radius of pocketCPA : Abscess of pocket center/corner (x value) absolutelyCPO : Absolute ordinate of pocket center/corner (y value)FFD : Plunge feedFFP1 : Sideshift advance valueMID : Maximum plunge depthCDIR : Machining direction (2=clockwise, 3=counterclockwise)FAL : Fine chip allowance for peripheral surfacesVARI : 0= Machining the pocket to full size 1= Roughing and leaving fine chips, 2= FinishingMIDF : Maximum plunge depth when finishingFFP2 : FinishingSSF : Speed for finishingExample of circular pocket milling cycle;Example of circular pocket milling cycle.Let’s program the above part with the G25 cycle in the Fanuc system;∅16 mm carbide-coated flat end milling cutter (T03)O .. .. .. .. ;Program nameT3 M6Tool changeM03 S1400Spindle rotation clockwiseG90 G54 G0 X0 Y0 ;Absolute coordinate, workpiece zero point,quick positioning to X and Y axis positionG43 H3 Z25 M08;Positioning of tool #3 with tool lengthcompensation and turning on the coolantG98 G25 X38 Y10 I38 J33 Z-6 R5 Q10 D2 F90Return to origin at the end of cycle machining∅46 mm pocketG0 X38 Y33;Positioning the tool on the X and Y axisG25 X38 Y18 I38 J33 Z-16 R-2 Q10 D2 F90;Machining ∅30 mm pocketG0 X98 Y15;Positioning the tool on the X and Y axisG25 X38 Y18 I98 J33 Z-10 R4 Q10 D2 F90;Machining ∅36 mm pocketG80 ;Cycle cancellationG28 G91 Z0 ;Quick move of the team to the referenceM30;End of programLet's keep in touch! Thanks for subscribing!Oops, something went wrong. Please try again later.Let’s program the part with the G25 cycle in the Fanuc system;∅16 mm carbide flat-end milling cutter (T03)O .. .. .. .. ;Program nameG90 G54T03 D1 M6Tool changeS1000 M03Spindle rotation clockwiseG0 X0 Y0Quick positioning to X and Y axis positionZ20Quick positioning to the Z axis positionPOCKET4(10, 0, 5, ,-16, 15, 38, 33, 50, 100, 2, 3, 0, ,,)Cycle parametersPOCKET4(10, 0, 5, ,-6, 23, 38, 33, 50, 100, 2, 3, 0, ,,)Cycle parametersPOCKET4(10, 0, 5, ,-10, 18, 98, 33, 50, 100, 2, 3, 0, ,,)Cycle parametersM30End of programSimulation of cycles and application on the machineAfter the program is written, the movements of the cutter are checked on the screen of the simulation, and any errors in the program are looked for. If there are mistakes, they can be eliminated before cutting.When the machine lock switch is turned ON before the simulation begins, the progress movements shown on the machine position indicator are shown, but the machine axes do not move (Lock).In the Siemens system, the movements of the cutter are tracked in two dimensions, and at the end of the simulation, a 3D view of the part that was cut is shown.On the simulation monitoring screen, the part profile and tool paths can be checked by simulating the CNC program written by the editor. If there are mistakes in the program, it can be sent back to the editor to be fixed.Pocket milling simulation screen at Siemens.Simulation of our example part.

FFP1 : Pocket emptying advance valueMID : Immersion depth (amount)CDIR : Machining direction (2 = clockwise, 3 = counter-clockwise)FAL : Fine chip allowance for peripheral surfacesVARI : 0= Machining the pocket to full-size 1=Roughing and leaving fine chips, 2=Finishing the chipsMIDF : Maximum plunge depth (feed) when finishingFFP2 : Cutting feed for finishingSSF : Speed for finishingRectangular pocket milling cycle (Siemens)Example of rectangular pocket milling.Let’s program the above part with the G24 cycle in the Fanuc system;∅12 mm Carbide flat-end milling cutter (T09)∅14 mm Carbide flat tip end mill cutter (T07)O .. .. .. .. ;Program nameT9 M6Tool selectionM03 S1400Spindle rotation clockwiseG90 G54 G0 X0 Y0 ;Absolute coordinate, workpiece zero, X andrapid positioning to the Y-axis positionG43 H9 Z25 M08;Positioning of tool #9 with tool lengthcompensation and turning on the coolantG98 G24 X20 Y12 L25 W43 Z-9 R5 Q9 D2 F180;Return to origin command at the end of thecycle and processing of the first pocketG28 G91 Z0;Quick move of the team to the referenceT7 M6Tool selectionM03 S1200;Turning the spindle clockwiseG90 G54 G0 X0 Y0;Absolute coordinate, workpiece zero, rapidpositioning to X and Y axis positionG43 H7 Z20 M08;Positioning of tool #7 with tool lengthcompensation and turning on the coolantG24 X85 Y12 L28 W43 Z-12 R5 Q10 D1.5 F160;Processing the second pocketG80;Cycle cancellationG28 G91 Z0;Quick move of the team to the referenceM30;End of programLet’s program the part with the Pocket cycle in the Siemens system;∅12 mm carbide flat tip end mill cutter (T09)∅14 mm carbide flat tip end mill cutter (T07)O .. .. .. .. ;Program nameG90 G54Absolute coordinate, workpiece zero pointT09 D1 M6Change toolS900 M03Rotating the spindle clockwiseG0 X0 Y0Quick positioning to X and Y axis positionZ20Quick positioning to the Z axis positionPOCKET3(10, 0, 5, ,-9, 25, 43, 6, 32.5, 32.5, 0, 50, 100, 2, 3, 0, ,,)Fill in the cycle parametersT07 D1 M6Change tool.S800 M03Spindle rotation clockwiseG0 X0 Y0Quick positioning to X and Y axis positionZ20Quick positioning to the Z axis positionPOCKET3(10, 0, 5, ,-12, 25, 43, 7, 99, 32.5, 0, 50, 100, 2, 3, 0, ,,)Fill in the cycle parametersM30End of programCircular pocket milling G25A circular pocket milling is done on a part with this cycle and it is just a circular version of the rectangular pocket cycle. Here, the cutter quickly moves to the specified height and the center of the pocket, then slides out from the center to mill the pocket. After each depth passes, it goes back to the middle and keeps going. This process keeps going until the depth of the pocket is reached. The Diameter is a big difference here.Circular pocket milling cycle (Fanuc)In the figure below you can see the pocket roughing and finishing.G25 Circular pocket milling cycle writing format.G25 X… Y… I… J… Z… R… Q… D… F… ;X,Y : Coordinate a point on the circleI, J : Circle center coordinatesZ : Pocket depth (mm)R : Safety distance (mm)Q : The cutter’s side-shift distance for the next chip (mm)D : Plunge amount in Z axis (mm)F : Feed (mm/min.)POCKET4 (RTP, RFP, SDIS, DP, DPR, PRAD, CPA, CPO, FFD, FFP1, MID, CDIR, FAL, VARI, MIDF, FFP2, SSF)Pocket – 4RTP : Rebound distanceRFP : Reference planeSIDS : safety distanceDP : Pocket depthDPR : Pocket depth relative to the reference planePRAD : Radius of pocketCPA : Abscess of pocket center/corner (x value) absolutelyCPO : Absolute ordinate of pocket center/corner (y value)FFD : Plunge feedFFP1 : Sideshift advance valueMID : Maximum plunge depthCDIR : Machining direction (2=clockwise, 3=counterclockwise)FAL : Fine chip allowance for peripheral surfacesVARI : 0= Machining the pocket to full size 1= Roughing and leaving fine chips, 2= FinishingMIDF : Maximum plunge depth when finishingFFP2 : FinishingSSF : Speed for finishingExample of circular pocket milling cycle;Example of circular pocket milling cycle.Let’s program the above part with the G25 cycle in the Fanuc system;∅16 mm carbide-coated flat end milling cutter (T03)O .. .. .. .. ;Program nameT3 M6Tool changeM03 S1400Spindle rotation clockwiseG90 G54 G0 X0 Y0 ;Absolute coordinate, workpiece zero point,quick positioning to X and Y axis positionG43 H3 Z25 M08;Positioning of tool #3 with tool lengthcompensation and turning on the coolantG98 G25 X38 Y10 I38 J33 Z-6 R5 Q10 D2 F90Return to origin at the end of cycle machining∅46 mm pocketG0 X38 Y33;Positioning the tool on the X and Y axisG25 X38 Y18 I38 J33 Z-16 R-2 Q10 D2 F90;Machining ∅30 mm pocketG0 X98 Y15;Positioning the tool on the X and Y axisG25 X38 Y18 I98 J33 Z-10 R4 Q10 D2 F90;Machining ∅36 mm pocketG80 ;Cycle cancellationG28 G91 Z0 ;Quick move of the team to the referenceM30;End of programLet's keep in touch! Thanks for subscribing!Oops, something went wrong. Please try again later.Let’s program the part with the G25 cycle in the Fanuc system;∅16 mm carbide flat-end milling cutter (T03)O .. .. .. .. ;Program nameG90 G54T03 D1 M6Tool changeS1000 M03Spindle rotation clockwiseG0 X0 Y0Quick positioning to X and Y axis positionZ20Quick positioning to the Z axis positionPOCKET4(10, 0, 5, ,-16, 15, 38, 33, 50, 100, 2, 3, 0, ,,)Cycle parametersPOCKET4(10, 0, 5, ,-6, 23, 38, 33, 50, 100, 2, 3, 0, ,,)Cycle parametersPOCKET4(10, 0, 5, ,-10, 18, 98, 33, 50, 100, 2, 3, 0, ,,)Cycle parametersM30End of programSimulation of cycles and application on the machineAfter the program is written, the movements of the cutter are checked on the screen of the simulation, and any errors in the program are looked for. If there are mistakes, they can be eliminated before cutting.When the machine lock switch is turned ON before the simulation begins, the progress movements shown on the machine position indicator are shown, but the machine axes do not move (Lock).In the Siemens system, the movements of the cutter are tracked in two dimensions, and at the end of the simulation, a 3D view of the part that was cut is shown.On the simulation monitoring screen, the part profile and tool paths can be checked by simulating the CNC program written by the editor. If there are mistakes in the program, it can be sent back to the editor to be fixed.Pocket milling simulation screen at Siemens.Simulation of our example part.

Let’s program the above part with the G25 cycle in the Fanuc system;∅16 mm carbide-coated flat end milling cutter (T03)O .. .. .. .. ;Program nameT3 M6Tool changeM03 S1400Spindle rotation clockwiseG90 G54 G0 X0 Y0 ;Absolute coordinate, workpiece zero point,quick positioning to X and Y axis positionG43 H3 Z25 M08;Positioning of tool #3 with tool lengthcompensation and turning on the coolantG98 G25 X38 Y10 I38 J33 Z-6 R5 Q10 D2 F90Return to origin at the end of cycle machining∅46 mm pocketG0 X38 Y33;Positioning the tool on the X and Y axisG25 X38 Y18 I38 J33 Z-16 R-2 Q10 D2 F90;Machining ∅30 mm pocketG0 X98 Y15;Positioning the tool on the X and Y axisG25 X38 Y18 I98 J33 Z-10 R4 Q10 D2 F90;Machining ∅36 mm pocketG80 ;Cycle cancellationG28 G91 Z0 ;Quick move of the team to the referenceM30;End of programLet's keep in touch! Thanks for subscribing!Oops, something went wrong. Please try again later.Let’s program the part with the G25 cycle in the Fanuc system;∅16 mm carbide flat-end milling cutter (T03)O .. .. .. .. ;Program nameG90 G54T03 D1 M6Tool changeS1000 M03Spindle rotation clockwiseG0 X0 Y0Quick positioning to X and Y axis positionZ20Quick positioning to the Z axis positionPOCKET4(10, 0, 5, ,-16, 15, 38, 33, 50, 100, 2, 3, 0, ,,)Cycle parametersPOCKET4(10, 0, 5, ,-6, 23, 38, 33, 50, 100, 2, 3, 0, ,,)Cycle parametersPOCKET4(10, 0, 5, ,-10, 18, 98, 33, 50, 100, 2, 3, 0, ,,)Cycle parametersM30End of programSimulation of cycles and application on the machineAfter the program is written, the movements of the cutter are checked on the screen of the simulation, and any errors in the program are looked for. If there are mistakes, they can be eliminated before cutting.When the machine lock switch is turned ON before the simulation begins, the progress movements shown on the machine position indicator are shown, but the machine axes do not move (Lock).In the Siemens system, the movements of the cutter are tracked in two dimensions, and at the end of the simulation, a 3D view of the part that was cut is shown.On the simulation monitoring screen, the part profile and tool paths can be checked by simulating the CNC program written by the editor. If there are mistakes in the program, it can be sent back to the editor to be fixed.Pocket milling simulation screen at Siemens.Simulation of our example part.

MID : Maximum plunge depthCDIR : Machining direction (2=clockwise, 3=counterclockwise)FAL : Fine chip allowance for peripheral surfacesVARI : 0= Machining the pocket to full size 1= Roughing and leaving fine chips, 2= FinishingMIDF : Maximum plunge depth when finishingFFP2 : FinishingSSF : Speed for finishingExample of circular pocket milling cycle;Example of circular pocket milling cycle.Let’s program the above part with the G25 cycle in the Fanuc system;∅16 mm carbide-coated flat end milling cutter (T03)O .. .. .. .. ;Program nameT3 M6Tool changeM03 S1400Spindle rotation clockwiseG90 G54 G0 X0 Y0 ;Absolute coordinate, workpiece zero point,quick positioning to X and Y axis positionG43 H3 Z25 M08;Positioning of tool #3 with tool lengthcompensation and turning on the coolantG98 G25 X38 Y10 I38 J33 Z-6 R5 Q10 D2 F90Return to origin at the end of cycle machining∅46 mm pocketG0 X38 Y33;Positioning the tool on the X and Y axisG25 X38 Y18 I38 J33 Z-16 R-2 Q10 D2 F90;Machining ∅30 mm pocketG0 X98 Y15;Positioning the tool on the X and Y axisG25 X38 Y18 I98 J33 Z-10 R4 Q10 D2 F90;Machining ∅36 mm pocketG80 ;Cycle cancellationG28 G91 Z0 ;Quick move of the team to the referenceM30;End of programLet's keep in touch! Thanks for subscribing!Oops, something went wrong. Please try again later.Let’s program the part with the G25 cycle in the Fanuc system;∅16 mm carbide flat-end milling cutter (T03)O .. .. .. .. ;Program nameG90 G54T03 D1 M6Tool changeS1000 M03Spindle rotation clockwiseG0 X0 Y0Quick positioning to X and Y axis positionZ20Quick positioning to the Z axis positionPOCKET4(10, 0, 5, ,-16, 15, 38, 33, 50, 100, 2, 3, 0, ,,)Cycle parametersPOCKET4(10, 0, 5, ,-6, 23, 38, 33, 50, 100, 2, 3, 0, ,,)Cycle parametersPOCKET4(10, 0, 5, ,-10, 18, 98, 33, 50, 100, 2, 3, 0, ,,)Cycle parametersM30End of programSimulation of cycles and application on the machineAfter the program is written, the movements of the cutter are checked on the screen of the simulation, and any errors in the program are looked for. If there are mistakes, they can be eliminated before cutting.When the machine lock switch is turned ON before the simulation begins, the progress movements shown on the machine position indicator are shown, but the machine axes do not move (Lock).In the Siemens system, the movements of the cutter are tracked in two dimensions, and at the end of the simulation, a 3D view of the part that was cut is shown.On the simulation monitoring screen, the part profile and tool paths can be checked by simulating the CNC program written by the editor. If there are mistakes in the program, it can be sent back to the editor to be fixed.Pocket milling simulation screen at Siemens.Simulation of our example part.

Buy Peahefy Cone Bit,Chamfering Tool,Step Drill Bit Ti Coating 118° Pagoda Cone HSS Reaming Tool 1/4in Hex Handle 6-35mm from Walmart Canada.

Let’s program the part with the Pocket cycle in the Siemens system;∅12 mm carbide flat tip end mill cutter (T09)∅14 mm carbide flat tip end mill cutter (T07)O .. .. .. .. ;Program nameG90 G54Absolute coordinate, workpiece zero pointT09 D1 M6Change toolS900 M03Rotating the spindle clockwiseG0 X0 Y0Quick positioning to X and Y axis positionZ20Quick positioning to the Z axis positionPOCKET3(10, 0, 5, ,-9, 25, 43, 6, 32.5, 32.5, 0, 50, 100, 2, 3, 0, ,,)Fill in the cycle parametersT07 D1 M6Change tool.S800 M03Spindle rotation clockwiseG0 X0 Y0Quick positioning to X and Y axis positionZ20Quick positioning to the Z axis positionPOCKET3(10, 0, 5, ,-12, 25, 43, 7, 99, 32.5, 0, 50, 100, 2, 3, 0, ,,)Fill in the cycle parametersM30End of programCircular pocket milling G25A circular pocket milling is done on a part with this cycle and it is just a circular version of the rectangular pocket cycle. Here, the cutter quickly moves to the specified height and the center of the pocket, then slides out from the center to mill the pocket. After each depth passes, it goes back to the middle and keeps going. This process keeps going until the depth of the pocket is reached. The Diameter is a big difference here.Circular pocket milling cycle (Fanuc)In the figure below you can see the pocket roughing and finishing.G25 Circular pocket milling cycle writing format.G25 X… Y… I… J… Z… R… Q… D… F… ;X,Y : Coordinate a point on the circleI, J : Circle center coordinatesZ : Pocket depth (mm)R : Safety distance (mm)Q : The cutter’s side-shift distance for the next chip (mm)D : Plunge amount in Z axis (mm)F : Feed (mm/min.)POCKET4 (RTP, RFP, SDIS, DP, DPR, PRAD, CPA, CPO, FFD, FFP1, MID, CDIR, FAL, VARI, MIDF, FFP2, SSF)Pocket – 4RTP : Rebound distanceRFP : Reference planeSIDS : safety distanceDP : Pocket depthDPR : Pocket depth relative to the reference planePRAD : Radius of pocketCPA : Abscess of pocket center/corner (x value) absolutelyCPO : Absolute ordinate of pocket center/corner (y value)FFD : Plunge feedFFP1 : Sideshift advance valueMID : Maximum plunge depthCDIR : Machining direction (2=clockwise, 3=counterclockwise)FAL : Fine chip allowance for peripheral surfacesVARI : 0= Machining the pocket to full size 1= Roughing and leaving fine chips, 2= FinishingMIDF : Maximum plunge depth when finishingFFP2 : FinishingSSF : Speed for finishingExample of circular pocket milling cycle;Example of circular pocket milling cycle.Let’s program the above part with the G25 cycle in the Fanuc system;∅16 mm carbide-coated flat end milling cutter (T03)O .. .. .. .. ;Program nameT3 M6Tool changeM03 S1400Spindle rotation clockwiseG90 G54 G0 X0 Y0 ;Absolute coordinate, workpiece zero point,quick positioning to X and Y axis positionG43 H3 Z25 M08;Positioning of tool #3 with tool lengthcompensation and turning on the coolantG98 G25 X38 Y10 I38 J33 Z-6 R5 Q10 D2 F90Return to origin at the end of cycle machining∅46 mm pocketG0 X38 Y33;Positioning the tool on the X and Y axisG25 X38 Y18 I38 J33 Z-16 R-2 Q10 D2 F90;Machining ∅30 mm pocketG0 X98 Y15;Positioning the tool on the X and Y axisG25 X38 Y18 I98 J33 Z-10 R4 Q10 D2 F90;Machining ∅36 mm pocketG80 ;Cycle cancellationG28 G91 Z0 ;Quick move of the team to the referenceM30;End of programLet's keep in touch! Thanks for subscribing!Oops, something went wrong. Please try again later.Let’s program the part with the G25 cycle in the Fanuc system;∅16 mm carbide flat-end milling cutter (T03)O .. .. .. .. ;Program nameG90 G54T03 D1 M6Tool changeS1000 M03Spindle rotation clockwiseG0 X0 Y0Quick positioning to X and Y axis positionZ20Quick positioning to the Z axis positionPOCKET4(10, 0, 5, ,-16, 15, 38, 33, 50, 100, 2, 3, 0, ,,)Cycle parametersPOCKET4(10, 0, 5, ,-6, 23, 38, 33, 50, 100, 2, 3, 0, ,,)Cycle parametersPOCKET4(10, 0, 5, ,-10, 18, 98, 33, 50, 100, 2, 3, 0, ,,)Cycle parametersM30End of programSimulation of cycles and application on the machineAfter the program is written, the movements of the cutter are checked on the screen of the simulation, and any errors in the program are looked for. If there are mistakes, they can be eliminated before cutting.When the machine lock switch is turned ON before the simulation begins, the progress movements shown on the machine position indicator are shown, but the machine axes do not move (Lock).In the Siemens system, the movements of the cutter are tracked in two dimensions, and at the end of the simulation, a 3D view of the part that was cut is shown.On the simulation monitoring screen, the part profile and tool paths can be checked by simulating the CNC program written by the editor. If there are mistakes in the program, it can be sent back to the editor to be fixed.Pocket milling simulation screen at Siemens.Simulation of our example part.

These 1/4" bits are perfect for grooves, dados rabbets and mortises. The 1/4" shank gives you the flexibility to use them in smaller routers. The range includes ...

POCKET3 (RTP, RFP, SDIS, DP, DPR, LENG, WID, CRAD, CPA, CPO, STA, FFD, FFP1, CDIR, FAL, VARI, MIDF, FFP2, SSF)Pocket-3RTP : Rebound distanceRFP : Reference planeSIDS : safety distanceDP : Pocket depth (absolute)DPR : Pocket depth relative to the reference planeLENG : Length (length) of the pocketWID : Pocket width (width)CRAD : Corner radiusCPA : X value of pocket center/cornerCPO : Y value of pocket center/cornerSTA : Pocket angle (0-180 degrees)FFD : Plunge feedFFP1 : Pocket emptying advance valueMID : Immersion depth (amount)CDIR : Machining direction (2 = clockwise, 3 = counter-clockwise)FAL : Fine chip allowance for peripheral surfacesVARI : 0= Machining the pocket to full-size 1=Roughing and leaving fine chips, 2=Finishing the chipsMIDF : Maximum plunge depth (feed) when finishingFFP2 : Cutting feed for finishingSSF : Speed for finishingRectangular pocket milling cycle (Siemens)Example of rectangular pocket milling.Let’s program the above part with the G24 cycle in the Fanuc system;∅12 mm Carbide flat-end milling cutter (T09)∅14 mm Carbide flat tip end mill cutter (T07)O .. .. .. .. ;Program nameT9 M6Tool selectionM03 S1400Spindle rotation clockwiseG90 G54 G0 X0 Y0 ;Absolute coordinate, workpiece zero, X andrapid positioning to the Y-axis positionG43 H9 Z25 M08;Positioning of tool #9 with tool lengthcompensation and turning on the coolantG98 G24 X20 Y12 L25 W43 Z-9 R5 Q9 D2 F180;Return to origin command at the end of thecycle and processing of the first pocketG28 G91 Z0;Quick move of the team to the referenceT7 M6Tool selectionM03 S1200;Turning the spindle clockwiseG90 G54 G0 X0 Y0;Absolute coordinate, workpiece zero, rapidpositioning to X and Y axis positionG43 H7 Z20 M08;Positioning of tool #7 with tool lengthcompensation and turning on the coolantG24 X85 Y12 L28 W43 Z-12 R5 Q10 D1.5 F160;Processing the second pocketG80;Cycle cancellationG28 G91 Z0;Quick move of the team to the referenceM30;End of programLet’s program the part with the Pocket cycle in the Siemens system;∅12 mm carbide flat tip end mill cutter (T09)∅14 mm carbide flat tip end mill cutter (T07)O .. .. .. .. ;Program nameG90 G54Absolute coordinate, workpiece zero pointT09 D1 M6Change toolS900 M03Rotating the spindle clockwiseG0 X0 Y0Quick positioning to X and Y axis positionZ20Quick positioning to the Z axis positionPOCKET3(10, 0, 5, ,-9, 25, 43, 6, 32.5, 32.5, 0, 50, 100, 2, 3, 0, ,,)Fill in the cycle parametersT07 D1 M6Change tool.S800 M03Spindle rotation clockwiseG0 X0 Y0Quick positioning to X and Y axis positionZ20Quick positioning to the Z axis positionPOCKET3(10, 0, 5, ,-12, 25, 43, 7, 99, 32.5, 0, 50, 100, 2, 3, 0, ,,)Fill in the cycle parametersM30End of programCircular pocket milling G25A circular pocket milling is done on a part with this cycle and it is just a circular version of the rectangular pocket cycle. Here, the cutter quickly moves to the specified height and the center of the pocket, then slides out from the center to mill the pocket. After each depth passes, it goes back to the middle and keeps going. This process keeps going until the depth of the pocket is reached. The Diameter is a big difference here.Circular pocket milling cycle (Fanuc)In the figure below you can see the pocket roughing and finishing.G25 Circular pocket milling cycle writing format.G25 X… Y… I… J… Z… R… Q… D… F… ;X,Y : Coordinate a point on the circleI, J : Circle center coordinatesZ : Pocket depth (mm)R : Safety distance (mm)Q : The cutter’s side-shift distance for the next chip (mm)D : Plunge amount in Z axis (mm)F : Feed (mm/min.)POCKET4 (RTP, RFP, SDIS, DP, DPR, PRAD, CPA, CPO, FFD, FFP1, MID, CDIR, FAL, VARI, MIDF, FFP2, SSF)Pocket – 4RTP : Rebound distanceRFP : Reference planeSIDS : safety distanceDP : Pocket depthDPR : Pocket depth relative to the reference planePRAD : Radius of pocketCPA : Abscess of pocket center/corner (x value) absolutelyCPO : Absolute ordinate of pocket center/corner (y value)FFD : Plunge feedFFP1 : Sideshift advance valueMID : Maximum plunge depthCDIR : Machining direction (2=clockwise, 3=counterclockwise)FAL : Fine chip allowance for peripheral surfacesVARI : 0= Machining the pocket to full size 1= Roughing and leaving fine chips, 2= FinishingMIDF : Maximum plunge depth when finishingFFP2 : FinishingSSF : Speed for finishingExample of circular pocket milling cycle;Example of circular pocket milling cycle.Let’s program the above part with the G25 cycle in the Fanuc system;∅16 mm carbide-coated flat end milling cutter (T03)O .. .. .. .. ;Program nameT3 M6Tool changeM03 S1400Spindle rotation clockwiseG90 G54 G0 X0 Y0 ;Absolute coordinate, workpiece zero point,quick positioning to X and Y axis positionG43 H3 Z25 M08;Positioning of tool #3 with tool lengthcompensation and turning on the coolantG98 G25 X38 Y10 I38 J33 Z-6 R5 Q10 D2 F90Return to origin at the end of cycle machining∅46 mm pocketG0 X38 Y33;Positioning the tool on the X and Y axisG25 X38 Y18 I38 J33 Z-16 R-2 Q10 D2 F90;Machining ∅30 mm pocketG0 X98 Y15;Positioning the tool on the X and Y axisG25 X38 Y18 I98 J33 Z-10 R4 Q10 D2 F90;Machining ∅36 mm pocketG80 ;Cycle cancellationG28 G91 Z0 ;Quick move of the team to the referenceM30;End of programLet's keep in touch! Thanks for subscribing!Oops, something went wrong. Please try again later.Let’s program the part with the G25 cycle in the Fanuc system;∅16 mm carbide flat-end milling cutter (T03)O .. .. .. .. ;Program nameG90 G54T03 D1 M6Tool changeS1000 M03Spindle rotation clockwiseG0 X0 Y0Quick positioning to X and Y axis positionZ20Quick positioning to the Z axis positionPOCKET4(10, 0, 5, ,-16, 15, 38, 33, 50, 100, 2, 3, 0, ,,)Cycle parametersPOCKET4(10, 0, 5, ,-6, 23, 38, 33, 50, 100, 2, 3, 0, ,,)Cycle parametersPOCKET4(10, 0, 5, ,-10, 18, 98, 33, 50, 100, 2, 3, 0, ,,)Cycle parametersM30End of programSimulation of cycles and application on the machineAfter the program is written, the movements of the cutter are checked on the screen of the simulation, and any errors in the program are looked for. If there are mistakes, they can be eliminated before cutting.When the machine lock switch is turned ON before the simulation begins, the progress movements shown on the machine position indicator are shown, but the machine axes do not move (Lock).In the Siemens system, the movements of the cutter are tracked in two dimensions, and at the end of the simulation, a 3D view of the part that was cut is shown.On the simulation monitoring screen, the part profile and tool paths can be checked by simulating the CNC program written by the editor. If there are mistakes in the program, it can be sent back to the editor to be fixed.Pocket milling simulation screen at Siemens.Simulation of our example part.

Check the pictures below;Final CutRough CutOn the right picture, you can see a rough cut, and on the left a final cut for the bottom and walls of the pocket. In our example part the pocket explodes on the bottom so just a contour finish operation can be used too to save time.G24 rectangular pocket milling cycle writing format in the Fanuc system.G24 X…Y… L…W… Z… R… Q… D… F…;X,Y : Coordinates of the lower left corner of the pocketL : Pocket size on the X-axis (mm)W : The width of the pocket on the Y-axis (mm)Z : Pocket depth (mm)R : Safety distance (mm)Q : The cutter’s side-shift distance for the next chip (mm)D : Plunge the amount in the Z axis (mm)F : Progress (mm/min.)If you follow this draft you can cut directly from Fanuc MDI mode or the in-memory program. You need to turn your spindle and give preparation G-codes before cutting. Further, you can see prep. G-codes.This is an embedded pocket cycle for Siemens controllers.POCKET3 (RTP, RFP, SDIS, DP, DPR, LENG, WID, CRAD, CPA, CPO, STA, FFD, FFP1, CDIR, FAL, VARI, MIDF, FFP2, SSF)Pocket-3RTP : Rebound distanceRFP : Reference planeSIDS : safety distanceDP : Pocket depth (absolute)DPR : Pocket depth relative to the reference planeLENG : Length (length) of the pocketWID : Pocket width (width)CRAD : Corner radiusCPA : X value of pocket center/cornerCPO : Y value of pocket center/cornerSTA : Pocket angle (0-180 degrees)FFD : Plunge feedFFP1 : Pocket emptying advance valueMID : Immersion depth (amount)CDIR : Machining direction (2 = clockwise, 3 = counter-clockwise)FAL : Fine chip allowance for peripheral surfacesVARI : 0= Machining the pocket to full-size 1=Roughing and leaving fine chips, 2=Finishing the chipsMIDF : Maximum plunge depth (feed) when finishingFFP2 : Cutting feed for finishingSSF : Speed for finishingRectangular pocket milling cycle (Siemens)Example of rectangular pocket milling.Let’s program the above part with the G24 cycle in the Fanuc system;∅12 mm Carbide flat-end milling cutter (T09)∅14 mm Carbide flat tip end mill cutter (T07)O .. .. .. .. ;Program nameT9 M6Tool selectionM03 S1400Spindle rotation clockwiseG90 G54 G0 X0 Y0 ;Absolute coordinate, workpiece zero, X andrapid positioning to the Y-axis positionG43 H9 Z25 M08;Positioning of tool #9 with tool lengthcompensation and turning on the coolantG98 G24 X20 Y12 L25 W43 Z-9 R5 Q9 D2 F180;Return to origin command at the end of thecycle and processing of the first pocketG28 G91 Z0;Quick move of the team to the referenceT7 M6Tool selectionM03 S1200;Turning the spindle clockwiseG90 G54 G0 X0 Y0;Absolute coordinate, workpiece zero, rapidpositioning to X and Y axis positionG43 H7 Z20 M08;Positioning of tool #7 with tool lengthcompensation and turning on the coolantG24 X85 Y12 L28 W43 Z-12 R5 Q10 D1.5 F160;Processing the second pocketG80;Cycle cancellationG28 G91 Z0;Quick move of the team to the referenceM30;End of programLet’s program the part with the Pocket cycle in the Siemens system;∅12 mm carbide flat tip end mill cutter (T09)∅14 mm carbide flat tip end mill cutter (T07)O .. .. .. .. ;Program nameG90 G54Absolute coordinate, workpiece zero pointT09 D1 M6Change toolS900 M03Rotating the spindle clockwiseG0 X0 Y0Quick positioning to X and Y axis positionZ20Quick positioning to the Z axis positionPOCKET3(10, 0, 5, ,-9, 25, 43, 6, 32.5, 32.5, 0, 50, 100, 2, 3, 0, ,,)Fill in the cycle parametersT07 D1 M6Change tool.S800 M03Spindle rotation clockwiseG0 X0 Y0Quick positioning to X and Y axis positionZ20Quick positioning to the Z axis positionPOCKET3(10, 0, 5, ,-12, 25, 43, 7, 99, 32.5, 0, 50, 100, 2, 3, 0, ,,)Fill in the cycle parametersM30End of programCircular pocket milling G25A circular pocket milling is done on a part with this cycle and it is just a circular version of the rectangular pocket cycle. Here, the cutter quickly moves to the specified height and the center of the pocket, then slides out from the center to mill the pocket. After each depth passes, it goes back to the middle and keeps going. This process keeps going until the depth of the pocket is reached. The Diameter is a big difference here.Circular pocket milling cycle (Fanuc)In the figure below you can see the pocket roughing and finishing.G25 Circular pocket milling cycle writing format.G25 X… Y… I… J… Z… R… Q… D… F… ;X,Y : Coordinate a point on the circleI, J : Circle center coordinatesZ : Pocket depth (mm)R : Safety distance (mm)Q : The cutter’s side-shift distance for the next chip (mm)D : Plunge amount in Z axis (mm)F : Feed (mm/min.)POCKET4 (RTP, RFP, SDIS, DP, DPR, PRAD, CPA, CPO, FFD, FFP1, MID, CDIR, FAL, VARI, MIDF, FFP2, SSF)Pocket – 4RTP : Rebound distanceRFP : Reference planeSIDS : safety distanceDP : Pocket depthDPR : Pocket depth relative to the reference planePRAD : Radius of pocketCPA : Abscess of pocket center/corner (x value) absolutelyCPO : Absolute ordinate of pocket center/corner (y value)FFD : Plunge feedFFP1 : Sideshift advance valueMID : Maximum plunge depthCDIR : Machining direction (2=clockwise, 3=counterclockwise)FAL : Fine chip allowance for peripheral surfacesVARI : 0= Machining the pocket to full size 1= Roughing and leaving fine chips, 2= FinishingMIDF : Maximum plunge depth when finishingFFP2 : FinishingSSF : Speed for finishingExample of circular pocket milling cycle;Example of circular pocket milling cycle.Let’s program the above part with the G25 cycle in the Fanuc system;∅16 mm carbide-coated flat end milling cutter (T03)O .. .. .. .. ;Program nameT3 M6Tool changeM03 S1400Spindle rotation clockwiseG90 G54 G0 X0 Y0 ;Absolute coordinate, workpiece zero point,quick positioning to X and Y axis positionG43 H3 Z25 M08;Positioning of tool #3 with tool lengthcompensation and turning on the coolantG98 G25 X38 Y10 I38 J33 Z-6 R5 Q10 D2 F90Return to origin at the end of cycle machining∅46 mm pocketG0 X38 Y33;Positioning the tool on the X and Y axisG25 X38 Y18 I38 J33 Z-16 R-2 Q10 D2 F90;Machining ∅30 mm pocketG0 X98 Y15;Positioning the tool on the X and Y axisG25 X38 Y18 I98 J33 Z-10 R4 Q10 D2 F90;Machining ∅36 mm pocketG80 ;Cycle cancellationG28 G91 Z0 ;Quick move of the team to the referenceM30;End of programLet's keep in touch! Thanks for subscribing!Oops, something went wrong. Please try again later.Let’s program the part with the G25 cycle in the Fanuc system;∅16 mm carbide flat-end milling cutter (T03)O .. .. .. .. ;Program nameG90 G54T03 D1 M6Tool changeS1000 M03Spindle rotation clockwiseG0 X0 Y0Quick positioning to X and Y axis positionZ20Quick positioning to the Z axis positionPOCKET4(10, 0, 5, ,-16, 15, 38, 33, 50, 100, 2, 3, 0, ,,)Cycle parametersPOCKET4(10, 0, 5, ,-6, 23, 38, 33, 50, 100, 2, 3, 0, ,,)Cycle parametersPOCKET4(10, 0, 5, ,-10, 18, 98, 33, 50, 100, 2, 3, 0, ,,)Cycle parametersM30End of programSimulation of cycles and application on the machineAfter the program is written, the movements of the cutter are checked on the screen of the simulation, and any errors in the program are looked for. If there are mistakes, they can be eliminated before cutting.When the machine lock switch is turned ON before the simulation begins, the progress movements shown on the machine position indicator are shown, but the machine axes do not move (Lock).In the Siemens system, the movements of the cutter are tracked in two dimensions, and at the end of the simulation, a 3D view of the part that was cut is shown.On the simulation monitoring screen, the part profile and tool paths can be checked by simulating the CNC program written by the editor. If there are mistakes in the program, it can be sent back to the editor to be fixed.Pocket milling simulation screen at Siemens.Simulation of our example part.

incompletely burned carbon products and other unidentified gases and vapors that may be toxic. Avoid inhalation. Hazardous Polymerization: Will not occur ...

Jan 19, 2021 — This thing is in a league of its own. It runs smooth and has that pleasing hum to it. The blade tilt and raising mechanism are super smooth and ...

X,Y : Coordinate a point on the circleI, J : Circle center coordinatesZ : Pocket depth (mm)R : Safety distance (mm)Q : The cutter’s side-shift distance for the next chip (mm)D : Plunge amount in Z axis (mm)F : Feed (mm/min.)POCKET4 (RTP, RFP, SDIS, DP, DPR, PRAD, CPA, CPO, FFD, FFP1, MID, CDIR, FAL, VARI, MIDF, FFP2, SSF)Pocket – 4RTP : Rebound distanceRFP : Reference planeSIDS : safety distanceDP : Pocket depthDPR : Pocket depth relative to the reference planePRAD : Radius of pocketCPA : Abscess of pocket center/corner (x value) absolutelyCPO : Absolute ordinate of pocket center/corner (y value)FFD : Plunge feedFFP1 : Sideshift advance valueMID : Maximum plunge depthCDIR : Machining direction (2=clockwise, 3=counterclockwise)FAL : Fine chip allowance for peripheral surfacesVARI : 0= Machining the pocket to full size 1= Roughing and leaving fine chips, 2= FinishingMIDF : Maximum plunge depth when finishingFFP2 : FinishingSSF : Speed for finishingExample of circular pocket milling cycle;Example of circular pocket milling cycle.Let’s program the above part with the G25 cycle in the Fanuc system;∅16 mm carbide-coated flat end milling cutter (T03)O .. .. .. .. ;Program nameT3 M6Tool changeM03 S1400Spindle rotation clockwiseG90 G54 G0 X0 Y0 ;Absolute coordinate, workpiece zero point,quick positioning to X and Y axis positionG43 H3 Z25 M08;Positioning of tool #3 with tool lengthcompensation and turning on the coolantG98 G25 X38 Y10 I38 J33 Z-6 R5 Q10 D2 F90Return to origin at the end of cycle machining∅46 mm pocketG0 X38 Y33;Positioning the tool on the X and Y axisG25 X38 Y18 I38 J33 Z-16 R-2 Q10 D2 F90;Machining ∅30 mm pocketG0 X98 Y15;Positioning the tool on the X and Y axisG25 X38 Y18 I98 J33 Z-10 R4 Q10 D2 F90;Machining ∅36 mm pocketG80 ;Cycle cancellationG28 G91 Z0 ;Quick move of the team to the referenceM30;End of programLet's keep in touch! Thanks for subscribing!Oops, something went wrong. Please try again later.Let’s program the part with the G25 cycle in the Fanuc system;∅16 mm carbide flat-end milling cutter (T03)O .. .. .. .. ;Program nameG90 G54T03 D1 M6Tool changeS1000 M03Spindle rotation clockwiseG0 X0 Y0Quick positioning to X and Y axis positionZ20Quick positioning to the Z axis positionPOCKET4(10, 0, 5, ,-16, 15, 38, 33, 50, 100, 2, 3, 0, ,,)Cycle parametersPOCKET4(10, 0, 5, ,-6, 23, 38, 33, 50, 100, 2, 3, 0, ,,)Cycle parametersPOCKET4(10, 0, 5, ,-10, 18, 98, 33, 50, 100, 2, 3, 0, ,,)Cycle parametersM30End of programSimulation of cycles and application on the machineAfter the program is written, the movements of the cutter are checked on the screen of the simulation, and any errors in the program are looked for. If there are mistakes, they can be eliminated before cutting.When the machine lock switch is turned ON before the simulation begins, the progress movements shown on the machine position indicator are shown, but the machine axes do not move (Lock).In the Siemens system, the movements of the cutter are tracked in two dimensions, and at the end of the simulation, a 3D view of the part that was cut is shown.On the simulation monitoring screen, the part profile and tool paths can be checked by simulating the CNC program written by the editor. If there are mistakes in the program, it can be sent back to the editor to be fixed.Pocket milling simulation screen at Siemens.Simulation of our example part.

G25 Circular pocket milling cycle writing format.G25 X… Y… I… J… Z… R… Q… D… F… ;X,Y : Coordinate a point on the circleI, J : Circle center coordinatesZ : Pocket depth (mm)R : Safety distance (mm)Q : The cutter’s side-shift distance for the next chip (mm)D : Plunge amount in Z axis (mm)F : Feed (mm/min.)POCKET4 (RTP, RFP, SDIS, DP, DPR, PRAD, CPA, CPO, FFD, FFP1, MID, CDIR, FAL, VARI, MIDF, FFP2, SSF)Pocket – 4RTP : Rebound distanceRFP : Reference planeSIDS : safety distanceDP : Pocket depthDPR : Pocket depth relative to the reference planePRAD : Radius of pocketCPA : Abscess of pocket center/corner (x value) absolutelyCPO : Absolute ordinate of pocket center/corner (y value)FFD : Plunge feedFFP1 : Sideshift advance valueMID : Maximum plunge depthCDIR : Machining direction (2=clockwise, 3=counterclockwise)FAL : Fine chip allowance for peripheral surfacesVARI : 0= Machining the pocket to full size 1= Roughing and leaving fine chips, 2= FinishingMIDF : Maximum plunge depth when finishingFFP2 : FinishingSSF : Speed for finishingExample of circular pocket milling cycle;Example of circular pocket milling cycle.Let’s program the above part with the G25 cycle in the Fanuc system;∅16 mm carbide-coated flat end milling cutter (T03)O .. .. .. .. ;Program nameT3 M6Tool changeM03 S1400Spindle rotation clockwiseG90 G54 G0 X0 Y0 ;Absolute coordinate, workpiece zero point,quick positioning to X and Y axis positionG43 H3 Z25 M08;Positioning of tool #3 with tool lengthcompensation and turning on the coolantG98 G25 X38 Y10 I38 J33 Z-6 R5 Q10 D2 F90Return to origin at the end of cycle machining∅46 mm pocketG0 X38 Y33;Positioning the tool on the X and Y axisG25 X38 Y18 I38 J33 Z-16 R-2 Q10 D2 F90;Machining ∅30 mm pocketG0 X98 Y15;Positioning the tool on the X and Y axisG25 X38 Y18 I98 J33 Z-10 R4 Q10 D2 F90;Machining ∅36 mm pocketG80 ;Cycle cancellationG28 G91 Z0 ;Quick move of the team to the referenceM30;End of programLet's keep in touch! Thanks for subscribing!Oops, something went wrong. Please try again later.Let’s program the part with the G25 cycle in the Fanuc system;∅16 mm carbide flat-end milling cutter (T03)O .. .. .. .. ;Program nameG90 G54T03 D1 M6Tool changeS1000 M03Spindle rotation clockwiseG0 X0 Y0Quick positioning to X and Y axis positionZ20Quick positioning to the Z axis positionPOCKET4(10, 0, 5, ,-16, 15, 38, 33, 50, 100, 2, 3, 0, ,,)Cycle parametersPOCKET4(10, 0, 5, ,-6, 23, 38, 33, 50, 100, 2, 3, 0, ,,)Cycle parametersPOCKET4(10, 0, 5, ,-10, 18, 98, 33, 50, 100, 2, 3, 0, ,,)Cycle parametersM30End of programSimulation of cycles and application on the machineAfter the program is written, the movements of the cutter are checked on the screen of the simulation, and any errors in the program are looked for. If there are mistakes, they can be eliminated before cutting.When the machine lock switch is turned ON before the simulation begins, the progress movements shown on the machine position indicator are shown, but the machine axes do not move (Lock).In the Siemens system, the movements of the cutter are tracked in two dimensions, and at the end of the simulation, a 3D view of the part that was cut is shown.On the simulation monitoring screen, the part profile and tool paths can be checked by simulating the CNC program written by the editor. If there are mistakes in the program, it can be sent back to the editor to be fixed.Pocket milling simulation screen at Siemens.Simulation of our example part.

Find here Tap Spindle, Water Tap Spindle manufacturers, suppliers & exporters in India. Get contact details & address of companies manufacturing and ...

As you can guess pocket milling can be rectangular or circular. Circular Pocket milling can be used as a rough machining operation for bearing beds and housing. Rectangular pocket milling is for machining small pools on the surface of the parts.

G24 X…Y… L…W… Z… R… Q… D… F…;X,Y : Coordinates of the lower left corner of the pocketL : Pocket size on the X-axis (mm)W : The width of the pocket on the Y-axis (mm)Z : Pocket depth (mm)R : Safety distance (mm)Q : The cutter’s side-shift distance for the next chip (mm)D : Plunge the amount in the Z axis (mm)F : Progress (mm/min.)If you follow this draft you can cut directly from Fanuc MDI mode or the in-memory program. You need to turn your spindle and give preparation G-codes before cutting. Further, you can see prep. G-codes.This is an embedded pocket cycle for Siemens controllers.POCKET3 (RTP, RFP, SDIS, DP, DPR, LENG, WID, CRAD, CPA, CPO, STA, FFD, FFP1, CDIR, FAL, VARI, MIDF, FFP2, SSF)Pocket-3RTP : Rebound distanceRFP : Reference planeSIDS : safety distanceDP : Pocket depth (absolute)DPR : Pocket depth relative to the reference planeLENG : Length (length) of the pocketWID : Pocket width (width)CRAD : Corner radiusCPA : X value of pocket center/cornerCPO : Y value of pocket center/cornerSTA : Pocket angle (0-180 degrees)FFD : Plunge feedFFP1 : Pocket emptying advance valueMID : Immersion depth (amount)CDIR : Machining direction (2 = clockwise, 3 = counter-clockwise)FAL : Fine chip allowance for peripheral surfacesVARI : 0= Machining the pocket to full-size 1=Roughing and leaving fine chips, 2=Finishing the chipsMIDF : Maximum plunge depth (feed) when finishingFFP2 : Cutting feed for finishingSSF : Speed for finishingRectangular pocket milling cycle (Siemens)Example of rectangular pocket milling.Let’s program the above part with the G24 cycle in the Fanuc system;∅12 mm Carbide flat-end milling cutter (T09)∅14 mm Carbide flat tip end mill cutter (T07)O .. .. .. .. ;Program nameT9 M6Tool selectionM03 S1400Spindle rotation clockwiseG90 G54 G0 X0 Y0 ;Absolute coordinate, workpiece zero, X andrapid positioning to the Y-axis positionG43 H9 Z25 M08;Positioning of tool #9 with tool lengthcompensation and turning on the coolantG98 G24 X20 Y12 L25 W43 Z-9 R5 Q9 D2 F180;Return to origin command at the end of thecycle and processing of the first pocketG28 G91 Z0;Quick move of the team to the referenceT7 M6Tool selectionM03 S1200;Turning the spindle clockwiseG90 G54 G0 X0 Y0;Absolute coordinate, workpiece zero, rapidpositioning to X and Y axis positionG43 H7 Z20 M08;Positioning of tool #7 with tool lengthcompensation and turning on the coolantG24 X85 Y12 L28 W43 Z-12 R5 Q10 D1.5 F160;Processing the second pocketG80;Cycle cancellationG28 G91 Z0;Quick move of the team to the referenceM30;End of programLet’s program the part with the Pocket cycle in the Siemens system;∅12 mm carbide flat tip end mill cutter (T09)∅14 mm carbide flat tip end mill cutter (T07)O .. .. .. .. ;Program nameG90 G54Absolute coordinate, workpiece zero pointT09 D1 M6Change toolS900 M03Rotating the spindle clockwiseG0 X0 Y0Quick positioning to X and Y axis positionZ20Quick positioning to the Z axis positionPOCKET3(10, 0, 5, ,-9, 25, 43, 6, 32.5, 32.5, 0, 50, 100, 2, 3, 0, ,,)Fill in the cycle parametersT07 D1 M6Change tool.S800 M03Spindle rotation clockwiseG0 X0 Y0Quick positioning to X and Y axis positionZ20Quick positioning to the Z axis positionPOCKET3(10, 0, 5, ,-12, 25, 43, 7, 99, 32.5, 0, 50, 100, 2, 3, 0, ,,)Fill in the cycle parametersM30End of programCircular pocket milling G25A circular pocket milling is done on a part with this cycle and it is just a circular version of the rectangular pocket cycle. Here, the cutter quickly moves to the specified height and the center of the pocket, then slides out from the center to mill the pocket. After each depth passes, it goes back to the middle and keeps going. This process keeps going until the depth of the pocket is reached. The Diameter is a big difference here.Circular pocket milling cycle (Fanuc)In the figure below you can see the pocket roughing and finishing.G25 Circular pocket milling cycle writing format.G25 X… Y… I… J… Z… R… Q… D… F… ;X,Y : Coordinate a point on the circleI, J : Circle center coordinatesZ : Pocket depth (mm)R : Safety distance (mm)Q : The cutter’s side-shift distance for the next chip (mm)D : Plunge amount in Z axis (mm)F : Feed (mm/min.)POCKET4 (RTP, RFP, SDIS, DP, DPR, PRAD, CPA, CPO, FFD, FFP1, MID, CDIR, FAL, VARI, MIDF, FFP2, SSF)Pocket – 4RTP : Rebound distanceRFP : Reference planeSIDS : safety distanceDP : Pocket depthDPR : Pocket depth relative to the reference planePRAD : Radius of pocketCPA : Abscess of pocket center/corner (x value) absolutelyCPO : Absolute ordinate of pocket center/corner (y value)FFD : Plunge feedFFP1 : Sideshift advance valueMID : Maximum plunge depthCDIR : Machining direction (2=clockwise, 3=counterclockwise)FAL : Fine chip allowance for peripheral surfacesVARI : 0= Machining the pocket to full size 1= Roughing and leaving fine chips, 2= FinishingMIDF : Maximum plunge depth when finishingFFP2 : FinishingSSF : Speed for finishingExample of circular pocket milling cycle;Example of circular pocket milling cycle.Let’s program the above part with the G25 cycle in the Fanuc system;∅16 mm carbide-coated flat end milling cutter (T03)O .. .. .. .. ;Program nameT3 M6Tool changeM03 S1400Spindle rotation clockwiseG90 G54 G0 X0 Y0 ;Absolute coordinate, workpiece zero point,quick positioning to X and Y axis positionG43 H3 Z25 M08;Positioning of tool #3 with tool lengthcompensation and turning on the coolantG98 G25 X38 Y10 I38 J33 Z-6 R5 Q10 D2 F90Return to origin at the end of cycle machining∅46 mm pocketG0 X38 Y33;Positioning the tool on the X and Y axisG25 X38 Y18 I38 J33 Z-16 R-2 Q10 D2 F90;Machining ∅30 mm pocketG0 X98 Y15;Positioning the tool on the X and Y axisG25 X38 Y18 I98 J33 Z-10 R4 Q10 D2 F90;Machining ∅36 mm pocketG80 ;Cycle cancellationG28 G91 Z0 ;Quick move of the team to the referenceM30;End of programLet's keep in touch! Thanks for subscribing!Oops, something went wrong. Please try again later.Let’s program the part with the G25 cycle in the Fanuc system;∅16 mm carbide flat-end milling cutter (T03)O .. .. .. .. ;Program nameG90 G54T03 D1 M6Tool changeS1000 M03Spindle rotation clockwiseG0 X0 Y0Quick positioning to X and Y axis positionZ20Quick positioning to the Z axis positionPOCKET4(10, 0, 5, ,-16, 15, 38, 33, 50, 100, 2, 3, 0, ,,)Cycle parametersPOCKET4(10, 0, 5, ,-6, 23, 38, 33, 50, 100, 2, 3, 0, ,,)Cycle parametersPOCKET4(10, 0, 5, ,-10, 18, 98, 33, 50, 100, 2, 3, 0, ,,)Cycle parametersM30End of programSimulation of cycles and application on the machineAfter the program is written, the movements of the cutter are checked on the screen of the simulation, and any errors in the program are looked for. If there are mistakes, they can be eliminated before cutting.When the machine lock switch is turned ON before the simulation begins, the progress movements shown on the machine position indicator are shown, but the machine axes do not move (Lock).In the Siemens system, the movements of the cutter are tracked in two dimensions, and at the end of the simulation, a 3D view of the part that was cut is shown.On the simulation monitoring screen, the part profile and tool paths can be checked by simulating the CNC program written by the editor. If there are mistakes in the program, it can be sent back to the editor to be fixed.Pocket milling simulation screen at Siemens.Simulation of our example part.

F Zhang · 2020 · 19 — The microstructure of the steel samples contained pearlite, bainite, martensite, and retained austenite phase. The microstructure after forging ...

In the figure below you can see the pocket roughing and finishing.G25 Circular pocket milling cycle writing format.G25 X… Y… I… J… Z… R… Q… D… F… ;X,Y : Coordinate a point on the circleI, J : Circle center coordinatesZ : Pocket depth (mm)R : Safety distance (mm)Q : The cutter’s side-shift distance for the next chip (mm)D : Plunge amount in Z axis (mm)F : Feed (mm/min.)POCKET4 (RTP, RFP, SDIS, DP, DPR, PRAD, CPA, CPO, FFD, FFP1, MID, CDIR, FAL, VARI, MIDF, FFP2, SSF)Pocket – 4RTP : Rebound distanceRFP : Reference planeSIDS : safety distanceDP : Pocket depthDPR : Pocket depth relative to the reference planePRAD : Radius of pocketCPA : Abscess of pocket center/corner (x value) absolutelyCPO : Absolute ordinate of pocket center/corner (y value)FFD : Plunge feedFFP1 : Sideshift advance valueMID : Maximum plunge depthCDIR : Machining direction (2=clockwise, 3=counterclockwise)FAL : Fine chip allowance for peripheral surfacesVARI : 0= Machining the pocket to full size 1= Roughing and leaving fine chips, 2= FinishingMIDF : Maximum plunge depth when finishingFFP2 : FinishingSSF : Speed for finishingExample of circular pocket milling cycle;Example of circular pocket milling cycle.Let’s program the above part with the G25 cycle in the Fanuc system;∅16 mm carbide-coated flat end milling cutter (T03)O .. .. .. .. ;Program nameT3 M6Tool changeM03 S1400Spindle rotation clockwiseG90 G54 G0 X0 Y0 ;Absolute coordinate, workpiece zero point,quick positioning to X and Y axis positionG43 H3 Z25 M08;Positioning of tool #3 with tool lengthcompensation and turning on the coolantG98 G25 X38 Y10 I38 J33 Z-6 R5 Q10 D2 F90Return to origin at the end of cycle machining∅46 mm pocketG0 X38 Y33;Positioning the tool on the X and Y axisG25 X38 Y18 I38 J33 Z-16 R-2 Q10 D2 F90;Machining ∅30 mm pocketG0 X98 Y15;Positioning the tool on the X and Y axisG25 X38 Y18 I98 J33 Z-10 R4 Q10 D2 F90;Machining ∅36 mm pocketG80 ;Cycle cancellationG28 G91 Z0 ;Quick move of the team to the referenceM30;End of programLet's keep in touch! Thanks for subscribing!Oops, something went wrong. Please try again later.Let’s program the part with the G25 cycle in the Fanuc system;∅16 mm carbide flat-end milling cutter (T03)O .. .. .. .. ;Program nameG90 G54T03 D1 M6Tool changeS1000 M03Spindle rotation clockwiseG0 X0 Y0Quick positioning to X and Y axis positionZ20Quick positioning to the Z axis positionPOCKET4(10, 0, 5, ,-16, 15, 38, 33, 50, 100, 2, 3, 0, ,,)Cycle parametersPOCKET4(10, 0, 5, ,-6, 23, 38, 33, 50, 100, 2, 3, 0, ,,)Cycle parametersPOCKET4(10, 0, 5, ,-10, 18, 98, 33, 50, 100, 2, 3, 0, ,,)Cycle parametersM30End of programSimulation of cycles and application on the machineAfter the program is written, the movements of the cutter are checked on the screen of the simulation, and any errors in the program are looked for. If there are mistakes, they can be eliminated before cutting.When the machine lock switch is turned ON before the simulation begins, the progress movements shown on the machine position indicator are shown, but the machine axes do not move (Lock).In the Siemens system, the movements of the cutter are tracked in two dimensions, and at the end of the simulation, a 3D view of the part that was cut is shown.On the simulation monitoring screen, the part profile and tool paths can be checked by simulating the CNC program written by the editor. If there are mistakes in the program, it can be sent back to the editor to be fixed.Pocket milling simulation screen at Siemens.Simulation of our example part.

Let’s program the part with the G25 cycle in the Fanuc system;∅16 mm carbide flat-end milling cutter (T03)O .. .. .. .. ;Program nameG90 G54T03 D1 M6Tool changeS1000 M03Spindle rotation clockwiseG0 X0 Y0Quick positioning to X and Y axis positionZ20Quick positioning to the Z axis positionPOCKET4(10, 0, 5, ,-16, 15, 38, 33, 50, 100, 2, 3, 0, ,,)Cycle parametersPOCKET4(10, 0, 5, ,-6, 23, 38, 33, 50, 100, 2, 3, 0, ,,)Cycle parametersPOCKET4(10, 0, 5, ,-10, 18, 98, 33, 50, 100, 2, 3, 0, ,,)Cycle parametersM30End of programSimulation of cycles and application on the machineAfter the program is written, the movements of the cutter are checked on the screen of the simulation, and any errors in the program are looked for. If there are mistakes, they can be eliminated before cutting.When the machine lock switch is turned ON before the simulation begins, the progress movements shown on the machine position indicator are shown, but the machine axes do not move (Lock).In the Siemens system, the movements of the cutter are tracked in two dimensions, and at the end of the simulation, a 3D view of the part that was cut is shown.On the simulation monitoring screen, the part profile and tool paths can be checked by simulating the CNC program written by the editor. If there are mistakes in the program, it can be sent back to the editor to be fixed.Pocket milling simulation screen at Siemens.Simulation of our example part.

These days CNC operators and programmer who is familiar with CNC machining cycles are considered a master. Because all machining jobs don’t need to be done by a complex cad/cam system. Basically, we can use in-build machining cycles to fast programs in a CNC controller or with a text editor on a computer.Pocket Machining in actionLet's keep in touch! Thanks for subscribing!Oops, something went wrong. Please try again later.One of the powerful G-Code cycles is the Pocket Milling Cycle. Its powers come from its algorithms which can generate complex circular and rectangular-linear toolpaths with just variables, and G-code properties. G24 and 25 are often used for pocket milling with CNC machines.What cutter, tool is used for pocket milling? Endmills are used to machine rectangular and circular pockets.As you can guess pocket milling can be rectangular or circular. Circular Pocket milling can be used as a rough machining operation for bearing beds and housing. Rectangular pocket milling is for machining small pools on the surface of the parts.Also at the end of this article, we will give some pro tips for you to use these cycles to hack other operations which will show you more professionalism in your workshop.The figure above shows toolpaths in rectangular and circular pocket milling cycles.What is the difference between pocket milling and profile milling?  With profile machining, longitudinal cutting is usually done, while pocket milling involves creating pockets or cavities in a workpiece using various toolpath strategies, such as circular or rectangular patterns, with stepovers dependent on the tool size, shape, and desired finish.The structure of these cycles is like that of face milling cycles. Once the parameters for the cycle have been entered, rectangular or circular pocket milling can be done. For the rectangular pocketing cycle, the code G24 is used, and for the circular pocketing cycle, the code G25 is used.It is important to set parameters like the size of the pocket, the depth of cut, the point(height) of rapid arrival, and the amount of cutter side-shift (side-cut). Let’s look at them in more depth.How to do pocket milling?First decide your stock allowances, than basic pocket milling can be done with this steps;1-Touch to top of workpiece.2-Plunge with suitable plunging feedrate.3-Machine countours with side steps until come to edge of pocket.4-Repeat step-2 and step-3 untill you arrive to final depth.5-Give a finish pass to the walls in full-depth.6-Give a finish on floor surface of pocket on final depth.Rectangular pocket milling cycle (Fanuc)Rectangular pocket milling G24Before continuing, let’s understand how pocket milling works in general. In the below figure as you can see W, and L variables define the width and height of the pocket, R-value is the depth of the cut. As you can guess we shouldn`t plunge all depths of cut at one time to avoid tool breakage.So we should plunge a 2mm machine pocket and plunge again and machine pocket again. This cycle continues until we hit the final depth. Let us say we machine a pocket that has an 8mm (0.315 inches) depth.So if we plunge 2mm(0.079 inches) at one time then it will take 4 pocket machining at the depths of -2mm,-4mm,-6mm,-8mm, (in inches -0.079,-0.157,-0.236,-0.315). Also, we should give a finish pass on the final depth, so the maximum plunging depth should be 7.9mm so we can give a 0.1 finish pass.Check the pictures below;Final CutRough CutOn the right picture, you can see a rough cut, and on the left a final cut for the bottom and walls of the pocket. In our example part the pocket explodes on the bottom so just a contour finish operation can be used too to save time.G24 rectangular pocket milling cycle writing format in the Fanuc system.G24 X…Y… L…W… Z… R… Q… D… F…;X,Y : Coordinates of the lower left corner of the pocketL : Pocket size on the X-axis (mm)W : The width of the pocket on the Y-axis (mm)Z : Pocket depth (mm)R : Safety distance (mm)Q : The cutter’s side-shift distance for the next chip (mm)D : Plunge the amount in the Z axis (mm)F : Progress (mm/min.)If you follow this draft you can cut directly from Fanuc MDI mode or the in-memory program. You need to turn your spindle and give preparation G-codes before cutting. Further, you can see prep. G-codes.This is an embedded pocket cycle for Siemens controllers.POCKET3 (RTP, RFP, SDIS, DP, DPR, LENG, WID, CRAD, CPA, CPO, STA, FFD, FFP1, CDIR, FAL, VARI, MIDF, FFP2, SSF)Pocket-3RTP : Rebound distanceRFP : Reference planeSIDS : safety distanceDP : Pocket depth (absolute)DPR : Pocket depth relative to the reference planeLENG : Length (length) of the pocketWID : Pocket width (width)CRAD : Corner radiusCPA : X value of pocket center/cornerCPO : Y value of pocket center/cornerSTA : Pocket angle (0-180 degrees)FFD : Plunge feedFFP1 : Pocket emptying advance valueMID : Immersion depth (amount)CDIR : Machining direction (2 = clockwise, 3 = counter-clockwise)FAL : Fine chip allowance for peripheral surfacesVARI : 0= Machining the pocket to full-size 1=Roughing and leaving fine chips, 2=Finishing the chipsMIDF : Maximum plunge depth (feed) when finishingFFP2 : Cutting feed for finishingSSF : Speed for finishingRectangular pocket milling cycle (Siemens)Example of rectangular pocket milling.Let’s program the above part with the G24 cycle in the Fanuc system;∅12 mm Carbide flat-end milling cutter (T09)∅14 mm Carbide flat tip end mill cutter (T07)O .. .. .. .. ;Program nameT9 M6Tool selectionM03 S1400Spindle rotation clockwiseG90 G54 G0 X0 Y0 ;Absolute coordinate, workpiece zero, X andrapid positioning to the Y-axis positionG43 H9 Z25 M08;Positioning of tool #9 with tool lengthcompensation and turning on the coolantG98 G24 X20 Y12 L25 W43 Z-9 R5 Q9 D2 F180;Return to origin command at the end of thecycle and processing of the first pocketG28 G91 Z0;Quick move of the team to the referenceT7 M6Tool selectionM03 S1200;Turning the spindle clockwiseG90 G54 G0 X0 Y0;Absolute coordinate, workpiece zero, rapidpositioning to X and Y axis positionG43 H7 Z20 M08;Positioning of tool #7 with tool lengthcompensation and turning on the coolantG24 X85 Y12 L28 W43 Z-12 R5 Q10 D1.5 F160;Processing the second pocketG80;Cycle cancellationG28 G91 Z0;Quick move of the team to the referenceM30;End of programLet’s program the part with the Pocket cycle in the Siemens system;∅12 mm carbide flat tip end mill cutter (T09)∅14 mm carbide flat tip end mill cutter (T07)O .. .. .. .. ;Program nameG90 G54Absolute coordinate, workpiece zero pointT09 D1 M6Change toolS900 M03Rotating the spindle clockwiseG0 X0 Y0Quick positioning to X and Y axis positionZ20Quick positioning to the Z axis positionPOCKET3(10, 0, 5, ,-9, 25, 43, 6, 32.5, 32.5, 0, 50, 100, 2, 3, 0, ,,)Fill in the cycle parametersT07 D1 M6Change tool.S800 M03Spindle rotation clockwiseG0 X0 Y0Quick positioning to X and Y axis positionZ20Quick positioning to the Z axis positionPOCKET3(10, 0, 5, ,-12, 25, 43, 7, 99, 32.5, 0, 50, 100, 2, 3, 0, ,,)Fill in the cycle parametersM30End of programCircular pocket milling G25A circular pocket milling is done on a part with this cycle and it is just a circular version of the rectangular pocket cycle. Here, the cutter quickly moves to the specified height and the center of the pocket, then slides out from the center to mill the pocket. After each depth passes, it goes back to the middle and keeps going. This process keeps going until the depth of the pocket is reached. The Diameter is a big difference here.Circular pocket milling cycle (Fanuc)In the figure below you can see the pocket roughing and finishing.G25 Circular pocket milling cycle writing format.G25 X… Y… I… J… Z… R… Q… D… F… ;X,Y : Coordinate a point on the circleI, J : Circle center coordinatesZ : Pocket depth (mm)R : Safety distance (mm)Q : The cutter’s side-shift distance for the next chip (mm)D : Plunge amount in Z axis (mm)F : Feed (mm/min.)POCKET4 (RTP, RFP, SDIS, DP, DPR, PRAD, CPA, CPO, FFD, FFP1, MID, CDIR, FAL, VARI, MIDF, FFP2, SSF)Pocket – 4RTP : Rebound distanceRFP : Reference planeSIDS : safety distanceDP : Pocket depthDPR : Pocket depth relative to the reference planePRAD : Radius of pocketCPA : Abscess of pocket center/corner (x value) absolutelyCPO : Absolute ordinate of pocket center/corner (y value)FFD : Plunge feedFFP1 : Sideshift advance valueMID : Maximum plunge depthCDIR : Machining direction (2=clockwise, 3=counterclockwise)FAL : Fine chip allowance for peripheral surfacesVARI : 0= Machining the pocket to full size 1= Roughing and leaving fine chips, 2= FinishingMIDF : Maximum plunge depth when finishingFFP2 : FinishingSSF : Speed for finishingExample of circular pocket milling cycle;Example of circular pocket milling cycle.Let’s program the above part with the G25 cycle in the Fanuc system;∅16 mm carbide-coated flat end milling cutter (T03)O .. .. .. .. ;Program nameT3 M6Tool changeM03 S1400Spindle rotation clockwiseG90 G54 G0 X0 Y0 ;Absolute coordinate, workpiece zero point,quick positioning to X and Y axis positionG43 H3 Z25 M08;Positioning of tool #3 with tool lengthcompensation and turning on the coolantG98 G25 X38 Y10 I38 J33 Z-6 R5 Q10 D2 F90Return to origin at the end of cycle machining∅46 mm pocketG0 X38 Y33;Positioning the tool on the X and Y axisG25 X38 Y18 I38 J33 Z-16 R-2 Q10 D2 F90;Machining ∅30 mm pocketG0 X98 Y15;Positioning the tool on the X and Y axisG25 X38 Y18 I98 J33 Z-10 R4 Q10 D2 F90;Machining ∅36 mm pocketG80 ;Cycle cancellationG28 G91 Z0 ;Quick move of the team to the referenceM30;End of programLet's keep in touch! Thanks for subscribing!Oops, something went wrong. Please try again later.Let’s program the part with the G25 cycle in the Fanuc system;∅16 mm carbide flat-end milling cutter (T03)O .. .. .. .. ;Program nameG90 G54T03 D1 M6Tool changeS1000 M03Spindle rotation clockwiseG0 X0 Y0Quick positioning to X and Y axis positionZ20Quick positioning to the Z axis positionPOCKET4(10, 0, 5, ,-16, 15, 38, 33, 50, 100, 2, 3, 0, ,,)Cycle parametersPOCKET4(10, 0, 5, ,-6, 23, 38, 33, 50, 100, 2, 3, 0, ,,)Cycle parametersPOCKET4(10, 0, 5, ,-10, 18, 98, 33, 50, 100, 2, 3, 0, ,,)Cycle parametersM30End of programSimulation of cycles and application on the machineAfter the program is written, the movements of the cutter are checked on the screen of the simulation, and any errors in the program are looked for. If there are mistakes, they can be eliminated before cutting.When the machine lock switch is turned ON before the simulation begins, the progress movements shown on the machine position indicator are shown, but the machine axes do not move (Lock).In the Siemens system, the movements of the cutter are tracked in two dimensions, and at the end of the simulation, a 3D view of the part that was cut is shown.On the simulation monitoring screen, the part profile and tool paths can be checked by simulating the CNC program written by the editor. If there are mistakes in the program, it can be sent back to the editor to be fixed.Pocket milling simulation screen at Siemens.Simulation of our example part.

Apr 28, 2016 — I acquired a large lot of surplus "Drill America" drills, thousands of them. These packages do appear to be older stock. MOST of the drills are ...

Also at the end of this article, we will give some pro tips for you to use these cycles to hack other operations which will show you more professionalism in your workshop.The figure above shows toolpaths in rectangular and circular pocket milling cycles.What is the difference between pocket milling and profile milling?  With profile machining, longitudinal cutting is usually done, while pocket milling involves creating pockets or cavities in a workpiece using various toolpath strategies, such as circular or rectangular patterns, with stepovers dependent on the tool size, shape, and desired finish.The structure of these cycles is like that of face milling cycles. Once the parameters for the cycle have been entered, rectangular or circular pocket milling can be done. For the rectangular pocketing cycle, the code G24 is used, and for the circular pocketing cycle, the code G25 is used.It is important to set parameters like the size of the pocket, the depth of cut, the point(height) of rapid arrival, and the amount of cutter side-shift (side-cut). Let’s look at them in more depth.How to do pocket milling?First decide your stock allowances, than basic pocket milling can be done with this steps;1-Touch to top of workpiece.2-Plunge with suitable plunging feedrate.3-Machine countours with side steps until come to edge of pocket.4-Repeat step-2 and step-3 untill you arrive to final depth.5-Give a finish pass to the walls in full-depth.6-Give a finish on floor surface of pocket on final depth.Rectangular pocket milling cycle (Fanuc)Rectangular pocket milling G24Before continuing, let’s understand how pocket milling works in general. In the below figure as you can see W, and L variables define the width and height of the pocket, R-value is the depth of the cut. As you can guess we shouldn`t plunge all depths of cut at one time to avoid tool breakage.So we should plunge a 2mm machine pocket and plunge again and machine pocket again. This cycle continues until we hit the final depth. Let us say we machine a pocket that has an 8mm (0.315 inches) depth.So if we plunge 2mm(0.079 inches) at one time then it will take 4 pocket machining at the depths of -2mm,-4mm,-6mm,-8mm, (in inches -0.079,-0.157,-0.236,-0.315). Also, we should give a finish pass on the final depth, so the maximum plunging depth should be 7.9mm so we can give a 0.1 finish pass.Check the pictures below;Final CutRough CutOn the right picture, you can see a rough cut, and on the left a final cut for the bottom and walls of the pocket. In our example part the pocket explodes on the bottom so just a contour finish operation can be used too to save time.G24 rectangular pocket milling cycle writing format in the Fanuc system.G24 X…Y… L…W… Z… R… Q… D… F…;X,Y : Coordinates of the lower left corner of the pocketL : Pocket size on the X-axis (mm)W : The width of the pocket on the Y-axis (mm)Z : Pocket depth (mm)R : Safety distance (mm)Q : The cutter’s side-shift distance for the next chip (mm)D : Plunge the amount in the Z axis (mm)F : Progress (mm/min.)If you follow this draft you can cut directly from Fanuc MDI mode or the in-memory program. You need to turn your spindle and give preparation G-codes before cutting. Further, you can see prep. G-codes.This is an embedded pocket cycle for Siemens controllers.POCKET3 (RTP, RFP, SDIS, DP, DPR, LENG, WID, CRAD, CPA, CPO, STA, FFD, FFP1, CDIR, FAL, VARI, MIDF, FFP2, SSF)Pocket-3RTP : Rebound distanceRFP : Reference planeSIDS : safety distanceDP : Pocket depth (absolute)DPR : Pocket depth relative to the reference planeLENG : Length (length) of the pocketWID : Pocket width (width)CRAD : Corner radiusCPA : X value of pocket center/cornerCPO : Y value of pocket center/cornerSTA : Pocket angle (0-180 degrees)FFD : Plunge feedFFP1 : Pocket emptying advance valueMID : Immersion depth (amount)CDIR : Machining direction (2 = clockwise, 3 = counter-clockwise)FAL : Fine chip allowance for peripheral surfacesVARI : 0= Machining the pocket to full-size 1=Roughing and leaving fine chips, 2=Finishing the chipsMIDF : Maximum plunge depth (feed) when finishingFFP2 : Cutting feed for finishingSSF : Speed for finishingRectangular pocket milling cycle (Siemens)Example of rectangular pocket milling.Let’s program the above part with the G24 cycle in the Fanuc system;∅12 mm Carbide flat-end milling cutter (T09)∅14 mm Carbide flat tip end mill cutter (T07)O .. .. .. .. ;Program nameT9 M6Tool selectionM03 S1400Spindle rotation clockwiseG90 G54 G0 X0 Y0 ;Absolute coordinate, workpiece zero, X andrapid positioning to the Y-axis positionG43 H9 Z25 M08;Positioning of tool #9 with tool lengthcompensation and turning on the coolantG98 G24 X20 Y12 L25 W43 Z-9 R5 Q9 D2 F180;Return to origin command at the end of thecycle and processing of the first pocketG28 G91 Z0;Quick move of the team to the referenceT7 M6Tool selectionM03 S1200;Turning the spindle clockwiseG90 G54 G0 X0 Y0;Absolute coordinate, workpiece zero, rapidpositioning to X and Y axis positionG43 H7 Z20 M08;Positioning of tool #7 with tool lengthcompensation and turning on the coolantG24 X85 Y12 L28 W43 Z-12 R5 Q10 D1.5 F160;Processing the second pocketG80;Cycle cancellationG28 G91 Z0;Quick move of the team to the referenceM30;End of programLet’s program the part with the Pocket cycle in the Siemens system;∅12 mm carbide flat tip end mill cutter (T09)∅14 mm carbide flat tip end mill cutter (T07)O .. .. .. .. ;Program nameG90 G54Absolute coordinate, workpiece zero pointT09 D1 M6Change toolS900 M03Rotating the spindle clockwiseG0 X0 Y0Quick positioning to X and Y axis positionZ20Quick positioning to the Z axis positionPOCKET3(10, 0, 5, ,-9, 25, 43, 6, 32.5, 32.5, 0, 50, 100, 2, 3, 0, ,,)Fill in the cycle parametersT07 D1 M6Change tool.S800 M03Spindle rotation clockwiseG0 X0 Y0Quick positioning to X and Y axis positionZ20Quick positioning to the Z axis positionPOCKET3(10, 0, 5, ,-12, 25, 43, 7, 99, 32.5, 0, 50, 100, 2, 3, 0, ,,)Fill in the cycle parametersM30End of programCircular pocket milling G25A circular pocket milling is done on a part with this cycle and it is just a circular version of the rectangular pocket cycle. Here, the cutter quickly moves to the specified height and the center of the pocket, then slides out from the center to mill the pocket. After each depth passes, it goes back to the middle and keeps going. This process keeps going until the depth of the pocket is reached. The Diameter is a big difference here.Circular pocket milling cycle (Fanuc)In the figure below you can see the pocket roughing and finishing.G25 Circular pocket milling cycle writing format.G25 X… Y… I… J… Z… R… Q… D… F… ;X,Y : Coordinate a point on the circleI, J : Circle center coordinatesZ : Pocket depth (mm)R : Safety distance (mm)Q : The cutter’s side-shift distance for the next chip (mm)D : Plunge amount in Z axis (mm)F : Feed (mm/min.)POCKET4 (RTP, RFP, SDIS, DP, DPR, PRAD, CPA, CPO, FFD, FFP1, MID, CDIR, FAL, VARI, MIDF, FFP2, SSF)Pocket – 4RTP : Rebound distanceRFP : Reference planeSIDS : safety distanceDP : Pocket depthDPR : Pocket depth relative to the reference planePRAD : Radius of pocketCPA : Abscess of pocket center/corner (x value) absolutelyCPO : Absolute ordinate of pocket center/corner (y value)FFD : Plunge feedFFP1 : Sideshift advance valueMID : Maximum plunge depthCDIR : Machining direction (2=clockwise, 3=counterclockwise)FAL : Fine chip allowance for peripheral surfacesVARI : 0= Machining the pocket to full size 1= Roughing and leaving fine chips, 2= FinishingMIDF : Maximum plunge depth when finishingFFP2 : FinishingSSF : Speed for finishingExample of circular pocket milling cycle;Example of circular pocket milling cycle.Let’s program the above part with the G25 cycle in the Fanuc system;∅16 mm carbide-coated flat end milling cutter (T03)O .. .. .. .. ;Program nameT3 M6Tool changeM03 S1400Spindle rotation clockwiseG90 G54 G0 X0 Y0 ;Absolute coordinate, workpiece zero point,quick positioning to X and Y axis positionG43 H3 Z25 M08;Positioning of tool #3 with tool lengthcompensation and turning on the coolantG98 G25 X38 Y10 I38 J33 Z-6 R5 Q10 D2 F90Return to origin at the end of cycle machining∅46 mm pocketG0 X38 Y33;Positioning the tool on the X and Y axisG25 X38 Y18 I38 J33 Z-16 R-2 Q10 D2 F90;Machining ∅30 mm pocketG0 X98 Y15;Positioning the tool on the X and Y axisG25 X38 Y18 I98 J33 Z-10 R4 Q10 D2 F90;Machining ∅36 mm pocketG80 ;Cycle cancellationG28 G91 Z0 ;Quick move of the team to the referenceM30;End of programLet's keep in touch! Thanks for subscribing!Oops, something went wrong. Please try again later.Let’s program the part with the G25 cycle in the Fanuc system;∅16 mm carbide flat-end milling cutter (T03)O .. .. .. .. ;Program nameG90 G54T03 D1 M6Tool changeS1000 M03Spindle rotation clockwiseG0 X0 Y0Quick positioning to X and Y axis positionZ20Quick positioning to the Z axis positionPOCKET4(10, 0, 5, ,-16, 15, 38, 33, 50, 100, 2, 3, 0, ,,)Cycle parametersPOCKET4(10, 0, 5, ,-6, 23, 38, 33, 50, 100, 2, 3, 0, ,,)Cycle parametersPOCKET4(10, 0, 5, ,-10, 18, 98, 33, 50, 100, 2, 3, 0, ,,)Cycle parametersM30End of programSimulation of cycles and application on the machineAfter the program is written, the movements of the cutter are checked on the screen of the simulation, and any errors in the program are looked for. If there are mistakes, they can be eliminated before cutting.When the machine lock switch is turned ON before the simulation begins, the progress movements shown on the machine position indicator are shown, but the machine axes do not move (Lock).In the Siemens system, the movements of the cutter are tracked in two dimensions, and at the end of the simulation, a 3D view of the part that was cut is shown.On the simulation monitoring screen, the part profile and tool paths can be checked by simulating the CNC program written by the editor. If there are mistakes in the program, it can be sent back to the editor to be fixed.Pocket milling simulation screen at Siemens.Simulation of our example part.

So if we plunge 2mm(0.079 inches) at one time then it will take 4 pocket machining at the depths of -2mm,-4mm,-6mm,-8mm, (in inches -0.079,-0.157,-0.236,-0.315). Also, we should give a finish pass on the final depth, so the maximum plunging depth should be 7.9mm so we can give a 0.1 finish pass.

RTP : Rebound distanceRFP : Reference planeSIDS : safety distanceDP : Pocket depthDPR : Pocket depth relative to the reference planePRAD : Radius of pocketCPA : Abscess of pocket center/corner (x value) absolutelyCPO : Absolute ordinate of pocket center/corner (y value)FFD : Plunge feedFFP1 : Sideshift advance valueMID : Maximum plunge depthCDIR : Machining direction (2=clockwise, 3=counterclockwise)FAL : Fine chip allowance for peripheral surfacesVARI : 0= Machining the pocket to full size 1= Roughing and leaving fine chips, 2= FinishingMIDF : Maximum plunge depth when finishingFFP2 : FinishingSSF : Speed for finishingExample of circular pocket milling cycle;Example of circular pocket milling cycle.Let’s program the above part with the G25 cycle in the Fanuc system;∅16 mm carbide-coated flat end milling cutter (T03)O .. .. .. .. ;Program nameT3 M6Tool changeM03 S1400Spindle rotation clockwiseG90 G54 G0 X0 Y0 ;Absolute coordinate, workpiece zero point,quick positioning to X and Y axis positionG43 H3 Z25 M08;Positioning of tool #3 with tool lengthcompensation and turning on the coolantG98 G25 X38 Y10 I38 J33 Z-6 R5 Q10 D2 F90Return to origin at the end of cycle machining∅46 mm pocketG0 X38 Y33;Positioning the tool on the X and Y axisG25 X38 Y18 I38 J33 Z-16 R-2 Q10 D2 F90;Machining ∅30 mm pocketG0 X98 Y15;Positioning the tool on the X and Y axisG25 X38 Y18 I98 J33 Z-10 R4 Q10 D2 F90;Machining ∅36 mm pocketG80 ;Cycle cancellationG28 G91 Z0 ;Quick move of the team to the referenceM30;End of programLet's keep in touch! Thanks for subscribing!Oops, something went wrong. Please try again later.Let’s program the part with the G25 cycle in the Fanuc system;∅16 mm carbide flat-end milling cutter (T03)O .. .. .. .. ;Program nameG90 G54T03 D1 M6Tool changeS1000 M03Spindle rotation clockwiseG0 X0 Y0Quick positioning to X and Y axis positionZ20Quick positioning to the Z axis positionPOCKET4(10, 0, 5, ,-16, 15, 38, 33, 50, 100, 2, 3, 0, ,,)Cycle parametersPOCKET4(10, 0, 5, ,-6, 23, 38, 33, 50, 100, 2, 3, 0, ,,)Cycle parametersPOCKET4(10, 0, 5, ,-10, 18, 98, 33, 50, 100, 2, 3, 0, ,,)Cycle parametersM30End of programSimulation of cycles and application on the machineAfter the program is written, the movements of the cutter are checked on the screen of the simulation, and any errors in the program are looked for. If there are mistakes, they can be eliminated before cutting.When the machine lock switch is turned ON before the simulation begins, the progress movements shown on the machine position indicator are shown, but the machine axes do not move (Lock).In the Siemens system, the movements of the cutter are tracked in two dimensions, and at the end of the simulation, a 3D view of the part that was cut is shown.On the simulation monitoring screen, the part profile and tool paths can be checked by simulating the CNC program written by the editor. If there are mistakes in the program, it can be sent back to the editor to be fixed.Pocket milling simulation screen at Siemens.Simulation of our example part.

This is an embedded pocket cycle for Siemens controllers.POCKET3 (RTP, RFP, SDIS, DP, DPR, LENG, WID, CRAD, CPA, CPO, STA, FFD, FFP1, CDIR, FAL, VARI, MIDF, FFP2, SSF)Pocket-3RTP : Rebound distanceRFP : Reference planeSIDS : safety distanceDP : Pocket depth (absolute)DPR : Pocket depth relative to the reference planeLENG : Length (length) of the pocketWID : Pocket width (width)CRAD : Corner radiusCPA : X value of pocket center/cornerCPO : Y value of pocket center/cornerSTA : Pocket angle (0-180 degrees)FFD : Plunge feedFFP1 : Pocket emptying advance valueMID : Immersion depth (amount)CDIR : Machining direction (2 = clockwise, 3 = counter-clockwise)FAL : Fine chip allowance for peripheral surfacesVARI : 0= Machining the pocket to full-size 1=Roughing and leaving fine chips, 2=Finishing the chipsMIDF : Maximum plunge depth (feed) when finishingFFP2 : Cutting feed for finishingSSF : Speed for finishingRectangular pocket milling cycle (Siemens)Example of rectangular pocket milling.Let’s program the above part with the G24 cycle in the Fanuc system;∅12 mm Carbide flat-end milling cutter (T09)∅14 mm Carbide flat tip end mill cutter (T07)O .. .. .. .. ;Program nameT9 M6Tool selectionM03 S1400Spindle rotation clockwiseG90 G54 G0 X0 Y0 ;Absolute coordinate, workpiece zero, X andrapid positioning to the Y-axis positionG43 H9 Z25 M08;Positioning of tool #9 with tool lengthcompensation and turning on the coolantG98 G24 X20 Y12 L25 W43 Z-9 R5 Q9 D2 F180;Return to origin command at the end of thecycle and processing of the first pocketG28 G91 Z0;Quick move of the team to the referenceT7 M6Tool selectionM03 S1200;Turning the spindle clockwiseG90 G54 G0 X0 Y0;Absolute coordinate, workpiece zero, rapidpositioning to X and Y axis positionG43 H7 Z20 M08;Positioning of tool #7 with tool lengthcompensation and turning on the coolantG24 X85 Y12 L28 W43 Z-12 R5 Q10 D1.5 F160;Processing the second pocketG80;Cycle cancellationG28 G91 Z0;Quick move of the team to the referenceM30;End of programLet’s program the part with the Pocket cycle in the Siemens system;∅12 mm carbide flat tip end mill cutter (T09)∅14 mm carbide flat tip end mill cutter (T07)O .. .. .. .. ;Program nameG90 G54Absolute coordinate, workpiece zero pointT09 D1 M6Change toolS900 M03Rotating the spindle clockwiseG0 X0 Y0Quick positioning to X and Y axis positionZ20Quick positioning to the Z axis positionPOCKET3(10, 0, 5, ,-9, 25, 43, 6, 32.5, 32.5, 0, 50, 100, 2, 3, 0, ,,)Fill in the cycle parametersT07 D1 M6Change tool.S800 M03Spindle rotation clockwiseG0 X0 Y0Quick positioning to X and Y axis positionZ20Quick positioning to the Z axis positionPOCKET3(10, 0, 5, ,-12, 25, 43, 7, 99, 32.5, 0, 50, 100, 2, 3, 0, ,,)Fill in the cycle parametersM30End of programCircular pocket milling G25A circular pocket milling is done on a part with this cycle and it is just a circular version of the rectangular pocket cycle. Here, the cutter quickly moves to the specified height and the center of the pocket, then slides out from the center to mill the pocket. After each depth passes, it goes back to the middle and keeps going. This process keeps going until the depth of the pocket is reached. The Diameter is a big difference here.Circular pocket milling cycle (Fanuc)In the figure below you can see the pocket roughing and finishing.G25 Circular pocket milling cycle writing format.G25 X… Y… I… J… Z… R… Q… D… F… ;X,Y : Coordinate a point on the circleI, J : Circle center coordinatesZ : Pocket depth (mm)R : Safety distance (mm)Q : The cutter’s side-shift distance for the next chip (mm)D : Plunge amount in Z axis (mm)F : Feed (mm/min.)POCKET4 (RTP, RFP, SDIS, DP, DPR, PRAD, CPA, CPO, FFD, FFP1, MID, CDIR, FAL, VARI, MIDF, FFP2, SSF)Pocket – 4RTP : Rebound distanceRFP : Reference planeSIDS : safety distanceDP : Pocket depthDPR : Pocket depth relative to the reference planePRAD : Radius of pocketCPA : Abscess of pocket center/corner (x value) absolutelyCPO : Absolute ordinate of pocket center/corner (y value)FFD : Plunge feedFFP1 : Sideshift advance valueMID : Maximum plunge depthCDIR : Machining direction (2=clockwise, 3=counterclockwise)FAL : Fine chip allowance for peripheral surfacesVARI : 0= Machining the pocket to full size 1= Roughing and leaving fine chips, 2= FinishingMIDF : Maximum plunge depth when finishingFFP2 : FinishingSSF : Speed for finishingExample of circular pocket milling cycle;Example of circular pocket milling cycle.Let’s program the above part with the G25 cycle in the Fanuc system;∅16 mm carbide-coated flat end milling cutter (T03)O .. .. .. .. ;Program nameT3 M6Tool changeM03 S1400Spindle rotation clockwiseG90 G54 G0 X0 Y0 ;Absolute coordinate, workpiece zero point,quick positioning to X and Y axis positionG43 H3 Z25 M08;Positioning of tool #3 with tool lengthcompensation and turning on the coolantG98 G25 X38 Y10 I38 J33 Z-6 R5 Q10 D2 F90Return to origin at the end of cycle machining∅46 mm pocketG0 X38 Y33;Positioning the tool on the X and Y axisG25 X38 Y18 I38 J33 Z-16 R-2 Q10 D2 F90;Machining ∅30 mm pocketG0 X98 Y15;Positioning the tool on the X and Y axisG25 X38 Y18 I98 J33 Z-10 R4 Q10 D2 F90;Machining ∅36 mm pocketG80 ;Cycle cancellationG28 G91 Z0 ;Quick move of the team to the referenceM30;End of programLet's keep in touch! Thanks for subscribing!Oops, something went wrong. Please try again later.Let’s program the part with the G25 cycle in the Fanuc system;∅16 mm carbide flat-end milling cutter (T03)O .. .. .. .. ;Program nameG90 G54T03 D1 M6Tool changeS1000 M03Spindle rotation clockwiseG0 X0 Y0Quick positioning to X and Y axis positionZ20Quick positioning to the Z axis positionPOCKET4(10, 0, 5, ,-16, 15, 38, 33, 50, 100, 2, 3, 0, ,,)Cycle parametersPOCKET4(10, 0, 5, ,-6, 23, 38, 33, 50, 100, 2, 3, 0, ,,)Cycle parametersPOCKET4(10, 0, 5, ,-10, 18, 98, 33, 50, 100, 2, 3, 0, ,,)Cycle parametersM30End of programSimulation of cycles and application on the machineAfter the program is written, the movements of the cutter are checked on the screen of the simulation, and any errors in the program are looked for. If there are mistakes, they can be eliminated before cutting.When the machine lock switch is turned ON before the simulation begins, the progress movements shown on the machine position indicator are shown, but the machine axes do not move (Lock).In the Siemens system, the movements of the cutter are tracked in two dimensions, and at the end of the simulation, a 3D view of the part that was cut is shown.On the simulation monitoring screen, the part profile and tool paths can be checked by simulating the CNC program written by the editor. If there are mistakes in the program, it can be sent back to the editor to be fixed.Pocket milling simulation screen at Siemens.Simulation of our example part.

A circular pocket milling is done on a part with this cycle and it is just a circular version of the rectangular pocket cycle. Here, the cutter quickly moves to the specified height and the center of the pocket, then slides out from the center to mill the pocket. After each depth passes, it goes back to the middle and keeps going. This process keeps going until the depth of the pocket is reached. The Diameter is a big difference here.Circular pocket milling cycle (Fanuc)In the figure below you can see the pocket roughing and finishing.G25 Circular pocket milling cycle writing format.G25 X… Y… I… J… Z… R… Q… D… F… ;X,Y : Coordinate a point on the circleI, J : Circle center coordinatesZ : Pocket depth (mm)R : Safety distance (mm)Q : The cutter’s side-shift distance for the next chip (mm)D : Plunge amount in Z axis (mm)F : Feed (mm/min.)POCKET4 (RTP, RFP, SDIS, DP, DPR, PRAD, CPA, CPO, FFD, FFP1, MID, CDIR, FAL, VARI, MIDF, FFP2, SSF)Pocket – 4RTP : Rebound distanceRFP : Reference planeSIDS : safety distanceDP : Pocket depthDPR : Pocket depth relative to the reference planePRAD : Radius of pocketCPA : Abscess of pocket center/corner (x value) absolutelyCPO : Absolute ordinate of pocket center/corner (y value)FFD : Plunge feedFFP1 : Sideshift advance valueMID : Maximum plunge depthCDIR : Machining direction (2=clockwise, 3=counterclockwise)FAL : Fine chip allowance for peripheral surfacesVARI : 0= Machining the pocket to full size 1= Roughing and leaving fine chips, 2= FinishingMIDF : Maximum plunge depth when finishingFFP2 : FinishingSSF : Speed for finishingExample of circular pocket milling cycle;Example of circular pocket milling cycle.Let’s program the above part with the G25 cycle in the Fanuc system;∅16 mm carbide-coated flat end milling cutter (T03)O .. .. .. .. ;Program nameT3 M6Tool changeM03 S1400Spindle rotation clockwiseG90 G54 G0 X0 Y0 ;Absolute coordinate, workpiece zero point,quick positioning to X and Y axis positionG43 H3 Z25 M08;Positioning of tool #3 with tool lengthcompensation and turning on the coolantG98 G25 X38 Y10 I38 J33 Z-6 R5 Q10 D2 F90Return to origin at the end of cycle machining∅46 mm pocketG0 X38 Y33;Positioning the tool on the X and Y axisG25 X38 Y18 I38 J33 Z-16 R-2 Q10 D2 F90;Machining ∅30 mm pocketG0 X98 Y15;Positioning the tool on the X and Y axisG25 X38 Y18 I98 J33 Z-10 R4 Q10 D2 F90;Machining ∅36 mm pocketG80 ;Cycle cancellationG28 G91 Z0 ;Quick move of the team to the referenceM30;End of programLet's keep in touch! Thanks for subscribing!Oops, something went wrong. Please try again later.Let’s program the part with the G25 cycle in the Fanuc system;∅16 mm carbide flat-end milling cutter (T03)O .. .. .. .. ;Program nameG90 G54T03 D1 M6Tool changeS1000 M03Spindle rotation clockwiseG0 X0 Y0Quick positioning to X and Y axis positionZ20Quick positioning to the Z axis positionPOCKET4(10, 0, 5, ,-16, 15, 38, 33, 50, 100, 2, 3, 0, ,,)Cycle parametersPOCKET4(10, 0, 5, ,-6, 23, 38, 33, 50, 100, 2, 3, 0, ,,)Cycle parametersPOCKET4(10, 0, 5, ,-10, 18, 98, 33, 50, 100, 2, 3, 0, ,,)Cycle parametersM30End of programSimulation of cycles and application on the machineAfter the program is written, the movements of the cutter are checked on the screen of the simulation, and any errors in the program are looked for. If there are mistakes, they can be eliminated before cutting.When the machine lock switch is turned ON before the simulation begins, the progress movements shown on the machine position indicator are shown, but the machine axes do not move (Lock).In the Siemens system, the movements of the cutter are tracked in two dimensions, and at the end of the simulation, a 3D view of the part that was cut is shown.On the simulation monitoring screen, the part profile and tool paths can be checked by simulating the CNC program written by the editor. If there are mistakes in the program, it can be sent back to the editor to be fixed.Pocket milling simulation screen at Siemens.Simulation of our example part.

Workholding devices are used to correctly position the workpiece and protect it from movement caused by forces exerted by the machining tools.

On the right picture, you can see a rough cut, and on the left a final cut for the bottom and walls of the pocket. In our example part the pocket explodes on the bottom so just a contour finish operation can be used too to save time.G24 rectangular pocket milling cycle writing format in the Fanuc system.G24 X…Y… L…W… Z… R… Q… D… F…;X,Y : Coordinates of the lower left corner of the pocketL : Pocket size on the X-axis (mm)W : The width of the pocket on the Y-axis (mm)Z : Pocket depth (mm)R : Safety distance (mm)Q : The cutter’s side-shift distance for the next chip (mm)D : Plunge the amount in the Z axis (mm)F : Progress (mm/min.)If you follow this draft you can cut directly from Fanuc MDI mode or the in-memory program. You need to turn your spindle and give preparation G-codes before cutting. Further, you can see prep. G-codes.This is an embedded pocket cycle for Siemens controllers.POCKET3 (RTP, RFP, SDIS, DP, DPR, LENG, WID, CRAD, CPA, CPO, STA, FFD, FFP1, CDIR, FAL, VARI, MIDF, FFP2, SSF)Pocket-3RTP : Rebound distanceRFP : Reference planeSIDS : safety distanceDP : Pocket depth (absolute)DPR : Pocket depth relative to the reference planeLENG : Length (length) of the pocketWID : Pocket width (width)CRAD : Corner radiusCPA : X value of pocket center/cornerCPO : Y value of pocket center/cornerSTA : Pocket angle (0-180 degrees)FFD : Plunge feedFFP1 : Pocket emptying advance valueMID : Immersion depth (amount)CDIR : Machining direction (2 = clockwise, 3 = counter-clockwise)FAL : Fine chip allowance for peripheral surfacesVARI : 0= Machining the pocket to full-size 1=Roughing and leaving fine chips, 2=Finishing the chipsMIDF : Maximum plunge depth (feed) when finishingFFP2 : Cutting feed for finishingSSF : Speed for finishingRectangular pocket milling cycle (Siemens)Example of rectangular pocket milling.Let’s program the above part with the G24 cycle in the Fanuc system;∅12 mm Carbide flat-end milling cutter (T09)∅14 mm Carbide flat tip end mill cutter (T07)O .. .. .. .. ;Program nameT9 M6Tool selectionM03 S1400Spindle rotation clockwiseG90 G54 G0 X0 Y0 ;Absolute coordinate, workpiece zero, X andrapid positioning to the Y-axis positionG43 H9 Z25 M08;Positioning of tool #9 with tool lengthcompensation and turning on the coolantG98 G24 X20 Y12 L25 W43 Z-9 R5 Q9 D2 F180;Return to origin command at the end of thecycle and processing of the first pocketG28 G91 Z0;Quick move of the team to the referenceT7 M6Tool selectionM03 S1200;Turning the spindle clockwiseG90 G54 G0 X0 Y0;Absolute coordinate, workpiece zero, rapidpositioning to X and Y axis positionG43 H7 Z20 M08;Positioning of tool #7 with tool lengthcompensation and turning on the coolantG24 X85 Y12 L28 W43 Z-12 R5 Q10 D1.5 F160;Processing the second pocketG80;Cycle cancellationG28 G91 Z0;Quick move of the team to the referenceM30;End of programLet’s program the part with the Pocket cycle in the Siemens system;∅12 mm carbide flat tip end mill cutter (T09)∅14 mm carbide flat tip end mill cutter (T07)O .. .. .. .. ;Program nameG90 G54Absolute coordinate, workpiece zero pointT09 D1 M6Change toolS900 M03Rotating the spindle clockwiseG0 X0 Y0Quick positioning to X and Y axis positionZ20Quick positioning to the Z axis positionPOCKET3(10, 0, 5, ,-9, 25, 43, 6, 32.5, 32.5, 0, 50, 100, 2, 3, 0, ,,)Fill in the cycle parametersT07 D1 M6Change tool.S800 M03Spindle rotation clockwiseG0 X0 Y0Quick positioning to X and Y axis positionZ20Quick positioning to the Z axis positionPOCKET3(10, 0, 5, ,-12, 25, 43, 7, 99, 32.5, 0, 50, 100, 2, 3, 0, ,,)Fill in the cycle parametersM30End of programCircular pocket milling G25A circular pocket milling is done on a part with this cycle and it is just a circular version of the rectangular pocket cycle. Here, the cutter quickly moves to the specified height and the center of the pocket, then slides out from the center to mill the pocket. After each depth passes, it goes back to the middle and keeps going. This process keeps going until the depth of the pocket is reached. The Diameter is a big difference here.Circular pocket milling cycle (Fanuc)In the figure below you can see the pocket roughing and finishing.G25 Circular pocket milling cycle writing format.G25 X… Y… I… J… Z… R… Q… D… F… ;X,Y : Coordinate a point on the circleI, J : Circle center coordinatesZ : Pocket depth (mm)R : Safety distance (mm)Q : The cutter’s side-shift distance for the next chip (mm)D : Plunge amount in Z axis (mm)F : Feed (mm/min.)POCKET4 (RTP, RFP, SDIS, DP, DPR, PRAD, CPA, CPO, FFD, FFP1, MID, CDIR, FAL, VARI, MIDF, FFP2, SSF)Pocket – 4RTP : Rebound distanceRFP : Reference planeSIDS : safety distanceDP : Pocket depthDPR : Pocket depth relative to the reference planePRAD : Radius of pocketCPA : Abscess of pocket center/corner (x value) absolutelyCPO : Absolute ordinate of pocket center/corner (y value)FFD : Plunge feedFFP1 : Sideshift advance valueMID : Maximum plunge depthCDIR : Machining direction (2=clockwise, 3=counterclockwise)FAL : Fine chip allowance for peripheral surfacesVARI : 0= Machining the pocket to full size 1= Roughing and leaving fine chips, 2= FinishingMIDF : Maximum plunge depth when finishingFFP2 : FinishingSSF : Speed for finishingExample of circular pocket milling cycle;Example of circular pocket milling cycle.Let’s program the above part with the G25 cycle in the Fanuc system;∅16 mm carbide-coated flat end milling cutter (T03)O .. .. .. .. ;Program nameT3 M6Tool changeM03 S1400Spindle rotation clockwiseG90 G54 G0 X0 Y0 ;Absolute coordinate, workpiece zero point,quick positioning to X and Y axis positionG43 H3 Z25 M08;Positioning of tool #3 with tool lengthcompensation and turning on the coolantG98 G25 X38 Y10 I38 J33 Z-6 R5 Q10 D2 F90Return to origin at the end of cycle machining∅46 mm pocketG0 X38 Y33;Positioning the tool on the X and Y axisG25 X38 Y18 I38 J33 Z-16 R-2 Q10 D2 F90;Machining ∅30 mm pocketG0 X98 Y15;Positioning the tool on the X and Y axisG25 X38 Y18 I98 J33 Z-10 R4 Q10 D2 F90;Machining ∅36 mm pocketG80 ;Cycle cancellationG28 G91 Z0 ;Quick move of the team to the referenceM30;End of programLet's keep in touch! Thanks for subscribing!Oops, something went wrong. Please try again later.Let’s program the part with the G25 cycle in the Fanuc system;∅16 mm carbide flat-end milling cutter (T03)O .. .. .. .. ;Program nameG90 G54T03 D1 M6Tool changeS1000 M03Spindle rotation clockwiseG0 X0 Y0Quick positioning to X and Y axis positionZ20Quick positioning to the Z axis positionPOCKET4(10, 0, 5, ,-16, 15, 38, 33, 50, 100, 2, 3, 0, ,,)Cycle parametersPOCKET4(10, 0, 5, ,-6, 23, 38, 33, 50, 100, 2, 3, 0, ,,)Cycle parametersPOCKET4(10, 0, 5, ,-10, 18, 98, 33, 50, 100, 2, 3, 0, ,,)Cycle parametersM30End of programSimulation of cycles and application on the machineAfter the program is written, the movements of the cutter are checked on the screen of the simulation, and any errors in the program are looked for. If there are mistakes, they can be eliminated before cutting.When the machine lock switch is turned ON before the simulation begins, the progress movements shown on the machine position indicator are shown, but the machine axes do not move (Lock).In the Siemens system, the movements of the cutter are tracked in two dimensions, and at the end of the simulation, a 3D view of the part that was cut is shown.On the simulation monitoring screen, the part profile and tool paths can be checked by simulating the CNC program written by the editor. If there are mistakes in the program, it can be sent back to the editor to be fixed.Pocket milling simulation screen at Siemens.Simulation of our example part.

20241014 — This formula indicates how surface speed (SFM) is affected by the spindle speed (RPM) and cutter diameter. How to Calculate SFM in Machining.

Rectangular pocket milling cycle (Siemens)Example of rectangular pocket milling.Let’s program the above part with the G24 cycle in the Fanuc system;∅12 mm Carbide flat-end milling cutter (T09)∅14 mm Carbide flat tip end mill cutter (T07)O .. .. .. .. ;Program nameT9 M6Tool selectionM03 S1400Spindle rotation clockwiseG90 G54 G0 X0 Y0 ;Absolute coordinate, workpiece zero, X andrapid positioning to the Y-axis positionG43 H9 Z25 M08;Positioning of tool #9 with tool lengthcompensation and turning on the coolantG98 G24 X20 Y12 L25 W43 Z-9 R5 Q9 D2 F180;Return to origin command at the end of thecycle and processing of the first pocketG28 G91 Z0;Quick move of the team to the referenceT7 M6Tool selectionM03 S1200;Turning the spindle clockwiseG90 G54 G0 X0 Y0;Absolute coordinate, workpiece zero, rapidpositioning to X and Y axis positionG43 H7 Z20 M08;Positioning of tool #7 with tool lengthcompensation and turning on the coolantG24 X85 Y12 L28 W43 Z-12 R5 Q10 D1.5 F160;Processing the second pocketG80;Cycle cancellationG28 G91 Z0;Quick move of the team to the referenceM30;End of programLet’s program the part with the Pocket cycle in the Siemens system;∅12 mm carbide flat tip end mill cutter (T09)∅14 mm carbide flat tip end mill cutter (T07)O .. .. .. .. ;Program nameG90 G54Absolute coordinate, workpiece zero pointT09 D1 M6Change toolS900 M03Rotating the spindle clockwiseG0 X0 Y0Quick positioning to X and Y axis positionZ20Quick positioning to the Z axis positionPOCKET3(10, 0, 5, ,-9, 25, 43, 6, 32.5, 32.5, 0, 50, 100, 2, 3, 0, ,,)Fill in the cycle parametersT07 D1 M6Change tool.S800 M03Spindle rotation clockwiseG0 X0 Y0Quick positioning to X and Y axis positionZ20Quick positioning to the Z axis positionPOCKET3(10, 0, 5, ,-12, 25, 43, 7, 99, 32.5, 0, 50, 100, 2, 3, 0, ,,)Fill in the cycle parametersM30End of programCircular pocket milling G25A circular pocket milling is done on a part with this cycle and it is just a circular version of the rectangular pocket cycle. Here, the cutter quickly moves to the specified height and the center of the pocket, then slides out from the center to mill the pocket. After each depth passes, it goes back to the middle and keeps going. This process keeps going until the depth of the pocket is reached. The Diameter is a big difference here.Circular pocket milling cycle (Fanuc)In the figure below you can see the pocket roughing and finishing.G25 Circular pocket milling cycle writing format.G25 X… Y… I… J… Z… R… Q… D… F… ;X,Y : Coordinate a point on the circleI, J : Circle center coordinatesZ : Pocket depth (mm)R : Safety distance (mm)Q : The cutter’s side-shift distance for the next chip (mm)D : Plunge amount in Z axis (mm)F : Feed (mm/min.)POCKET4 (RTP, RFP, SDIS, DP, DPR, PRAD, CPA, CPO, FFD, FFP1, MID, CDIR, FAL, VARI, MIDF, FFP2, SSF)Pocket – 4RTP : Rebound distanceRFP : Reference planeSIDS : safety distanceDP : Pocket depthDPR : Pocket depth relative to the reference planePRAD : Radius of pocketCPA : Abscess of pocket center/corner (x value) absolutelyCPO : Absolute ordinate of pocket center/corner (y value)FFD : Plunge feedFFP1 : Sideshift advance valueMID : Maximum plunge depthCDIR : Machining direction (2=clockwise, 3=counterclockwise)FAL : Fine chip allowance for peripheral surfacesVARI : 0= Machining the pocket to full size 1= Roughing and leaving fine chips, 2= FinishingMIDF : Maximum plunge depth when finishingFFP2 : FinishingSSF : Speed for finishingExample of circular pocket milling cycle;Example of circular pocket milling cycle.Let’s program the above part with the G25 cycle in the Fanuc system;∅16 mm carbide-coated flat end milling cutter (T03)O .. .. .. .. ;Program nameT3 M6Tool changeM03 S1400Spindle rotation clockwiseG90 G54 G0 X0 Y0 ;Absolute coordinate, workpiece zero point,quick positioning to X and Y axis positionG43 H3 Z25 M08;Positioning of tool #3 with tool lengthcompensation and turning on the coolantG98 G25 X38 Y10 I38 J33 Z-6 R5 Q10 D2 F90Return to origin at the end of cycle machining∅46 mm pocketG0 X38 Y33;Positioning the tool on the X and Y axisG25 X38 Y18 I38 J33 Z-16 R-2 Q10 D2 F90;Machining ∅30 mm pocketG0 X98 Y15;Positioning the tool on the X and Y axisG25 X38 Y18 I98 J33 Z-10 R4 Q10 D2 F90;Machining ∅36 mm pocketG80 ;Cycle cancellationG28 G91 Z0 ;Quick move of the team to the referenceM30;End of programLet's keep in touch! Thanks for subscribing!Oops, something went wrong. Please try again later.Let’s program the part with the G25 cycle in the Fanuc system;∅16 mm carbide flat-end milling cutter (T03)O .. .. .. .. ;Program nameG90 G54T03 D1 M6Tool changeS1000 M03Spindle rotation clockwiseG0 X0 Y0Quick positioning to X and Y axis positionZ20Quick positioning to the Z axis positionPOCKET4(10, 0, 5, ,-16, 15, 38, 33, 50, 100, 2, 3, 0, ,,)Cycle parametersPOCKET4(10, 0, 5, ,-6, 23, 38, 33, 50, 100, 2, 3, 0, ,,)Cycle parametersPOCKET4(10, 0, 5, ,-10, 18, 98, 33, 50, 100, 2, 3, 0, ,,)Cycle parametersM30End of programSimulation of cycles and application on the machineAfter the program is written, the movements of the cutter are checked on the screen of the simulation, and any errors in the program are looked for. If there are mistakes, they can be eliminated before cutting.When the machine lock switch is turned ON before the simulation begins, the progress movements shown on the machine position indicator are shown, but the machine axes do not move (Lock).In the Siemens system, the movements of the cutter are tracked in two dimensions, and at the end of the simulation, a 3D view of the part that was cut is shown.On the simulation monitoring screen, the part profile and tool paths can be checked by simulating the CNC program written by the editor. If there are mistakes in the program, it can be sent back to the editor to be fixed.Pocket milling simulation screen at Siemens.Simulation of our example part.

After the program is written, the movements of the cutter are checked on the screen of the simulation, and any errors in the program are looked for. If there are mistakes, they can be eliminated before cutting.When the machine lock switch is turned ON before the simulation begins, the progress movements shown on the machine position indicator are shown, but the machine axes do not move (Lock).In the Siemens system, the movements of the cutter are tracked in two dimensions, and at the end of the simulation, a 3D view of the part that was cut is shown.On the simulation monitoring screen, the part profile and tool paths can be checked by simulating the CNC program written by the editor. If there are mistakes in the program, it can be sent back to the editor to be fixed.Pocket milling simulation screen at Siemens.Simulation of our example part.

2017119 — Straight flute drills: Straight flute drills are an extreme case of low helix drills. They are used for drilling brass and sheet metal. Extra- ...

Example of circular pocket milling cycle;Example of circular pocket milling cycle.Let’s program the above part with the G25 cycle in the Fanuc system;∅16 mm carbide-coated flat end milling cutter (T03)O .. .. .. .. ;Program nameT3 M6Tool changeM03 S1400Spindle rotation clockwiseG90 G54 G0 X0 Y0 ;Absolute coordinate, workpiece zero point,quick positioning to X and Y axis positionG43 H3 Z25 M08;Positioning of tool #3 with tool lengthcompensation and turning on the coolantG98 G25 X38 Y10 I38 J33 Z-6 R5 Q10 D2 F90Return to origin at the end of cycle machining∅46 mm pocketG0 X38 Y33;Positioning the tool on the X and Y axisG25 X38 Y18 I38 J33 Z-16 R-2 Q10 D2 F90;Machining ∅30 mm pocketG0 X98 Y15;Positioning the tool on the X and Y axisG25 X38 Y18 I98 J33 Z-10 R4 Q10 D2 F90;Machining ∅36 mm pocketG80 ;Cycle cancellationG28 G91 Z0 ;Quick move of the team to the referenceM30;End of programLet's keep in touch! Thanks for subscribing!Oops, something went wrong. Please try again later.Let’s program the part with the G25 cycle in the Fanuc system;∅16 mm carbide flat-end milling cutter (T03)O .. .. .. .. ;Program nameG90 G54T03 D1 M6Tool changeS1000 M03Spindle rotation clockwiseG0 X0 Y0Quick positioning to X and Y axis positionZ20Quick positioning to the Z axis positionPOCKET4(10, 0, 5, ,-16, 15, 38, 33, 50, 100, 2, 3, 0, ,,)Cycle parametersPOCKET4(10, 0, 5, ,-6, 23, 38, 33, 50, 100, 2, 3, 0, ,,)Cycle parametersPOCKET4(10, 0, 5, ,-10, 18, 98, 33, 50, 100, 2, 3, 0, ,,)Cycle parametersM30End of programSimulation of cycles and application on the machineAfter the program is written, the movements of the cutter are checked on the screen of the simulation, and any errors in the program are looked for. If there are mistakes, they can be eliminated before cutting.When the machine lock switch is turned ON before the simulation begins, the progress movements shown on the machine position indicator are shown, but the machine axes do not move (Lock).In the Siemens system, the movements of the cutter are tracked in two dimensions, and at the end of the simulation, a 3D view of the part that was cut is shown.On the simulation monitoring screen, the part profile and tool paths can be checked by simulating the CNC program written by the editor. If there are mistakes in the program, it can be sent back to the editor to be fixed.Pocket milling simulation screen at Siemens.Simulation of our example part.

So we should plunge a 2mm machine pocket and plunge again and machine pocket again. This cycle continues until we hit the final depth. Let us say we machine a pocket that has an 8mm (0.315 inches) depth.So if we plunge 2mm(0.079 inches) at one time then it will take 4 pocket machining at the depths of -2mm,-4mm,-6mm,-8mm, (in inches -0.079,-0.157,-0.236,-0.315). Also, we should give a finish pass on the final depth, so the maximum plunging depth should be 7.9mm so we can give a 0.1 finish pass.Check the pictures below;Final CutRough CutOn the right picture, you can see a rough cut, and on the left a final cut for the bottom and walls of the pocket. In our example part the pocket explodes on the bottom so just a contour finish operation can be used too to save time.G24 rectangular pocket milling cycle writing format in the Fanuc system.G24 X…Y… L…W… Z… R… Q… D… F…;X,Y : Coordinates of the lower left corner of the pocketL : Pocket size on the X-axis (mm)W : The width of the pocket on the Y-axis (mm)Z : Pocket depth (mm)R : Safety distance (mm)Q : The cutter’s side-shift distance for the next chip (mm)D : Plunge the amount in the Z axis (mm)F : Progress (mm/min.)If you follow this draft you can cut directly from Fanuc MDI mode or the in-memory program. You need to turn your spindle and give preparation G-codes before cutting. Further, you can see prep. G-codes.This is an embedded pocket cycle for Siemens controllers.POCKET3 (RTP, RFP, SDIS, DP, DPR, LENG, WID, CRAD, CPA, CPO, STA, FFD, FFP1, CDIR, FAL, VARI, MIDF, FFP2, SSF)Pocket-3RTP : Rebound distanceRFP : Reference planeSIDS : safety distanceDP : Pocket depth (absolute)DPR : Pocket depth relative to the reference planeLENG : Length (length) of the pocketWID : Pocket width (width)CRAD : Corner radiusCPA : X value of pocket center/cornerCPO : Y value of pocket center/cornerSTA : Pocket angle (0-180 degrees)FFD : Plunge feedFFP1 : Pocket emptying advance valueMID : Immersion depth (amount)CDIR : Machining direction (2 = clockwise, 3 = counter-clockwise)FAL : Fine chip allowance for peripheral surfacesVARI : 0= Machining the pocket to full-size 1=Roughing and leaving fine chips, 2=Finishing the chipsMIDF : Maximum plunge depth (feed) when finishingFFP2 : Cutting feed for finishingSSF : Speed for finishingRectangular pocket milling cycle (Siemens)Example of rectangular pocket milling.Let’s program the above part with the G24 cycle in the Fanuc system;∅12 mm Carbide flat-end milling cutter (T09)∅14 mm Carbide flat tip end mill cutter (T07)O .. .. .. .. ;Program nameT9 M6Tool selectionM03 S1400Spindle rotation clockwiseG90 G54 G0 X0 Y0 ;Absolute coordinate, workpiece zero, X andrapid positioning to the Y-axis positionG43 H9 Z25 M08;Positioning of tool #9 with tool lengthcompensation and turning on the coolantG98 G24 X20 Y12 L25 W43 Z-9 R5 Q9 D2 F180;Return to origin command at the end of thecycle and processing of the first pocketG28 G91 Z0;Quick move of the team to the referenceT7 M6Tool selectionM03 S1200;Turning the spindle clockwiseG90 G54 G0 X0 Y0;Absolute coordinate, workpiece zero, rapidpositioning to X and Y axis positionG43 H7 Z20 M08;Positioning of tool #7 with tool lengthcompensation and turning on the coolantG24 X85 Y12 L28 W43 Z-12 R5 Q10 D1.5 F160;Processing the second pocketG80;Cycle cancellationG28 G91 Z0;Quick move of the team to the referenceM30;End of programLet’s program the part with the Pocket cycle in the Siemens system;∅12 mm carbide flat tip end mill cutter (T09)∅14 mm carbide flat tip end mill cutter (T07)O .. .. .. .. ;Program nameG90 G54Absolute coordinate, workpiece zero pointT09 D1 M6Change toolS900 M03Rotating the spindle clockwiseG0 X0 Y0Quick positioning to X and Y axis positionZ20Quick positioning to the Z axis positionPOCKET3(10, 0, 5, ,-9, 25, 43, 6, 32.5, 32.5, 0, 50, 100, 2, 3, 0, ,,)Fill in the cycle parametersT07 D1 M6Change tool.S800 M03Spindle rotation clockwiseG0 X0 Y0Quick positioning to X and Y axis positionZ20Quick positioning to the Z axis positionPOCKET3(10, 0, 5, ,-12, 25, 43, 7, 99, 32.5, 0, 50, 100, 2, 3, 0, ,,)Fill in the cycle parametersM30End of programCircular pocket milling G25A circular pocket milling is done on a part with this cycle and it is just a circular version of the rectangular pocket cycle. Here, the cutter quickly moves to the specified height and the center of the pocket, then slides out from the center to mill the pocket. After each depth passes, it goes back to the middle and keeps going. This process keeps going until the depth of the pocket is reached. The Diameter is a big difference here.Circular pocket milling cycle (Fanuc)In the figure below you can see the pocket roughing and finishing.G25 Circular pocket milling cycle writing format.G25 X… Y… I… J… Z… R… Q… D… F… ;X,Y : Coordinate a point on the circleI, J : Circle center coordinatesZ : Pocket depth (mm)R : Safety distance (mm)Q : The cutter’s side-shift distance for the next chip (mm)D : Plunge amount in Z axis (mm)F : Feed (mm/min.)POCKET4 (RTP, RFP, SDIS, DP, DPR, PRAD, CPA, CPO, FFD, FFP1, MID, CDIR, FAL, VARI, MIDF, FFP2, SSF)Pocket – 4RTP : Rebound distanceRFP : Reference planeSIDS : safety distanceDP : Pocket depthDPR : Pocket depth relative to the reference planePRAD : Radius of pocketCPA : Abscess of pocket center/corner (x value) absolutelyCPO : Absolute ordinate of pocket center/corner (y value)FFD : Plunge feedFFP1 : Sideshift advance valueMID : Maximum plunge depthCDIR : Machining direction (2=clockwise, 3=counterclockwise)FAL : Fine chip allowance for peripheral surfacesVARI : 0= Machining the pocket to full size 1= Roughing and leaving fine chips, 2= FinishingMIDF : Maximum plunge depth when finishingFFP2 : FinishingSSF : Speed for finishingExample of circular pocket milling cycle;Example of circular pocket milling cycle.Let’s program the above part with the G25 cycle in the Fanuc system;∅16 mm carbide-coated flat end milling cutter (T03)O .. .. .. .. ;Program nameT3 M6Tool changeM03 S1400Spindle rotation clockwiseG90 G54 G0 X0 Y0 ;Absolute coordinate, workpiece zero point,quick positioning to X and Y axis positionG43 H3 Z25 M08;Positioning of tool #3 with tool lengthcompensation and turning on the coolantG98 G25 X38 Y10 I38 J33 Z-6 R5 Q10 D2 F90Return to origin at the end of cycle machining∅46 mm pocketG0 X38 Y33;Positioning the tool on the X and Y axisG25 X38 Y18 I38 J33 Z-16 R-2 Q10 D2 F90;Machining ∅30 mm pocketG0 X98 Y15;Positioning the tool on the X and Y axisG25 X38 Y18 I98 J33 Z-10 R4 Q10 D2 F90;Machining ∅36 mm pocketG80 ;Cycle cancellationG28 G91 Z0 ;Quick move of the team to the referenceM30;End of programLet's keep in touch! Thanks for subscribing!Oops, something went wrong. Please try again later.Let’s program the part with the G25 cycle in the Fanuc system;∅16 mm carbide flat-end milling cutter (T03)O .. .. .. .. ;Program nameG90 G54T03 D1 M6Tool changeS1000 M03Spindle rotation clockwiseG0 X0 Y0Quick positioning to X and Y axis positionZ20Quick positioning to the Z axis positionPOCKET4(10, 0, 5, ,-16, 15, 38, 33, 50, 100, 2, 3, 0, ,,)Cycle parametersPOCKET4(10, 0, 5, ,-6, 23, 38, 33, 50, 100, 2, 3, 0, ,,)Cycle parametersPOCKET4(10, 0, 5, ,-10, 18, 98, 33, 50, 100, 2, 3, 0, ,,)Cycle parametersM30End of programSimulation of cycles and application on the machineAfter the program is written, the movements of the cutter are checked on the screen of the simulation, and any errors in the program are looked for. If there are mistakes, they can be eliminated before cutting.When the machine lock switch is turned ON before the simulation begins, the progress movements shown on the machine position indicator are shown, but the machine axes do not move (Lock).In the Siemens system, the movements of the cutter are tracked in two dimensions, and at the end of the simulation, a 3D view of the part that was cut is shown.On the simulation monitoring screen, the part profile and tool paths can be checked by simulating the CNC program written by the editor. If there are mistakes in the program, it can be sent back to the editor to be fixed.Pocket milling simulation screen at Siemens.Simulation of our example part.

The structure of these cycles is like that of face milling cycles. Once the parameters for the cycle have been entered, rectangular or circular pocket milling can be done. For the rectangular pocketing cycle, the code G24 is used, and for the circular pocketing cycle, the code G25 is used.It is important to set parameters like the size of the pocket, the depth of cut, the point(height) of rapid arrival, and the amount of cutter side-shift (side-cut). Let’s look at them in more depth.How to do pocket milling?First decide your stock allowances, than basic pocket milling can be done with this steps;1-Touch to top of workpiece.2-Plunge with suitable plunging feedrate.3-Machine countours with side steps until come to edge of pocket.4-Repeat step-2 and step-3 untill you arrive to final depth.5-Give a finish pass to the walls in full-depth.6-Give a finish on floor surface of pocket on final depth.Rectangular pocket milling cycle (Fanuc)Rectangular pocket milling G24Before continuing, let’s understand how pocket milling works in general. In the below figure as you can see W, and L variables define the width and height of the pocket, R-value is the depth of the cut. As you can guess we shouldn`t plunge all depths of cut at one time to avoid tool breakage.So we should plunge a 2mm machine pocket and plunge again and machine pocket again. This cycle continues until we hit the final depth. Let us say we machine a pocket that has an 8mm (0.315 inches) depth.So if we plunge 2mm(0.079 inches) at one time then it will take 4 pocket machining at the depths of -2mm,-4mm,-6mm,-8mm, (in inches -0.079,-0.157,-0.236,-0.315). Also, we should give a finish pass on the final depth, so the maximum plunging depth should be 7.9mm so we can give a 0.1 finish pass.Check the pictures below;Final CutRough CutOn the right picture, you can see a rough cut, and on the left a final cut for the bottom and walls of the pocket. In our example part the pocket explodes on the bottom so just a contour finish operation can be used too to save time.G24 rectangular pocket milling cycle writing format in the Fanuc system.G24 X…Y… L…W… Z… R… Q… D… F…;X,Y : Coordinates of the lower left corner of the pocketL : Pocket size on the X-axis (mm)W : The width of the pocket on the Y-axis (mm)Z : Pocket depth (mm)R : Safety distance (mm)Q : The cutter’s side-shift distance for the next chip (mm)D : Plunge the amount in the Z axis (mm)F : Progress (mm/min.)If you follow this draft you can cut directly from Fanuc MDI mode or the in-memory program. You need to turn your spindle and give preparation G-codes before cutting. Further, you can see prep. G-codes.This is an embedded pocket cycle for Siemens controllers.POCKET3 (RTP, RFP, SDIS, DP, DPR, LENG, WID, CRAD, CPA, CPO, STA, FFD, FFP1, CDIR, FAL, VARI, MIDF, FFP2, SSF)Pocket-3RTP : Rebound distanceRFP : Reference planeSIDS : safety distanceDP : Pocket depth (absolute)DPR : Pocket depth relative to the reference planeLENG : Length (length) of the pocketWID : Pocket width (width)CRAD : Corner radiusCPA : X value of pocket center/cornerCPO : Y value of pocket center/cornerSTA : Pocket angle (0-180 degrees)FFD : Plunge feedFFP1 : Pocket emptying advance valueMID : Immersion depth (amount)CDIR : Machining direction (2 = clockwise, 3 = counter-clockwise)FAL : Fine chip allowance for peripheral surfacesVARI : 0= Machining the pocket to full-size 1=Roughing and leaving fine chips, 2=Finishing the chipsMIDF : Maximum plunge depth (feed) when finishingFFP2 : Cutting feed for finishingSSF : Speed for finishingRectangular pocket milling cycle (Siemens)Example of rectangular pocket milling.Let’s program the above part with the G24 cycle in the Fanuc system;∅12 mm Carbide flat-end milling cutter (T09)∅14 mm Carbide flat tip end mill cutter (T07)O .. .. .. .. ;Program nameT9 M6Tool selectionM03 S1400Spindle rotation clockwiseG90 G54 G0 X0 Y0 ;Absolute coordinate, workpiece zero, X andrapid positioning to the Y-axis positionG43 H9 Z25 M08;Positioning of tool #9 with tool lengthcompensation and turning on the coolantG98 G24 X20 Y12 L25 W43 Z-9 R5 Q9 D2 F180;Return to origin command at the end of thecycle and processing of the first pocketG28 G91 Z0;Quick move of the team to the referenceT7 M6Tool selectionM03 S1200;Turning the spindle clockwiseG90 G54 G0 X0 Y0;Absolute coordinate, workpiece zero, rapidpositioning to X and Y axis positionG43 H7 Z20 M08;Positioning of tool #7 with tool lengthcompensation and turning on the coolantG24 X85 Y12 L28 W43 Z-12 R5 Q10 D1.5 F160;Processing the second pocketG80;Cycle cancellationG28 G91 Z0;Quick move of the team to the referenceM30;End of programLet’s program the part with the Pocket cycle in the Siemens system;∅12 mm carbide flat tip end mill cutter (T09)∅14 mm carbide flat tip end mill cutter (T07)O .. .. .. .. ;Program nameG90 G54Absolute coordinate, workpiece zero pointT09 D1 M6Change toolS900 M03Rotating the spindle clockwiseG0 X0 Y0Quick positioning to X and Y axis positionZ20Quick positioning to the Z axis positionPOCKET3(10, 0, 5, ,-9, 25, 43, 6, 32.5, 32.5, 0, 50, 100, 2, 3, 0, ,,)Fill in the cycle parametersT07 D1 M6Change tool.S800 M03Spindle rotation clockwiseG0 X0 Y0Quick positioning to X and Y axis positionZ20Quick positioning to the Z axis positionPOCKET3(10, 0, 5, ,-12, 25, 43, 7, 99, 32.5, 0, 50, 100, 2, 3, 0, ,,)Fill in the cycle parametersM30End of programCircular pocket milling G25A circular pocket milling is done on a part with this cycle and it is just a circular version of the rectangular pocket cycle. Here, the cutter quickly moves to the specified height and the center of the pocket, then slides out from the center to mill the pocket. After each depth passes, it goes back to the middle and keeps going. This process keeps going until the depth of the pocket is reached. The Diameter is a big difference here.Circular pocket milling cycle (Fanuc)In the figure below you can see the pocket roughing and finishing.G25 Circular pocket milling cycle writing format.G25 X… Y… I… J… Z… R… Q… D… F… ;X,Y : Coordinate a point on the circleI, J : Circle center coordinatesZ : Pocket depth (mm)R : Safety distance (mm)Q : The cutter’s side-shift distance for the next chip (mm)D : Plunge amount in Z axis (mm)F : Feed (mm/min.)POCKET4 (RTP, RFP, SDIS, DP, DPR, PRAD, CPA, CPO, FFD, FFP1, MID, CDIR, FAL, VARI, MIDF, FFP2, SSF)Pocket – 4RTP : Rebound distanceRFP : Reference planeSIDS : safety distanceDP : Pocket depthDPR : Pocket depth relative to the reference planePRAD : Radius of pocketCPA : Abscess of pocket center/corner (x value) absolutelyCPO : Absolute ordinate of pocket center/corner (y value)FFD : Plunge feedFFP1 : Sideshift advance valueMID : Maximum plunge depthCDIR : Machining direction (2=clockwise, 3=counterclockwise)FAL : Fine chip allowance for peripheral surfacesVARI : 0= Machining the pocket to full size 1= Roughing and leaving fine chips, 2= FinishingMIDF : Maximum plunge depth when finishingFFP2 : FinishingSSF : Speed for finishingExample of circular pocket milling cycle;Example of circular pocket milling cycle.Let’s program the above part with the G25 cycle in the Fanuc system;∅16 mm carbide-coated flat end milling cutter (T03)O .. .. .. .. ;Program nameT3 M6Tool changeM03 S1400Spindle rotation clockwiseG90 G54 G0 X0 Y0 ;Absolute coordinate, workpiece zero point,quick positioning to X and Y axis positionG43 H3 Z25 M08;Positioning of tool #3 with tool lengthcompensation and turning on the coolantG98 G25 X38 Y10 I38 J33 Z-6 R5 Q10 D2 F90Return to origin at the end of cycle machining∅46 mm pocketG0 X38 Y33;Positioning the tool on the X and Y axisG25 X38 Y18 I38 J33 Z-16 R-2 Q10 D2 F90;Machining ∅30 mm pocketG0 X98 Y15;Positioning the tool on the X and Y axisG25 X38 Y18 I98 J33 Z-10 R4 Q10 D2 F90;Machining ∅36 mm pocketG80 ;Cycle cancellationG28 G91 Z0 ;Quick move of the team to the referenceM30;End of programLet's keep in touch! Thanks for subscribing!Oops, something went wrong. Please try again later.Let’s program the part with the G25 cycle in the Fanuc system;∅16 mm carbide flat-end milling cutter (T03)O .. .. .. .. ;Program nameG90 G54T03 D1 M6Tool changeS1000 M03Spindle rotation clockwiseG0 X0 Y0Quick positioning to X and Y axis positionZ20Quick positioning to the Z axis positionPOCKET4(10, 0, 5, ,-16, 15, 38, 33, 50, 100, 2, 3, 0, ,,)Cycle parametersPOCKET4(10, 0, 5, ,-6, 23, 38, 33, 50, 100, 2, 3, 0, ,,)Cycle parametersPOCKET4(10, 0, 5, ,-10, 18, 98, 33, 50, 100, 2, 3, 0, ,,)Cycle parametersM30End of programSimulation of cycles and application on the machineAfter the program is written, the movements of the cutter are checked on the screen of the simulation, and any errors in the program are looked for. If there are mistakes, they can be eliminated before cutting.When the machine lock switch is turned ON before the simulation begins, the progress movements shown on the machine position indicator are shown, but the machine axes do not move (Lock).In the Siemens system, the movements of the cutter are tracked in two dimensions, and at the end of the simulation, a 3D view of the part that was cut is shown.On the simulation monitoring screen, the part profile and tool paths can be checked by simulating the CNC program written by the editor. If there are mistakes in the program, it can be sent back to the editor to be fixed.Pocket milling simulation screen at Siemens.Simulation of our example part.

POCKET4 (RTP, RFP, SDIS, DP, DPR, PRAD, CPA, CPO, FFD, FFP1, MID, CDIR, FAL, VARI, MIDF, FFP2, SSF)Pocket – 4RTP : Rebound distanceRFP : Reference planeSIDS : safety distanceDP : Pocket depthDPR : Pocket depth relative to the reference planePRAD : Radius of pocketCPA : Abscess of pocket center/corner (x value) absolutelyCPO : Absolute ordinate of pocket center/corner (y value)FFD : Plunge feedFFP1 : Sideshift advance valueMID : Maximum plunge depthCDIR : Machining direction (2=clockwise, 3=counterclockwise)FAL : Fine chip allowance for peripheral surfacesVARI : 0= Machining the pocket to full size 1= Roughing and leaving fine chips, 2= FinishingMIDF : Maximum plunge depth when finishingFFP2 : FinishingSSF : Speed for finishingExample of circular pocket milling cycle;Example of circular pocket milling cycle.Let’s program the above part with the G25 cycle in the Fanuc system;∅16 mm carbide-coated flat end milling cutter (T03)O .. .. .. .. ;Program nameT3 M6Tool changeM03 S1400Spindle rotation clockwiseG90 G54 G0 X0 Y0 ;Absolute coordinate, workpiece zero point,quick positioning to X and Y axis positionG43 H3 Z25 M08;Positioning of tool #3 with tool lengthcompensation and turning on the coolantG98 G25 X38 Y10 I38 J33 Z-6 R5 Q10 D2 F90Return to origin at the end of cycle machining∅46 mm pocketG0 X38 Y33;Positioning the tool on the X and Y axisG25 X38 Y18 I38 J33 Z-16 R-2 Q10 D2 F90;Machining ∅30 mm pocketG0 X98 Y15;Positioning the tool on the X and Y axisG25 X38 Y18 I98 J33 Z-10 R4 Q10 D2 F90;Machining ∅36 mm pocketG80 ;Cycle cancellationG28 G91 Z0 ;Quick move of the team to the referenceM30;End of programLet's keep in touch! Thanks for subscribing!Oops, something went wrong. Please try again later.Let’s program the part with the G25 cycle in the Fanuc system;∅16 mm carbide flat-end milling cutter (T03)O .. .. .. .. ;Program nameG90 G54T03 D1 M6Tool changeS1000 M03Spindle rotation clockwiseG0 X0 Y0Quick positioning to X and Y axis positionZ20Quick positioning to the Z axis positionPOCKET4(10, 0, 5, ,-16, 15, 38, 33, 50, 100, 2, 3, 0, ,,)Cycle parametersPOCKET4(10, 0, 5, ,-6, 23, 38, 33, 50, 100, 2, 3, 0, ,,)Cycle parametersPOCKET4(10, 0, 5, ,-10, 18, 98, 33, 50, 100, 2, 3, 0, ,,)Cycle parametersM30End of programSimulation of cycles and application on the machineAfter the program is written, the movements of the cutter are checked on the screen of the simulation, and any errors in the program are looked for. If there are mistakes, they can be eliminated before cutting.When the machine lock switch is turned ON before the simulation begins, the progress movements shown on the machine position indicator are shown, but the machine axes do not move (Lock).In the Siemens system, the movements of the cutter are tracked in two dimensions, and at the end of the simulation, a 3D view of the part that was cut is shown.On the simulation monitoring screen, the part profile and tool paths can be checked by simulating the CNC program written by the editor. If there are mistakes in the program, it can be sent back to the editor to be fixed.Pocket milling simulation screen at Siemens.Simulation of our example part.