You are on page 1of 69

PROGRAMMING MANUAL -1-

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.
PROGRAMMING MANUAL -2-

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-

C Axis and Live tooling… . ………………………………………………………………………………………52


M codes related to C axis functions……………………………………………………………………………53
G83 Axial drilling cycle …. ………………………………………………………………………………………53
G84 Axial tapping cycle ... ………………………………………………………………………………………54
G87 Radial drilling cycle. .………………………………………………………………………………………54
G88 Radial tapping cycle .………………………………………………………………………………………55
G83 Example Axial drilling cycle program..……………………………………………………………………56
G87 Example Radial drilling cycle program.………………………………………………………………….58
G84 Example Axial tapping cycle program.…………………………………………………………………..59
G88 Example Radial tapping cycle program. ……………………………..…………………………………..60
Polar interpolation G112 and G113.……… …………………………………………………………………..61
Polar interpolation examples……………… …………………………………………………………………...64
Hydrafeed barfeed example……………… .……………………………………………………………………66
LNS Ecoload barfeed example…………… ……………………………………………………………………67
Servo 80 barfeed example .......…………………………………………………………………………………68
PROGRAMMING MANUAL -4-

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

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 C- C+


position the work piece for drilling operations using a
powered tool.

C+ is in clockwise direction and C- is counter clockwise


direction.

.
PROGRAMMING MANUAL -5-

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.

Cutting speed formula:


π×D×n
Vc= Vc= Cutting speed
1000 D= Part standard diameter
Vc×1000 n= Rpm limit.
n=
π×D

C: Chamfer programming (Standard type).


A: Angle programming (Standard type).

,C: Chamfer programming (MC type).


,A: Angle programming (MC type).
PROGRAMMING MANUAL -6-

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.

Workpiece zero reference point


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

M34; Chip conveyor on


Line number Position the turret on
N1 T101;
tool 1 with offset
Comment (FACING); number 01
Limit to
Spindle speed in G50 S2000 ; 2000 r.p.m.
m/min
G96 S200 M3; Spindle rotation in
Rapid, Cancel tool forward direction
compensation and Feed G0 G40 G99 X45. Z0. M8; Coolant on
(mm/revolution)
G1 X-2. F0.25; Position tool
Feed move
Feed rate per
G0 Z2. ; revolution
Rapid move to a safe
position End Point
X150. Z100. M9;
Program end rewind Coolant off
to start of program M35;
Chip conveyor off
M30;
PROGRAMMING MANUAL -8-

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.
PROGRAMMING MANUAL -9-

Taper turning

Pass

Pass

O0002; Name of the program


G21; Metric program
G10 P0 Z-78; Part-zero at –78
M34; Swarf conveyor on

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

N3 T303; Line number and Tool call (pos. 03 and offset


03)
(TURN); Description
G50 S2500;
G96 S220 M3;
G0 G40 G99 X30 Z2 M8;
G1 Z-22 F0.2; Machine to ø30 and Z-22
G2 X40 Z-27 R5 (CLOCKWISE); 5mm radius clockwise to X40 Z-27
G1 X55; Face to X55
G3 X80 Z-57 R80 (COUNTERCLOCKWISE); 80mm radius counter clockwise to X80 Z-
57
G1 Z-62; Machine to Z-60
X86; Face to X86
G0 X150 Z150 M9;
M35;
M30;
PROGRAMMING MANUAL -12-

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 and


G3 in counterclockwise direction.
You can also see that G2 or G3 is first entered, then the end point, and finally
the radius,
PROGRAMMING MANUAL -13-

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-

Incremental commands (U and W)

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-

Example for operation

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

G0 G40 G99 X35 Z0 M8;


G1 X-2 F0.15;
G0 X26 Z2;
G1 Z0;
X28 Z-1 F0.2;
Z-18 F0.25;
X32;
G0 X150 Z200 M9;
M1;

N2 T202 ;
(15MM DIA DRILL);
G97 S600 M3;
Drill

G0 G40 G99 X0 Z3 M8;


G1 Z-47 F0.1;
G0 Z10 M9;
X150. Z100.;
M1;
PROGRAMMING MANUAL -16-

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

Depending on the machine specification some options may not be


available.
Examples not in this manual can be found in the Fanuc Operators
manual.
PROGRAMMING MANUAL -19-

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.

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;

G32 for threading operations, always operate at fixed rpm (G97).


When retapping threads, do not release the work piece, do not change the
speed and do not change the start point.
PROGRAMMING MANUAL -22-

CANNED CYCLES

G70 Finishing cycle


G70 P100 Q200
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.
PROGRAMMING MANUAL -23-

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) unmachined 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).
PROGRAMMING MANUAL -24-

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 P3000Q4000F0.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).
PROGRAMMING MANUAL -25-

G75 Longitudinal grooving cycle


G75 R0.2
G75 X43 W-7.5 P4000Q2500F0.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).
PROGRAMMING MANUAL -26-

1. EXAMPLES OF CANNED CYCLES

G71 Canned roughing cycle

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-

G71 P100 Q200 U2 W2 F0.3;


N100 G0 X40;
G1 Z-30;
X60 Z-60;
Z-80;
N200 X100 Z-90;
G70 P100 Q200 (FINISHING CYCLE)
G0 G40 X200 Z200 M9;
M35;
M30;
PROGRAMMING MANUAL -28-

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

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

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.
PROGRAMMING MANUAL -30-

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;
PROGRAMMING MANUAL -31-

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

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.
PROGRAMMING MANUAL -34-

