00 EAGLE FANUC Oi

Download as pdf or txt
Download as pdf or txt
You are on page 1of 60

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”.

In millimetres per minute when the head is stopped (MC).


For example:
G98 F80 → this means “80 millimetres per minute”

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.

C: Chamfer programming (Standard type)


A: Angle programming (Standard type).

,C: Chamfer programming (MC type)


,A: Angle programming (MC type)
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.

Entering tool offset values

There are two ways for entering tool correction values.

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.

Work piece zero reference point


Work piece zero is the work piece protruding length from main chuck face.

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.
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.

Head rotation direction:


M3 head rotation direction forward
M4 head rotation direction reverse

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.

Line number (N10, N20...)


Line numbers are optional, and can be either entered or not.

G0 G40 G99 X45. Z0. M8


As you can see, G codes are first placed and then X, Z and M codes. Codes can be also
entered in the following manner: G0 X45. Z0.G99 G40 M8. Entering codes such as G96 and
G50 in the same line is not permitted.
Circular Interpolation

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

G70 P100 Q200P


P →Block number from which the profile operation begins.
Q →Block number from which the profile operation ends.

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.

G71 Longitudinal roughing cycle parallel to Z-axis

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

W →Depth of cut on Z-axis (mm).


R →retraction amount.
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).

Same as the above one, excepting for the profile.

G73 Roughing cycle with passes parallel to profile.

G73 U9 W9 R3
G73 P100 Q200 U0.4 W0.1 F0.3

U →Stock allowance (for radius) un machined on X-axis (mm).


W →Stock allowance on Z-axis (mm).
R →Number of roughing passes.
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).
G74 Drilling cycle (chip break)

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).

G83 Drilling cycle (chip breakage with retraction at the start)

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).

G84 Tapping cycle (rigid tap)


G0 G80 G99 X0 Z6
M29 S500
G84 Z-10 F1.
G80
Z →Final tapping depth (absolute dimensions in mm).
F →Feed rate (mm/revolution).

G74 Front counter boring cycle

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).

IMPORTANT: Roughing cycles are without tool radius


compensation. Because of this, higher allowances will be
specified for X and Z depending on tool radius.

G76 Threading cycle

G76 P030060 Q200 R0.05


G76 X98.773 Z-40 R0 P1227 Q400 F2

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).

This is normally set to 00


P60 →Thread angle in degrees
Q →Minimum depth of cut (Micron).
R →Finishing allowance (mm).

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

71 Canned roughing cycle

O0071; G71 U3 R1;


G21; G71 P100 Q200 U2 W2 F0.3;
G10 P0 Z-130; N100 G0 X40;
M34; G1 Z-30;
N1 T101; X60 Z-60;
Z-80;
(ROUGH TURN); N200 X100 Z-90;
G50 S2500; G70 P100 Q200 (FINISHING CYCLE)
G96 S200 M3; G0 G40 X200 Z200 M9;
G0 G40 G99 X105 Z0 M8; M35;
G1 X-2 F0.25; M30;
G0 X105 Z1;
G74 and G83 fixed drilling cycles (with chip breakage)

G74 Drilling cycle with a short retraction for chip breakage

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;

Grooving with chip breaking


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.
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

T1= OUTSIDE AND FACING.


T8= TWIST DRILL ø28
T10= BORING
T12= INTERNAL THREADING CUTTING
T5= EXTERNAL THREADING CUTTING

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

In theses cases, considering tool direction is most important.

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

00018 (Example of roughing cycle G72); N300 G0 X45;


G21; G41 X43. Z1;
G10 P0 Z-115.; G1 X38 Z-1.5 F0.1;
M34; ,A180 ,R15;
N1 T101; ,A195. X25 Z-30;
(ROUGH TURN); X22;
G50 S2200; X20 Z-31;
G96 S200 M3; N400 G40 X18.G0 X200. Z150 M9;
G0 G40 G99 X95 Z0.1 M8; M1;
G1 X18 F0.25; N10 T1010;
G0 X92 Z2; (FINISH BORE);
G72 W2.5 R1; G50 S1750;
G72 P100 Q200 U0.3 W0.15 F0.25; G96 S180 M3;
N100 G0 G41 Z-15; G0 G40 G99 X18 Z2 M8;
G1 X90; G70 P300 Q400;
X88 Z-1;4; G0 X200 Z150 M9;
X55 ,R4; M1;
Z-1.5; N3 T303;
N200 X50. Z1; (FINISH TURN);
G0 X150 Z200 M9; G50 S2250;
M1; G96 S230 M3;
N6 T606; G0 G40 G99 X57. Z0. M8;
(ROUGH BORE); G1 X35. F0.1;
G50 S2250; G0 X92 Z2;
G96 S150 M3; G70 P100 Q200;
G0 G40 G99 X18 Z2 M8; G0 G40 X200 Z150. M9;
G71 U2.5 R1; M35;
G71 P300 Q400 U-0.3 W0.1 F0.2; M30;
M98 Repetitions of a subprogram

