Professional Documents
Culture Documents
EAGLE FANUC Oi
(Including MC)
Iss 2b
This document is based on information available at the time of its publication. While
efforts have been made to render accuracy to its content, the information contained
herein does not purport to cover all details or variations in hardware and software, nor
to provide every possible contingency in connection with installation, operation,
programming, and maintenance. Features maybe described herein which are not
present in all hardware and software systems.
Dugard Ltd assumes no obligation of notice to holders of this document with respect to
changes subsequently made.
Machine axes.............................................................................................................................................. 4
Other axes that could be encountered when programming the machine are.....................................5
Tool offset…………………………………………………………………………………………………………..6
Entering tool offset values ...................................................................................................................6
Workpiece zero reference point ................................................................................................................. 6
Facing …………………………………………………………………………………………………………… .. 7
Taper turning .............................................................................................................................................. 9
Inside turning: ........................................................................................................................................... 10
Circular Interpolation ................................................................................................................................ 11
Incremental commands (U and W)........................................................................................................... 14
Example for operation............................................................................................................................... 15
G CodeList………………………………………………………………………………………………………..17
M Functions …...……………………………………………………………………………………19
G70 Finishing cycle .................................................................................................................................. 22
G71 Longitudinal roughing cycle parallel to Z-axis .................................................................................. 22
G72 Cross roughing cycle transversal parallel to X-axis.......................................................................... 23
G73 Roughing cycle with passes parallel to profile.................................................................................. 23
G74 Drilling cycle (chip break).................................................................................................................. 24
G83 Drilling cycle (chip breakage with retraction at the start).................................................................. 24
G84 Tapping cycle.................................................................................................................................... 24
G74 Front counter boring cycle ................................................................................................................ 24
G75 Longitudinal grooving cycle .............................................................................................................. 25
G76 Threading cycle ................................................................................................................................ 25
G71 Canned roughing cycle ..................................................................................................................... 26
G74 and G83 fixed drilling cycles (with chip breakage) ........................................................................... 28
G74 Drilling cycle with a short retraction for chip breakage..............................................................28
G83 Fixed drilling cycle with retraction at the start for chip breakage and removal .........................28
Fixed longitudinal grooving cycle.............................................................................................................. 29
Threading fixed cycle................................................................................................................................ 30
Application exercise for threading operations .......................................................................................... 31
Direct programming of profile (angles and round edges)......................................................................... 34
Tool radius compensation .................................................................................................................36
Tool types ..........................................................................................................................................37
G40 G41 and G42 tool radius compensation ........................................................................................... 38
G71 Type I - Example of roughing and finishing cycle with direct definition of profile and tool radius
compensation........................................................................................................................................ 40
1.1 G71 Type II - Roughing cycle with displacement direction reversal on X-axis ............................. 42
G72 Example of cross roughing cycle parallel to X-axis .......................................................................... 44
Sub Programs........................................................................................................................................... 47
PROGRAMMING MANUAL -3-
BASIC CONCEPTS
Machine axes
X+
Z- Z+
X-
X-, and Z- axis and their respective positive and negative displacement directions are shown
on the above schematic diagram.
As you can see, when work piece zero reference point is located on work piece end (most
common case), the positive direction is outside the work piece, while the negative direction is
on the work piece area to be machined (inside the work piece).
.
PROGRAMMING MANUAL -5-
T: is turret rotation.
R: is radius programming.
S: are head revolutions (cutting speed) this letter is always related to heads.
G50 S1000 Æ Rpm limit.
G97 S1000 Æ fixed rpm (for tapping and drilling).
G96 S200 Æ cutting speed (m/min) for all turning operations.
Tool offset
The offset value is the protruding length of tool end from the zero reference of turret disc.
The required offset values must be entered each time tool position is changed with respect to
the aforementioned position; if tool position is not changed, entering a offset value will not be
necessary as these values are stored in the memory.
For machines with presetter, place the presetter in position and preset the tool.
For machines without presetter, turn the work piece and retract the tool without moving it out
the axis. Then measure the work piece and enter the readings in the geometry table.
To enter a value, go to the geometry table (offset value), enter the required value and press
the intermediate key; by this way the control unit will calculate the offset value.
It can be also placed in other location, even though it is advised not to do it, as
following up and verifying the program would much more difficult and you
should continuously calculate the difference between this position and work
piece end.
We advise you to enter work piece zero at the beginning of the program.
For Example: G10P0X0.Z-120.
PROGRAMMING MANUAL -7-
Facing
O0001;
G21;
G10 P0 X0. Z-103;
M34;
N1 T101
(FACING);
G50 S2000 (LIMIT R.P.M.);
G96 S200 M3;
G0 G40 G99 X45 Z0 M8;
G1 X-2 F0.25;
G0 X150 Z100 M9;
M35;
M30;
Program number
O0001;
Metric input
G21;
Data input
G10 P0 X0.Z-103; Workpiece zero -103
Comment:
These are notes included in the program.
These notes are totally optional, and it is up to the programmer to enter them or
not.
These notes will be always placed in brackets () in order to prevent the program
reading them.
T101
Here is shown that the tool to be used is in position 1 and a offset value of 01 is
applied.
T0101 could be also entered, as the four mandatory characters are present,
however, the first zero is optional.
G0 X150 Z150
Note that tool retraction in this example is to 150 mm on X+ and 150 mm on Z+
from work piece zero, and not from chuck face, as no order for changing the
position is given to work piece zero, which in this example is maintained in the
previous position.
Taper turning
Pass
Pass
N1 T101; Line number and Tool call (pos. 01 and offset 01)
(TURN); Description
G50 S1500; Spindle turning limit: 1500 rpm
G96 S200 M3; Cutting speed (m/min), Spindle fwd direction.
G0 G40 G99 X52.5 Z2 M8; Rapid feed to point X52.5 Z2, Cancel tool nose
radius compensation, Feed per rev, Coolant on.
G1 Z-19.9 F0.25; Feed move Z-19.9 (First pass), Feed rate.
G0 X55 Z2; Rapid feed to X55 Z2
X45; Rapid feed to start point of cone in X45 Z2
G1 Z0; Feed move to X45 Z0
X52 Z-20 F.2; Machine the cone to X52 Z-20 (Second pass)
X61; Machine to X61 Z-20
G0 X200 Z200 M9; Rapid to safe position to 200mm in both axes and
coolant off
M35; Swarf conveyor off
M30; End of program and back to he beginning
PROGRAMMING MANUAL -10-
Boring:
O0003;
G21; Metric input
G10 P0 Z-85; Part zero at –85
M34; Swarf conveyor on
N6 T606; Line number and Tool call (pos. 06 and offset 06)
(BORE); Description
G50 S2000; Turning speed limit: 2000 r.p.m.
G96 S180 M3; Cutting speed =180 mm/rev, Spindle fwd direction.
G0 G40 G99 X44 Z2 M8; Rapid move Z2 axis to the height of the chamfer
2x45º , Cancel tool nose radius compensation, Feed
per rev, Coolant on.
G1 Z0 F0.2; Feed move to Z0, feedrate 0.2 mm/rev
X40 Z-2 F.15; Machine chamfer with feedrate 0.15 mm/rev
Z-40 F.2; Machine the bore at ø40 with federate 0.2 mm/rev
X35; Face the inside until ø35
G0 Z5; Rapid feed to Z5
X200 Z100 M9; Rapid to safe position to X200 Z100 and coolant off
M35; Swarf conveyor off
M30; End of program and back to he beginning
PROGRAMMING MANUAL -11-
Circular Interpolation
G2 G3
O0004;
G21; Metric input
G10 P0 Z-110; Part zero at –110
M34; Swarf conveyor on
Circular interpolation
O0005;
G21;
G10 P0 Z-165;
M34;
N4 T404;
(TURN);
G50 S2000;
G96 S200 M3;
G0 G40 G99 X69.282 Z2 M8; Rapid feed to X69.292 Z2
G1 Z-20 F0.2; Machining to Z-20
G3 X69.282 Z-60 R40; Machine a 40mm radius until point
X69.282 Z-60 counter clockwise direction
G2 X69.282 Z-100 R40; Machine a 40mm radius until point
X69.282 Z-100 clockwise direction
G1 Z-105; Machining to Z-105
G0 X150. Z100. M9;
M35;
M30;
As you can see, for the interpolation, you must know the point from which this
interpolation will take place in order to change radius direction (in this example
on point X69.282 Z-60).
PROGRAMMING MANUAL -14-
O0006;
G21;
G10 P0 Z-96:
M34;
N5 T505;
(GROOVE);
G96 S120 M3;
G0 G40 G99 X78 Z-20 M8; Rapid feed to X78 Z-20
G1 X65 F0.1; Grooving to ø65
G4 X1; Dwell (X1=1 second dwell )
G0 X78; Rapid feed to X78
W-10.; Incremental move –10mm in Z axis (W=Z)
G1 U-7.; Incremental move –7mm in X axis (U=X)
G4 X1; Dwell
G0 U7; Rapid feed 7mm in X axis (U=X)
W-15; Incremental move –15mm in Z axis (W=Z)
G1 U-9; Groove incrementally –9mm in X axis (ø69)
G4 X1; Dwell
G0 U9; Rapid feed incrementally 9mm in X axis (ø78)
X200 Z200;
M30;
Time delays are entered each time a slot is machined in order to improve the
surface finish.
PROGRAMMING MANUAL -15-
Tools:
T1= Outside and facing.
T2= ø15 twist drill.
T4= Bore.
O0007;
G21;
G10 P0 Z-74;
M34;
N1 T101;
(TURN);
G50 S2500;
G96 S220 M3;
External machining
N2 T202 ;
(15MM DIA DRILL);
G97 S600 M3;
Drill
N4 T404;
(BORE);
G50S2250
G96 S150 M3;
G0 G40 G99 X22 Z3 M8;
G1 Z0 F0.25;
Bore
X20 Z-1 F0.15;
Z-13 F0.2;
X15 Z-20 F0.15;
G0 Z5 M9;
X200 Z150 M35;
M30;
PROGRAMMING MANUAL -17-
G Code List
STANDAR
GROUP FUNCTION
D G CODE
G00 01 RAPID TRAVERSE
G01 01 LINEAR INTERPOLATION
G02 01 CIRCULAR INTERPOLATION CLOCK WISE
G03 01 CIRCULAR INTERPOLATION COUNTERCLOCK WISE
G04 00 DWELL
G05 00 HIGH SPEED REMOTE BUFFER
G07.1 00 CYLINDRICAL INTERPOLATION
G10 00 PROGRAMMABLE DATA INPUT
G11 00 PROGRAMMABLE DATA INPUT CANCEL
G12.1 21 POLAR COORD INTERPOLATION MODE
G13.1 21 POLAR COORD INTERPOLATION MODE CANCEL
G17 16 XY PLANE SELECTION
G18 16 XZ PLANE SELECTION
G19 16 YZ PLANE SELECTION
G20 06 INCH INPUT
G21 06 MM INPUT
G28 00 REFERENCE POSITION RETURN
G30 00 2ND REFERENCE POSITION RETURN
G31 00 SKIP FUNCTION
G32 01 THREAD CUTTING
G34 01 VARIABLE LEAD THREAD CUTTING
G40 00 TOOL NOSE RADIUS COMPENSATION CANCEL
G41 07 TOOL NOSE RADIUS COMPENSATION LEFT
G42 07 TOOL NOSE RADIUS COMPENSATION RIGHT
G50 07 MAXIMUM SPINDLE SPEED CLAMP
G52 00 LOCAL COORDINATE SYSTEM SETTING
G53 00 MACHINE COORDINATE SYSTEM SETTING
G54 14 WORKPIECE COORDINATE SYSTEM 1 SELECTION
G55 14 WORKPIECE COORDINATE SYSTEM 2 SELECTION
G56 14 WORKPIECE COORDINATE SYSTEM 3 SELECTION
G57 14 WORKPIECE COORDINATE SYSTEM 4 SELECTION
G58 14 WORKPIECE COORDINATE SYSTEM 5 SELECTION
G59 14 WORKPIECE COORDINATE SYSTEM 6 SELECTION
G65 06 MACRO CALL
G66 12 MACRO CALL MODAL
G67 12 MACRO CALL MODAL CANCEL
G70 00 FINISHING CYCLE
G71 00 STOCK REMOVAL IN TURNING
G72 00 STOCK REMOVAL IN FACING
G73 00 PATTERN REPEATING
G74 00 END FACE PECK DRILLING
G75 00 OUTER DIA DRILLING CYCLE/ GROOVING CYCLE
G76 00 MULTIPLE THREADING CYCLE
PROGRAMMING MANUAL -18-
STANDAR
GROUP FUNCTION
D G CODE
G80 10 CANNED CYCLE CANCEL
G83 10 CANNED CYCLE FOR FACE DRILLING
G84 10 CANNED CYCLE FOR FACE TAPPING
G85 10 CANNED CYCLE FOR FACE BORING
G87 10 CANNED CYCLE FOR SIDE DRILLING
G88 10 CANNED CYCLE FOR SIDE TAPPING
G89 10 CANNED CYCLE FOR SIDE BORING
G90 01 OUTER DIA/ INTERNAL DIA CUTTING CYCLE
G92 01 THREAD CUTTING CYCLE
G94 01 END FACE TURNING CYCLE
G96 02 CONSTANT SURFACE SPEED
G97 02 CONSTANT SURFACE SPEED CANCEL
G98 05 FEED PER MINUTE
G99 05 FEED PER REVOLUTION
M FUNCTIONS
M Code Function
M0 Program stop
M1 Optional stop
M2 End of program
M3 Spindle forward
M4 Spindle reverse
M5 Spindle stop
M8 Coolant on
M9 Coolant off
M13 Spindle forward and coolant on
M14 Spindle reverse and coolant on
M17 Brake on (m/c)
M18 Brake off (m/c)
M19 Spindle orientation
M20 Tailstock forward
M21 Tailstock retract
M23 Spindle air blow on
M24 Spindle air blow off
M25 Block delete on
M26 Block delete off
M29 Rigid tap
M30 Program end and rewind
M34 Swarf conveyor on
M35 Swarf conveyor off
M41 Low gear (Gear type)
M42 High gear (Gear type)
M44 C axis off (m/c)
M45 C axis on (m/c)
M46 Main spindle select (m/c)
M47 Second spindle select (m/c)
M60 Tailstock body clamp
M61 Tailstock body unclamp
M62 Tailstock body forward
M63 Tailstock body back
M66 Spindle run can execute M68 M69
M67 M66 cancel
M68 Chuck open
M69 Chuck close
M70 Parts catcher forward
M74 Parts catcher back
M81 Barfeeder push
M82 Barfeeder bar end check on
M83 Barfeeder bar end check off
M87 Chamfering on
M88 Chamfering off
M90 Parts count
M98 Call sub-program
M99 End of sub-program
PROGRAMMING MANUAL -20-
THREADING
O0008;
G21;
G10 P0 Z-95;
M34;
N1 T101;
(TURN);
G50 S2500;
G96 S200 M3;
G0 G40 G99 X70 Z0 M8;
G1 X-2 F0.25;
G0 X57 Z1;
G1 Z0;
X59.9 Z-1.5;
Z-45;
X66;
G0 X150 Z100 M9;
M1;
N2 T202;
PROGRAMMING MANUAL -21-
(SCREWCUT);
G97 S700 M3;
G0 G40 G99 X60 Z6 M8;
X59.4 (First pass);
G32 Z-40 F1 (F=THREAD PITCH);
G0 X62;
Z6;
X58.8 (Second pass);
G32 Z-40 F1;
G0 X62;
Z6;
X58.7 (Last pass);
G32 Z-40 F1;
G0 X62;
X150 Z100M9;
M35;
M30;
CANNED CYCLES
At the end of each cycle sequence the machine is always positioned in the
position at which this cycle sequence was started. The tool will be commonly
located in the position used for rough machining.
The profile allows changing X and Z direction.
At the end of each cycle sequence the machine is always positioned in the
position at which this cycle sequence was started.
The positioning allows changing X- and Z-axis direction.
PROGRAMMING MANUAL -23-
G72 W3 R1
G72 P100 Q200 U0.25 W0.1 F0.3
1ST Line
2nd Line
O0071;
G21;
G10 P0 Z-130;
M34;
N1 T101;
(ROUGH TURN);
G50 S2500;
G96 S200 M3;
G0 G40 G99 X105 Z0 M8;
G1 X-2 F0.25;
G0 X105 Z1;
G71 U3 R1;
PROGRAMMING MANUAL -27-
N8 T808;
(DRILL);
G97 S265 M3;
G0 G40 G99 X0. Z3. M8;
G74 R0.5;
G74 Z-60 Q20000 F0.2;
G0 X200 Z100 M9;
M35;
M30;
G83 Fixed drilling cycle with retraction at the start for chip
breakage and removal
O0010;
G21;
G10 P0 Z-75.;
M34;
N8 T808;
(DRILL);
G97 S500 M3;
G0 G80 G99 X0 Z3 M8;
G83 Z-60 Q20000 F0.2;
G80
G0 X200 Z100 M9;
M35;
M30;
PROGRAMMING MANUAL -29-
O0011;
G21;
G10 P0 Z-110.;
M34;
N7 T707;
(GROOVE);
G50 S1000;
G96 S110 M3;
G0 G40 G99 X80 Z-55 M8;
G75 R.5; Grooving with chip breaking
G75 X69 Z-28 P3000Q2500 F.1; Grooving, penetrate until ø69 and until Z(W)-28,
penetration in X(P) 3mm, movement in Z(Q)
2.5mm.
Groove width or groove end point can be defined with a W code in this example
(W27, that is, 30 – 3 of tool); if tool is positioned on the right-hand would be (W-
27). For either Z or W, tool width must be subtracted.
PROGRAMMING MANUAL -30-
N1 T101;
(TURN);
G50 S2000;
G96 S200 M3;
G0 G40 G99 X68. Z0. M8;
G1 X-2 F0.25;
G0 Z2;
G42 X54. Z1;
G1 X60 Z-2 F0.15;
Z-35 F0.25;
X66;
G0 G40 X150. Z100 M9;
M1;
N9 T909;
(SCREWCUT);
G97 S800 M3;
G4X1.
G0 G40 G99 X62 Z6 M8;
G76 P030060 Q200 R0.03;
G76 X57.4 Z-30 P1227 Q400 F2;
G0 X150 Z100 M9;
M35;
M30;
PROGRAMMING MANUAL -31-
APPLY
DRILLING CYCLE
THREADING CYCLE
PROGRAM EXAMPLE:
O0013;
G21;
G10 P0 Z-100;
M34;
N1 T101;
G50 S2000;
G96 S200 M3
G0 G40 G99 X73. Z0. M8;
PROGRAMMING MANUAL -32-
G1 X-2 F0.2;
G0 X61 Z2;
G1 Z0;
X64.9 Z-2 F0.15 (THREAD DIAMETER);
Z-35 F0.2;
X70 Z-50 F0.15;
X71;
G0 X150 Z200 M9;
M1;
N8 T808
G97 S300 M3
G0 G99 X0 Z3 M8;
G74 R1;
G74 Z-84 Q3000 F0.15;
G0 Z100 M9;
M1
N10 T1010
G50S2000
G96 S150 M3;
G0 G40 G99 M8;
X34 Z2;
G1 Z0 F0.25;
X29.6 Z-2 F0.15;
Z-30 F0.2;
X27;
G0 Z100 M9;
M1;
N12 T1212
G97 S1275 M3;
G4X2.;
G0 G99 X28 Z6;
G76 P030060 Q100 R0.05;
G76 X32 Z-25 P1230 Q250 F2;
G0 X250 Z100 M9;
M1;
N5 T505;
G97 S650 M3;
G4 X2.;
G0 X67 Z6.;
G76 P030060 Q100 R0.05;
G76 X63.05 Z-30 P920Q200 F1.5;
G0 X200 Z200 M9;
M35;
M30;
PROGRAMMING MANUAL -33-
The easier procedure is drawing a quadrant on the drawing and locate the
degrees as shown on the above diagram.
PROGRAMMING MANUAL -34-
For more in depth information, please see the “Fanuc operators Manual”
PROGRAMMING MANUAL -35-
O0014;
G21;
G10 P0 Z-120;
M34;
N3 T303;
G50 S2200;
G96 S230 M3;
G0 G40 G99 X0. Z3. M8;
G1 Z0 F0.15 (P1);
,A90 ,R6 (FIRST ANGLE);
,A165 X50 Z-25 (SECOND ANGLE); A165 comes from 180°-15°=165°
,A180 Z-49.;
,A90 X75. ,C1;
Z-60;
,A150 ,R50; A150 comes from 180°-30°=150°
,A110 X185 Z-100; A110 comes from 180°-70°=110°
,A90 X200 ,C2;
,A180 Z-150. (P2);
G0 X250 Z200 M9;
M35;
M30;
PROGRAMMING MANUAL -36-
EXTERNAL
INTERNAL
PROGRAMMING MANUAL -37-
Tool types
Milling cutters are assigned with type “0” or “9” for interpolations.
PROGRAMMING MANUAL -38-
Tools
T1 = EXTERNAL
T8= TWIST DRILL ø38
T10 = INTERNAL
PROGRAMMING MANUAL -39-
N1 T101;
(TURN);
G50 S2200;
G96 S200 M3;
G0 G40 G99 X110. Z0. M8;
X110 Z0;
G1 X-2 F0.25;
G0 X100 Z2;
G1 Z-17;
G0 X102 Z3;
G42 X95 Z1 (ACTIVES COMPENSATION RIGHT);
G1 Z0 F0.1;
X97 Z-1 F0.15;
Z-15 F0.2;
,A150 X102.;
,A180 Z-45;
X106.;
G0 G40 X200 Z200 M9 (CANCEL TOOL COMPENSATION);
M1 ;
N8 T808 ;
(DRILL 38MM DIA);
G97 S165 M3;
G0 G99 X0 Z3 M8;
G74 R1;
G74 Z-80 Q25000 F0.25;
G0 Z10 M9;
M1;
N10 T1010
(BORE);
G50 S2000
G96 S150 M3;
G0 G40 G99 X45 Z2 M8;
G1 Z-6 F0.2;
X41 Z-35;
Z-38.9;
G0 X37 Z2;
G41 X50 Z1 (ACTIVES COMPENSATION LEFT);
G1 X46 Z-1 F0.15;
Z-6;
X42 Z-35;
Z-39;
X37;
G40 X35(CANCEL TOOL COMPENSATION);
G0 Z10. M9 ;
X200 Z150 M35 ;
M30;
PROGRAMMING MANUAL -40-
N1 T101
(ROUGH TURN);
G50 S2500;
G96 S200 M3;
G0 G40 G99 X115. Z2. M8;
G1 X-2 F0.25;
G0 Z2. ;(POSITIONING, STARTOF CYCLE);
X111;(POSITIONING, STARTOF CYCLE);
G71 U3 R1 (ROUGHING CYCLE);
G71 P100 Q200 U0.3 W0.1 F0.25;
N100G0 X52 (START OF PROFILE);
G42 X54. Z1.
G1 X60. Z-2 F0.15;
Z-22;
,A170. ,R20;
,A140. X95 Z-50. ,R5.;
,A180.;
,A135. X110 Z-64;
N200 G40 X111 (END POINT OF PROFILE);
G0 X200 Z100 M9;
M1;
N3 T303
(FINISH TURN);
G50 S2500;
G96 S230 M3;
G0 G40 G99 X62. Z0. M8;
G1 X-1. F0.15;
G0 Z2.;
X111. (POSITIONING START OF CYCLE);
G70 P100 Q200 (FINISHING CYCLE);
G0 X200 Z100 M9;
M1;
N5 T505;
(SCREWCUT);
G97 S750 M3;
G4X1.;
G0 G99 X62 Z6 M8;
G76 P030055 Q050 R0.05;
G76 X57.641 Z-19. P1179 Q450 F1.814;
G0 X200 Z200 M9;
M35;
M30;
All cycles end where they are started and, because of this, finishing positioning
is done above the workpiece.
PROGRAMMING MANUAL -42-
N1 TI01;
(ROUGH TURN);
G50 S2250;
G96 S200 M3;
G0 G40 G99 X95 Z0.1 M8;
G1 X-2 F0.2;
G0 Z2.;
X92;
G71 U2.5 R1;
G71 P100 Q200 U1.2 W0.1 F0.2;
N100 G0 X60 Z1.;
G1 G42 Z0 F0.15;
G3 X76 Z-39 R40;
G1 Z-57;
X90 Z-65;
N200 G0 G40 X92;
X200 Z100 M9;
M1;
N3 T303;
(FINISH TURN);
G50 S2750;
G96 S220 M3;
G0 G40 G99 X65 Z0 M8;
G1 X-2 F0.15;
G0 Z2.;
X92;
G70 P100 Q200;
X200 Z200 M9;
M35;
M30;
For control units with capability for machining profiles with X-axis direction
reversal, the first block for defining the profile must state the movement of the
two axes.
PROGRAMMING MANUAL -44-
TOOLS:
T1 = EXTERNAL ROUGHING
T2 = EXTERNAL FINISHING
T6 = INTERNAL ROUGHING
T10 = INTERNAL FINISHING
PROGRAMMING MANUAL -45-
N1 T101;
(ROUGH TURN);
G50 S2200;
G96 S200 M3;
G0 G40 G99 X95 Z0.1 M8;
G1 X18 F0.25;
G0 X92 Z2;
G72 W2.5 R1;
G72 P100 Q200 U0.3 W0.15 F0.25;
N100 G0 G41 Z-15;
G1 X90;
X88 Z-1;4;
X55 ,R4;
Z-1.5;
N200 X50. Z1;
G0 X150 Z200 M9;
M1;
N6 T606;
(ROUGH BORE);
G50 S2250;
G96 S150 M3;
G0 G40 G99 X18 Z2 M8;
G71 U2.5 R1;
G71 P300 Q400 U-0.3 W0.1 F0.2;
N300 G0 X45;
G41 X43. Z1;
G1 X38 Z-1.5 F0.1;
,A180 ,R15;
,A195. X25 Z-30;
X22;
X20 Z-31;
N400 G40 X18.
G0 X200. Z150 M9;
M1;
N10 T1010;
(FINISH BORE);
G50 S1750;
G96 S180 M3;
G0 G40 G99 X18 Z2 M8;
G70 P300 Q400;
G0 X200 Z150 M9;
M1;
N3 T303;
PROGRAMMING MANUAL -46-
(FINISH TURN);
G50 S2250;
G96 S230 M3;
G0 G40 G99 X57. Z0. M8;
G1 X35. F0.1;
G0 X92 Z2;
G70 P100 Q200
G0 G40 X200 Z150. M9;
M35;
M30;
PROGRAMMING MANUAL -47-
N5 T505;
(GROOVING);
G50 S1750;
G96 S100 M3;
G0 G40 G99 X74 Z-59 M8;
M98 P1000 (CALLING TO SUBPROGRAM 01000);
G0 Z-42;
M98 P1000;
G0 Z-25;
X44;
M98 P1000;
G0 Z-10;
M98 P1000;
G0 X200 Z200 M9;
M30;
If the number consists of more than four characters, the first four characters,
from right to left, indicate the identification number of subprogram to be called.
Next characters indicate the number of repetitions of subprogram to be called.
PROGRAMMING MANUAL -49-
N4 T404;
(GROOVING);
G50S1750;
G96 S90 M3;
G0 G40 G99 X46 Z0 M8;
M98 P41001 (REPEATS FOUR TIMES 1001);
G0 X200 Z200 M9;
M35;
M30;
PROGRAM:
SUBPROGRAM
00002 (SUBPROGRAM);
N1 T101;
G50 S1500;
G96 S150 M3;
G0 G40 G99 X42 Z-10;
G1 X30. F0.08;
G0 X42;
G10 P0 W10;
M99
PROGRAMMING MANUAL -52-
This section describes the procedures used to program MC type machines controlled by the
C-axis.
O0019
G21;
G10 P0 X0 Z-100;
N6 G28 U0.
T606
(AXIAL 6MM DIA DRILL)
M5
M45
G28 H0
G97 S2500 M3
G0 G80 G98 X90.Z2M8
G83 Z-10.K4 H90.M17 F100.
G80
M5
M44
G0 X150 Z150 M9
M1
ALTERNATIVE PROGRAM
PROGRAMMING MANUAL -57-
This fixed drilling cycle can be programmed in the apparently more logic and simple
sequence, ie, 0º - 90º - 180º - 270º. This cycle would be as follows:
O0020
G21;
G10 P0 X0 Z-100;
N6 G28 U0.
T606
(AXIAL 6MM DIA DRILL)
M5
M45
G28 H0
G97 S2500 M3
G0 G80 G98 X90.Z2M8
G83 Z-10. Q2000 M17 F100.
C90. Q2000 M17
C180. Q2000 M17
C270. Q2000 M17
G80
M5
M44
G0 X150 Z150 M9
M1
PROGRAMMING MANUAL -58-
N8 G28 U0.
T808
(RADIAL 4MM DIA DRILL)
M5
M45
G28 H0
G97 S3500 M3
G0 G80 G98 X122.Z-15.
G87 X96.Q3000 M90 F350.
C120.Q1000 M17
C240.Q1000 M17
G80
M5
M44
G0 X150.Z150.M9
M1
G84 Example program of a front face tapping cycle with powered tool
PROGRAMMING MANUAL -59-
O0022
G21;
G10 P0 X0 Z-100;
N6 G28 U0.
(AXIAL M6 TAP)
T606
M5
M45
G28 H0
G97 S800 M3
G0 G80 G98 X90.Z6.
G84 Z-10. K4 H90. M17 F800.
G80
M5
M44
G0 X150.Z150.M9
M1
O0021
G21;
G10 P0 X0 Z-100;
N8 G28 U0.
T808;
(RADIAL M6 TAP)
M5
M45
G28 H0
G97 S800 M3
G0 G80 G98 X54.Z-10.
G88 X25. K3 H120. P100 M17 F800.
G80
M5
M44
G0 X150.Z150.M9
M1
Polar coordinate interpolation is used when it is desired to perform milling operations on the
face of the work piece, which require synchronous movement of the spindle and live tooling
mounted on the turret.
When polar coordinate interpolation is commanded by the G112, the control interprets several
pieces of data to determine the direction and speed at which the axes must be moved to
reach the commanded end point.
PROGRAMMING MANUAL -61-
The drawing below shows the coordinate system used with polar coordinate interpolation.
The programmed end points are laid out as coordinates on this plane.
Note the signs for X and C. The following program examples illustrate the use of this system.
1. The following G codes may be used when G112 is active: G1, G2, G3, G40,
G41, G42, G65, and G98.
3. When using G2 or G3, the arc radius is specified using the R word.
7. The unit of command for the C axis, when polar coordinate interpolation is
used, is MM or inches, not degrees.
9. The TNRC start up block (G41 or G42 line) must be programmed after the
polar coordinate interpolation command (G112 line) has been activated. For
polar coordinate interpolation, the X axis move must be equal to at least two
times the tool radius entered in the tool offset file. Program the G40 (TNRC
cancel) command before the block containing the G113 or G13.1 (cancel
polar coordinate interpolation).
10. Program restart and block restart are not allowed when G112 is active.
PROGRAMMING MANUAL -62-
The drawings below show the combination of tool nose radius and circular interpolation codes
used with polar coordinate interpolation.
The shaded area in each drawing represents the finished part contour.
PROGRAMMING MANUAL -63-
G41 Part right (cutter left) G42 Part left (cutter right)
G2 Clockwise arc G3 Counter-clockwise arc
G42 Part left (cutter right) G41 Part right (cutter left)
G2 Clockwise arc G3 Counter-clockwise arc
N6 G28 U0.
T606
(AXIAL MILL)
M5
M45
G28 H0
G97 S1500 M3
G0 G40 G98 X80.Z2.
G1 Z-5. F2500.
G112
G42 X50.F500.
C20.
X-50.
C-20.
X50.
C0.
G1 G40 X80.F1500.
G113
G0 Z10.M9
M5
M44
G0 X150 Z150 M9
M1
A= 50/2 = 28.867
Cos30
B= 30Tan*50/2 =14.433
N6 G28 U0.
T606
(AXIAL MILL)
M5
M45
G28 H0
G97 S1500 M3
G0 G40 G98 X80.Z2.
G1 Z-0.25 F2500.
G112
G42 X50.F500.
C14.433
X0. C28.867
X-50. C14.433
C-14.433
X0. C-28.867
X50. C-14.433
C0.
G40 X80.F1500.
G113
G0 Z10.M9
M5
M44
G0 X150 Z150 M9
M30
Please note that the following bar feed program examples are a guide and some
modifaO1000(PART PROGRAM
N10T1010
#100=10. (COMPONENT LENGTH AS POSITIVE)
M98P8888 (BAR FEED)
M1
M26
M68
G4X1.5
M83
G0G99Z100.
G28U0.
M99
M81(EJECT BAR)
G4X1.
M74(PARTS CATCHER HOME)
G4X1.
G0X0.
G1G98Z-#100F3500.
PROGRAMMING MANUAL -67-
N10T1010
#100=10. (COMPONENT LENGTH AS POSITIVE)
M98P8888 (BAR FEED)
M1
G1G98Z0.5F2500.
M81
G4X1.
M83
M68(CHUCK CLOSE)
G0G99Z50.
X150.Z100.
M26
M99
M81(EJECT BAR)
G4X2.
M74(PARTS CATCHER BACK)
G0Z2.
PROGRAMMING MANUAL -68-
M99
N10T1010
M98P8888 (BAR FEED)
M1
G4X2.
M74(PARTS CATCHER HOME)
G0X0.
G1G98Z0.5F3500.
M82 (END OF BAR CHECK ON)
M81 (PUSH)
G4 X2.
M68 (CHUCK CLOSE)
M83 (END OF BAR CHECK OFF)
PROGRAMMING MANUAL -69-