Direct programming of profile (angles and round edges)

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-

Tool radius compensation


1st) Type of toolÆ (Control) T (Offsets table).
2st) Radius inserts of toolÆ (Control) R (Offsets table).
3st) Workpiece position with respect to tool Æ (Part program) G41 or G42.

EXTERNAL

INTERNAL
PROGRAMMING MANUAL -37-

Tool types

Milling cutters are assigned with type “0” or “9” for interpolations.
PROGRAMMING MANUAL -38-

G40 G41 and G42 tool radius compensation

Tools
T1 = EXTERNAL
T8= TWIST DRILL ø38
T10 = INTERNAL
PROGRAMMING MANUAL -39-

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

G71 Type I - Example of roughing and finishing cycle with direct


definition of profile and tool radius compensation
PROGRAMMING MANUAL -41-

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 positioning
is done above the workpiece.
PROGRAMMING MANUAL -42-

1.1 G71 Type II - Roughing cycle with displacement


direction reversal on X-axis
PROGRAMMING MANUAL -43-

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.
PROGRAMMING MANUAL -44-

G72 Example of cross roughing cycle parallel to X-axis

TOOLS:

T1 = EXTERNAL ROUGHING
T2 = EXTERNAL FINISHING
T6 = INTERNAL ROUGHING
T10 = INTERNAL FINISHING
PROGRAMMING MANUAL -45-

ROUGHING CYCLE APPLICATION

00018 (Example of roughing cycle G72);


G21;
G10 P0 Z-115.;
M34;

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-

M98 Repetitions of a subprogram


PROGRAMMING MANUAL -48-

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.
PROGRAMMING MANUAL -49-

M98 Repetition of parts of a program


PROGRAMMING MANUAL -50-

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 a


command P followed by several numerical characters. In this example, the subprogram is
repeatedly 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.
PROGRAMMING MANUAL -51-

OTHER EXAMPLE OF SUBPROGRAM EXECUTION REPETITION

PROGRAM:

O0021 (EXAMPLE OF M98);


G21
G10 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
PROGRAMMING MANUAL -52-

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 command


M45
2- Before entering command M44, the powered tool must be stopped by
entering command M5.
3- M17 brake on command is optional depending on the diameter of the tool
being 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 a
powered tool.

C+ is in clockwise direction and C- is counter clockwise


direction.
C- C+
PROGRAMMING MANUAL -53-

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
G28H0.
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).
PROGRAMMING MANUAL -54-

G84 Front tapping cycle (powered tool)


N5 G28 U0.
T505
M5
M45
G28H0.
G97 S500 M3
G0 G80 G98 X30 Z6
G84 Z-20 H90 K4 M17 F500.
G80
M5
M44
G0 X150. Z150. M9
M1

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).
PROGRAMMING MANUAL -55-

G88 Side tapping cycle (powered tool)


N5 G28 U0.
T505
M5
M45
G28H0.
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


PROGRAMMING MANUAL -56-

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

G87 Example program of a side radial drilling cycle with powered


tool

3 HOLES SPACED 120º


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

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


PROGRAMMING MANUAL -60-

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

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.
PROGRAMMING MANUAL -62-

11. Specify the feedrate 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.
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

Example of machining a rectangle


PROGRAMMING MANUAL -64-

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


PROGRAMMING MANUAL -65-

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

Bar feed examples


PROGRAMMING MANUAL -66-

Please note that the following bar feed program examples are a guide and some
modifaO1000(PART PROGRAM

Hydrafeed bar feed example


O1000(PART PROGRAM)

N10T1010
#100=10. (COMPONENT LENGTH AS POSITIVE)
M98P8888 (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
G0G99Z100.
G28U0.
M99

O8889 (HYDRAFEED LOAD NEW BAR)


M68
M83
G0Z50.
G28U0.
M70(PART CATCHER UP)
M69
M82

M81(EJECT BAR)
G4X1.
M74(PARTS CATCHER HOME)
G4X1.
G0X0.
G1G98Z-#100F3500.
PROGRAMMING MANUAL -67-

M81 (LOAD NEW BAR)


G4 X2.
Z0.5F2500.
G99M26
M99

LNS Ecoload bar feed example


O1000(PART PROGRAM)

N10T1010
#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)
G0G99Z50.
X150.Z100.
M26
M99

O8889(LNS ECOLOAD LOAD NEW BAR)


M68
M70 (PARTS CATCHER IN)
G1G98Z150.F2500.
M69

M81(EJECT BAR)
G4X2.
M74(PARTS CATCHER BACK)
G0Z2.
PROGRAMMING MANUAL -68-

M99

Servo 80 bar feed example


O1000(PART PROGRAM)

N10T1010
M98P8888 (BAR FEED)
M1

O8888(SERVO 80 BAR FEED)


M5
G0X150.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 for
control buffering

/M98P8889(LOAD NEW BAR)


M26 (SKIP OFF)
M68 (CHUCK CLOSE)
G4X1.
G0G99Z50.
G28U0.
M99

O8889 (SERVO 80 LOAD NEW BAR)


M68 (CHUCK CLOSE)
G0Z50.
G28U0.
M70 (PART CATCHER UP)
M69 (CHUCK OPEN)
M82 (END OF BAR CHECK ON)
M81 (EJECT BAR)
M83 (END OF BAR CHECK OFF)

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-

G99M26 (SKIP OFF)


M99

You might also like