Part Programming On Milling
Part Programming On Milling
1 -3.000 11 5.000
2 2.000 12 8.000
3 -1.750 13 10.000
4 0.375 14 7.000
… 0.000 … 0.000
10 0.000 20 0.000
G17ØG171
(CIRCULAR POCKET CANNED
NØØ8Ø G17Ø RØ PØ Q3 XØ YØ Z-6 IØ JØ K-24 ;
NØØ9Ø G171 P75 S3ØØØ R75 F25Ø B35ØØ J2ØØ ;
• For G17Ø block,
• R defines the position of the tool to start cycle ie. Ø (surface of job).
• P defines when P is zero(Ø) the cycle is a roughing cycle.
• Q defines the peck increment, in program number
• ØØØ2, 2 pecks each of 3mm.
• X defines the pocket centre in X axis (Ø).
• Y defines the pocket centre in Y axis (Ø).
• Z defines the pocket base (-6mm) from job surface.
• I defines the side finish allowance (Ø as this is a roughing cycle only).
• J defines the base finish allowance (Ø as this is a roughing cycle only).
• K defines the radius of pocket (-24) negative value - cut in CCW direction).
• For G171 block,
• P defines the cut width percentage.
• S defines the roughing spindle speed (S3ØØØ).
• R defines the roughing Feed in Z (75).
• F defines the roughing feed XY (25Ø).
• B defines the finishing spindle speed (35ØØ, not applicable as roughing only).
• J defines the finishing feed (2ØØ, not applicable as roughing only).
• When setting offsets the value R must be included, R being the radius of the cutter.
• The direction of the cutter path is controlled by K, a negative (K-24) value for K means the cutter path is in a CCW direction
and if the K value is positive (K+24) the cutter path is in a CW direction. The Q value is always positive (Q+3). When the tool
has finished cutting the tool retracts 1mm in the Z axis, moves to the centre of the circular pocket at rapid traverse, retracts
again in the Z axis .
• Program number ØØØ2 is for a two cut roughing cycle.
PROGRAM NUMBER ØØØ2 - ROUGHING PROGRAM - CIRCULAR POCKET - G17Ø AND G171.
[BILLET X75 Y9Ø Z3Ø ; ........................... Billet size.
[EDGEMOVE X-37.5 Y-45 ; ..................... Position of datum from the bottom LH corner of
billet.
[TOOLDEF T1 D6 ZØ ; ............................ Tool no. dia. and position.
O ØØØ2 ; ...................................................Program no.
NØØ4Ø G91 G28 XØ YØ ZØ ; ............... Metric, reference point.
NØØ5Ø MØ6 TØ1 ; ................................. Tool no.
NØØ6Ø G9Ø GØØ XØ YØ Z1Ø S3ØØØ MØ3 ;..... Absolute, rapid, tool 1Ømm above surface,
spindle speed and start.
NØØ7Ø GØ1 ZØ F3ØØ;........................ Tool to surface of job, feed set.
NØØ8Ø G17Ø RØ PØ Q3 XØ YØ Z-6 IØ JØ K-24 ;........ Circular pocket canned cycle.
NØØ9Ø G171 P75 S3ØØØ R75 F25Ø B35ØØ J2ØØ ; ... Circular pocket canned cycle.
NØ1ØØ GØØ Z25 MØ5 ; ......................... Rapid, tool to 25mm above surface, spindle stop.
NØ11Ø G91 G28 XØ YØ ZØ ; ................. Incremental, return to reference point.
NØ12Ø M3Ø ; ........................................... Program reset.
G172/G173
(RECTANGULAR POCKET CANNED CYCLE)
• NØØ8Ø G172 I-5Ø J-50 KØ PØ Q3 RØ X-25 Y-25 Z-6 ;
• NØØ9Ø G173 IØ KØ P75 T1 S3ØØ R75 F25Ø B35ØØ J2ØØ Z5
•
• For G172 block,
• I defines the pocket X length (-5Ø).
• J defines the pocket Y length (-5Ø)
• K defines the radius of corner roundness (not applicable to Denford software).
• P defines that Ø = roughing cycle.
• Q defines the pocket Z increment (peck increments in above cycle 2-3mm pecks).
• R defines the Absolute Z 'R' point.
• X defines the pocket corner X (Absolute position relative to the X datum position).
• Y defines the pocket corner Y (Absolute position relative to the Y datum position).
• Z defines the absolute Z base of pocket (-6, ie, a depth of 6mm).
•
• For G173 block,
• I defines the pocket side finish (Ø as this is a roughing cycle).
• K defines the pocket base finish (Ø as this is a roughing cycle).
• P defines the cut width percentage (75% of tool dia.).
• T defines the pocket tool (tool 1).
• S defines the spindle speed for roughing (3ØØØrpm).
• R defines the roughing feed for Z (75).
• F defines the roughing feed X and Y (25Ø).
• B defines the finishing spindle speed (35ØØ rpm).
• J defines the finishing feed (2ØØ).
• Z defines the safety Z (5mm above 'R' point).
• Program number ØØØ5 is for a two cut roughing cycle.
• PROGRAM NUMBER ØØØ5 - ROUGHING PROGRAM - RECTANGULAR POCKET - G172 AND G173
• [BILLET X75 Y9Ø Z3Ø ; ................................................... Billet size.
• [EDGEMOVE X-37.5 Y-45 ; .............Position of datum from the bottom LH corner of billet.
• [TOOLDEF T1 D6 ZØ ; ...................................................... Tool no. dia. and position.
• O ØØØ5 ; ....................................................................... Program no.
• NØØ4Ø G91 G21 G28 XØ YØ ZØ ; ................................... Metric, reference point.
• NØØ5Ø MØ6 TØ1 ; ......................................................... Tool no.
• NØØ6Ø GØØ XØ YØ Z1Ø S3ØØØ MØ3 ; ...... Absolute, rapid, tool 1Ømm above surface, spindle
speed and start.
• NØØ7Ø GØ1 ZØ F3ØØ ; ................................................ Tool to surface of job, feed set.
• NØØ8Ø G172 I-5Ø KØ PØ Q3 RØ X-25 Y-25 Z-6 ; .............. Rectangular pocket cycle.
• NØØ9Ø G173 IØ KØ P75 T1 S3ØØ R75 F25Ø B35ØØ J2ØØ Z5 ; Rectangular pocket cycle
• NØ1ØØ GØØ Z25 MØ5; ............................. Rapid, tool to 25mm above surface, spindle stop.
• NØ11Ø G91 G28 XØ YØ ZØ ; ....................................... Incremental, return to reference point.
• NØ12Ø M3Ø ; ................................................................ Program reset.
M CODES - M98 (SUB PROGRAM CALL).
M CODES - M99 (SUB PROGRAM END AND RETURN).
• O1005 (Subprogram)
• N5 X2
• N10 X3
• N15 X4
• N20 Y2
• N25 X3
• N30 X2
• N35 X1
• N40 M99 (Return from subprogram)
WHAT IS CANNED CYCLE?
• Canned cycle or fixed cycle may be defined as a set of
instructions, inbuilt or stored in the system memory, to
perform a fixed sequence of operation. The canned cycles
can be brought into action with a single command and as
such reduce the programming time and effort. Canned
cycles are used for repetitive and commonly used
machining operation. The canned cycles are stored under
G code address. G81 to G89 are reserved for fixed canned
cycle.
• In the above example, the program statements from N70 to N100 are repeated once
when the statement N160 is executed. Usually the G25 is used after a mirror
statement. Illustrative example geometry and its program are given below
• Example: