00 EAGLE FANUC Oi
00 EAGLE FANUC Oi
00 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. Dugard Ltd makes no representation or
warranty, expressed, implied or statutory with respect to, and assumes no responsibility for the accuracy,
completeness, sufficiency or usefulness of the information in the manual.
BASIC CONCEPTS
Machine axes
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).Commonly, you will operate in the
quadrant defined by X+ and Z-.The machine will enter only in X- area for facing operations. C-axis
would be used to swivel the head in order to position the work piece for drilling operations using a
powered tool. C+ is in clockwise direction and C- is counter clock wise direction
Other axes that could be encountered when programming the machine
are
F: feed axis (related to slides) to be programmed when in operation. In millimetres x per revolution
when the head is rotating (turning)
For example:
G99 F0.3 → this means “03 millimetres per revolution”.
T: is turret rotation.
R: is radius programming.
S: are head revolutions (cutting speed) this letter is always related to heads.
1st.) Supplied with presetter. For machines with presetter, place the presetter in position
and preset the tool.
2nd.) supplied without presetter. 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.
We advise you to enter work piece zero at the beginning of the program. For Example: G10P0X0.Z-120.
In this manual we will always refer to G codes type A.
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.
In this example we assume that the part is rough machined. As seen in this example,
G2 is used to machine radii in clockwise direction andG3 in counterclockwise
direction. You can also see that G2 or G3 is first entered, then the end point, and
finally the radius.
Circular Interpolation
Incremental Commands (U and W)
Example for Operation
G Code List
M Functions
M functions used in machining programs are described in this section. These codes control
functions complementary to those controlled by G codes. For instance, coolant supply, head
rotation direction, etc.
Threading
O0008; N2 T202;
G21; (SCREWCUT);
G10 P0 Z-95; G97 S700 M3;
M34; G0 G40 G99 X60 Z6 M8;
N1 T101; X59.4 (First pass);
(TURN); G32 Z-40 F1 (F=THREAD PITCH);
G50 S2500; G0 X62; Z6;
G96 S200 M3; X58.8 (Second pass);
G0 G40 G99 X70 Z0 M8; G32 Z-40 F1;
G1 X-2 F0.25; G0 X62;
G0 X57 Z1; Z6;
G1 Z0; X58.7 (Last pass);
X59.9 Z-1.5; G32 Z-40 F1;
Z-45; G0 X62;
X66; X150 Z100M9;
G0 X150 Z100 M9; M35;
M1; M30;
G32 for threading operations, always operate at fixed rpm (G97).When re tapping
threads, do not release the work piece, do not change the speed and do not change the
start point
CANNED CYCLESG
70 Finishing cycle
G71 U3 R1
G71 P100 Q200 U0.3 W0.1 F0.25
U →Cut depth on radius (mm).
R →Retraction in radial direction from diameter to prevent touching the machined
diameter(mm).
P →Block number from which the profile operation begins.
Q →Number of end block of profile.
U →Finishing allowance for radius on X-axis (mm).
W →Finishing allowance on Z-axis (mm).
F →Instantaneous feed (mm/revolution).
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.
G72 Cross roughing cycle transversal parallel to X-axis
G72 W3 R1
G72 P100 Q200 U0.25 W0.1 F0.3
G73 U9 W9 R3
G73 P100 Q200 U0.4 W0.1 F0.3
G74 R0.5
G74 Z-100 Q2500 F0.25
R →Retract distance (chip break).
Z →Final drilling depth (absolute dimensions in mm).
Q →Cut depth per pass (Micron).
F →Feed rate (mm/revolution).
G0 G80 G99 X0 Z3
G83 Z-60 Q2000F0.2
G80
Z →Final drilling depth (absolute dimensions in mm).
Q →Depth of cut (Micron).
F →Feed rate (mm/revolution).
G74 R0.5
G74 X50 Z-4 P3000 Q4000 F0.15
R →Retraction (mm) to break chips.
X (U) →End position on X-axis (mm).
Z (W) →End position in slot direction (mm).
P →Step over on X-axis for next pass (Micron)
Q →Cutting depth (Micron).
F →Feed rate (mm/revolution).
G75 Longitudinal grooving cycle.
G75 R0.2
G75 X43 W-7.5 P4000 Q2500 F0.15
R →Retraction (mm) to break chips
X →Groove bottom diameter (mm).
W→Groove end point on Z-axis (mm) if Z is specified in absolute dimensions
and W is the displacement in incremental mode; from left-hand to right-hand (W+) and from
right-hand to left-hand (W-), always subtracting tool width.
P →Cutting depth on X-axis (Micron).
Q →Step over on Z-axis for next pass (Micron).
F →Instantaneous feed (mm/revolution).
1ST Line
P03 →Number of finishing passes.
P00 →Thread run out; distance at which thread outlet is started, in tenths of
turn Example: If thread pitch is 2 and 20 is entered: 2mm x 2 turns = 4 mm (thread
runs out 4mm before the end point).
2nd Line
X →Core diameter (mm).
Z →Thread end point on Z-axis (absolute dimensions in mm).
R →Height difference on radius (mm) for taper threads.
P →Thread depth (Micron).
Q →Cut depth for first pass (Micron).
F →Thread pitch (mm)
1. EXAMPLES OF CANNED CYCLESG
O0009;
G21;
G10 P0 Z-75.;
M34;
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; G97 S500 M3;
G21; G0 G80 G99 X0 Z3 M8;
G10 P0 Z-75.; G83 Z-60 Q20000 F0.2;
M34; G80G0 X200 Z100 M9;
N8 T808; M35;
(DRILL); M30;
Fixed longitudinal grooving cycle
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;
G75 X69 Z-28 P3000Q2500 F.1;
G0 X150. Z100. M9;
M35;
M30;
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.
Threading fixed cycle
O0012;
G21;
G10 P0 Z-88;
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;
Application exercise for threading operations
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;
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;
G50S2000G96 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 SIMPLIFICATION FUNCTIONS
The easier procedure is drawing a quadrant on the drawing and locate the degrees as
shown on the above diagram
Direct programming of profile (angles and round edges)
For more in depth information, please see the “Fanuc operators Manual”
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;
Tool radius compensation
1st) Type of tool →(Control) T (Offsets table).
2st) Radius inserts of tool →(Control) R (Offsets table).
3st) Work piece position with respect to tool (Part program) G41 or G42.
EXTERNAL
INTERNAL
Tool types
Milling cutters are assigned with type “0” or “9” for interpolations
G40 G41 and G42 tool radius compensation
Tools
T1 = EXTERNAL
T8= TWIST DRILL ø38
T10 = INTERNAL
O0015 (TOOL RADIUS COMPENSATION G40, G41, G42);
G21;
G10 P0 Z-95.;
M34;
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 S2000G96 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;
G71 Type I - Example of roughing and finishing cycle with direct definition of
profile and tool radius compensation
O0016 (Example of roughing cycle G71 Type I);
G21;
G10 P0 Z-115.;
M34;
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 positioningis done
above the workpiece.
1.1 G71 Type II - Roughing cycle with displacement direction reversal on
X-axis
O0017 (Example of roughing cycle G71 Type II)
G21;
G10 P0 Z-115.;
M34;
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.
G72 Example of cross roughing cycle parallel to X-axis
TOOLS:
T1 = EXTERNAL ROUGHING
T2 = EXTERNAL FINISHING
T6 = INTERNAL ROUGHING
T10 = INTERNAL FINISHING
ROUGHING CYCLE APPLICATION
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
M98 Repetition of parts of a program
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
C-Axis and powered tooling.
This section describes the procedures used to program MC type machines controlled by the
C-axis.
2- Before entering command M44, the powered tool must be stopped byentering command M5.
3- M17 brake on command is optional depending on the diameter of the toolbeing used the following
examples use the brake command.
C-axis would be used to swivel the head in order to position the work piece for drilling operations
using apowered tool.C+ is in clockwise direction and
C+ C-
M codes related to C-axis functions
N5G28 U0;
T505;
M5;
M45;
G28 H0.;
G97 S1500 M3;
G0 G80 G98 X30 Z3;
G83 Z-30 H90 K4 Q2000 M17 F100;
G80;
M5;
M44;
G0 X150. Z150. M9;
M1
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. Z2 M8;
G83 Z-10.K4 H90.M17 F100.;
G80;
M5;
M44;
G0 X150 Z150 M9;
M1;
ALTERNATIVE PROGRAM
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;
G87 Example program of a side radial drilling cycle with powered tool
3 HOLES SPACED
O0021;
G21;
G10 P0 X0 Z-100;
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
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;
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.
X- X+
1. The following G codes may be used when G112 is active: G1, G2, G3, G40, G41, G42, G65, and
G98.
2. G0 positioning is not allowed when G112 or G12.1 is active.
3. When using G2 or G3, the arc radius is specified using the R word.
4. M45 C axis mode must be active before commanding polar coordinate interpolation.
5. The spindle should be oriented to C0 degrees before commanding polar coordinate interpolation.
6. If machining in the X axis only, do not activate polar coordinate interpolation.
7. The unit of command for the C axis, when polar coordinate interpolation is used, is MM or
inches, not degrees.
8. When using cutter compensation during polar coordinate interpolation, the same basic TNRC
rules apply as with normal lathe programming. However, the following rules must also be observed:-The
tool radius and the quadrant must be loaded into the geometry offset file. For polar coordinate
interpolation, the X tool offset represents the centre of the cutter and the tool tip location (Quadrant) will
be set to 9.
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.
11. Specify the feed rate as millimetres per minute.
12. X values are diameters and C values are radii.
Tool nose radius compensation and circular interpolation used with G112
polar coordinate interpolation.
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
Example of machining a rectangle
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;
Example of machining a Hexagon
A= 50/2 = 28.867
Cos30
B= 30Tan*50/2 =14.433
N6 G28 U0.;
T606;
(AXIAL MILL);
M5;
M45;
G28 H0G97 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;
Bar feed examples
Please note that the following bar feed program examples are a guide and some modifa
O1000 (PART PROGRAM)
N10 T1010
#100 =10. (COMPONENT LENGTH AS POSITIVE)
M98 P8888 (BAR FEED)
M1
Leave 4 lines before and after the load new bar this is for control
buffering
M26;
M68;
G4X1.5;
M83;
G0 G99 Z100.;
G28 U0.;
M99;
N10 T1010
#100=10. (COMPONENT LENGTH AS POSITIVE)
M98P8888 (BAR FEED)
M1
Leave 4 lines before and after the load new bar this is for control
buffering
/M98P8889(LOAD NEW BAR)
G1G98Z0.5F2500.;
M81;
G4X1.;
M83;
M68 (CHUCK CLOSE);
G0 G99 Z50.;
X150. Z100.;
M26;
M99,