SUBPROGRAM REPETITION APPLICATION

00019 (Repeating of subprogram M98);


G21;
G10 P0 Z-150.;
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;
SUBPROGRAM FOR A SLOT:
01000 (SUBPROGRAM FOR THE SLOT);
G1 U-12 F0.1;
G4 X1;
G0 U12;
W-1;
G1 U-4;
U-2 W1;
G0 U6;
W1;
G1 U-4;
U-2 W-1;
G0 U6;
M99 (END OF DE SUBPROGRAM);

The subprogram is called by means of command P followed by a number.


This number consists of four or more characters.

If the number consists of four characters, it indicates the identification


number of subprogram to be called.

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

PARTS OF A PROGRAM REPETITION APPLICATION:

00020 (REPEATING OF PARTS OF A PROGRAM);


G21;
G10 P0 Z-150.;
M34;
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;
SUBPROGRAM FOR A SLOT:
O1001 (SUBPROGRAM FOR GROOVING);
W-10;
G1 X30 F0.1;
G4 X1;
G0 X46;
M99;

As described above, a subprogram or part of a subprogram is repeatedly called by means of


acommand
P
followed by several numerical characters. In this example, the subprogram isrepeatedly called by
means of “P41001”.

This command consists of three parts:

“P” →calling a subprogram.


“4” →number of subprogram repetitions.
“1001” →number consisting of four characters and directly referring to the subprogram.

The maximum number of repetitions for a subprogram in a single call is 9999


OTHER EXAMPLE OF SUBPROGRAM EXECUTION REPETITION

PROGRAM:

O0021 (EXAMPLE OF M98);


G21G10 P0 Z-130;
M34;
M98 P30002 (REPEATS 3 TIMES THE SUBPROGRAM 0002);
G0 X150 Z150 M9;
M35;
M30;

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.

1- Stop the spindle by entering the command M5 before entering commandM45

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- is counter clock wise direction.

C+ C-
M codes related to C-axis functions

M3 Mill spindle forward direction


M4 Mill spindle reverse direction
M5 Mill spindle stop
M17 C Axis brake on
M18 C Axis brake off
M44 C-Axis disconnect
M45 C-Axis connect

G83 Front drilling cycle (powered tool)

(chip breakage with retraction to the start point)

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

Z →Final drilling depth (absolute dimensions in mm)


R →Distance from the initial position to the start point (incremental value, not required if
already in position)
H →distance between two holes in degrees.
K →number of holes.
Q →Depth of cut (microns).
P →Dwell time (s) at the bottom of the hole.
F →Feed rate (mm/min).
M17 →brake on, this is optional (the brake will automatically unclamp before indexing
within the cycle)
G84 Front tapping cycle (powered tool)
N5 G28 U0.; G84 Z-20 H90 K4 M17 F500.;
T505; G80;
M5; M5;
M45; M44;
G28 H0.; G0 X150. Z150. M9;
G97 S500 M3; M1;
G0 G80 G98 X30 Z6;

Z →Final tapping depth (absolute dimensions in mm).


H →distance between two holes in degrees.
K →number of holes.
P →Dwell time (s) at the bottom of the hole.
F →Feed rate (mm/min).
M17 →brake on, this is optional (the brake will automatically unclamp before indexing within the
cycle).

Rigid tapping is not available for live tooling

G87 Side drilling cycle (powered tool)


(chip breakage with retraction to the start point)
N5 G28 U0.;
T505;
M5;
M45;
G28H0.;
G97 S1500 M3;
G0 G80 G98 X50 Z-20;
G87 X30 H90 K4 Q2000 M17 F100;
G80;
M5;
M44;
G0 X150. Z150. M9;
M1;

X →Final drilling depth (absolute dimensions in mm)


H →distance between two holes in degrees.
K →number of holes.
Q →Depth of cut (microns).
P →Dwell time (s) at the bottom of the hole.
F →Feed rate (mm/min).
M17 →brake on, this is optional (the brake will automatically unclamp before indexing within the
cycle).
G88 Side tapping cycle (powered tool)
N5 G28 U0.;
T505;
M5;
M45;
G28 H0.;
G97 S500 M3;
G0 G80 G98 X50 Z-30;
G88 X30 H90 K4 M17 F500.;
G80;
M5;
M44;
G0 X150. Z150. M9;
M1;

X →Final tapping depth (absolute dimensions in mm)


H →distance between two holes in degrees.
K →number of holes.
P →Dwell time (s) at the bottom of the hole.
F →Feed rate (mm/min).
M17 →brake on, this is optional (the brake will automatically unclamp before indexing within the
cycle).

Rigid tapping is not available for live tooling


G83 Example of face front drilling cycle with powered tool

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;

G88 Example program of a radial tapping (side) with powered tool

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


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.

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

Use the following formula to calculate the following hexagon.


Data known: Across flats and angle

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)

Hydrafeed bar feed example

O1000 (PART PROGRAM)

N10 T1010
#100 =10. (COMPONENT LENGTH AS POSITIVE)
M98 P8888 (BAR FEED)
M1

O8888; (HYDRAFEED BAR FEED)


M5;
G0X150.Z50.M9
X0.;
Z2.;
M25;
M82;
G1G98Z-#100F3500.;
M69;
G4X1.;
Z0.5F2500.;

Leave 4 lines before and after the load new bar this is for control
buffering

/M98P8889 (LOAD NEW BAR)

M26;
M68;
G4X1.5;
M83;
G0 G99 Z100.;
G28 U0.;
M99;

O8889 (HYDRAFEED LOAD NEW BAR)


M68;
M83;
G0 Z50.;
G28 U0.;
M70 (PART CATCHER UP);
M69;
M82;

M81 (EJECT BAR)


G4X1.;
M74 (PARTS CATCHER HOME);
G4X1.;
G0X0.;
G1G98Z-#100F3500.;

M81; (LOAD NEW BAR)


G4 X2.;
Z0.5F2500.;
G99M26;
M99;

LNS Ecoload bar feed example


O1000; (PART PROGRAM)

N10 T1010
#100=10. (COMPONENT LENGTH AS POSITIVE)
M98P8888 (BAR FEED)
M1

O8888 (LNS ECOLOAD BAR FEED)


M5;
G0X150.Z100.M9;
X0.;
M25 (BLOCK SKIP ON)
Z2.;
G1 G98 Z-#100 F2500.;
M82;
M69;

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,

O8889 (LNS ECOLOAD LOAD NEW BAR)


M68;
M70 (PARTS CATCHER IN);
G1 G98 Z150. F2500.;
M69;-
M81 (EJECT BAR);
G4 X2.;
M74 (PARTS CATCHER BACK);
G0Z2;
M99;

Servo 80 bar feed example


O1000 (PART PROGRAM)
N10 T1010;
M98 P8888 (BAR FEED);
M1;

O8888 (SERVO 80 BAR FEED);


M5;
G0 X150. Z50. M9;
X0.;
Z2.;
M25 (SKIP ON);
G1 G98 Z0.5 F3500.;
M69 (CHUCK OPEN);
M81 (PUSH);
M82 (END OF BAR CHECK ON);
G4 X1.;
M83 (END OF BAR CHECK OFF);
G4X1.;
Leave 4 lines before and after the load new bar this is forcontrol
buffering

/M98P8889 (LOAD NEW BAR);


M26 (SKIP OFF);
M68 (CHUCK CLOSE);
G4 X1.G0 G99 Z50.;
G28 U0.;
M99;

O8889 (SERVO 80 LOAD NEW BAR);


M68 (CHUCK CLOSE);
G0 Z50.;
G28 U0.;
M70 (PART CATCHER UP);
M69 (CHUCK OPEN);
M82 (END OF BAR CHECK ON);
M81 (EJECT BAR);
M83 (END OF BAR CHECK OFF);
G4 X2.;
M74 (PARTS CATCHER HOME);
G0 X0.;
G1 G98 Z0.5 F3500.;
M82 (END OF BAR CHECK ON);
M81 (PUSH);
G4 X2.M68 (CHUCK CLOSE);
M83 (END OF BAR CHECK OFF);
G99 M26 (SKIP OFF);
M99;

You might also like