Manual Guide: Turning Examples
Manual Guide: Turning Examples
Turning Examples
Contents
OVERVIEW OF THE MANUAL GUIDE i PROGRAMMING PROCESS 5
Structure of a MANUAL GUIDE i Program 5
Structure of an Operation 5
Fixed Form Sentences 6
DEFINING ARBITRARY PROFILES 8
Start Point 8
Lines 9
Two Lines and a Corner Radius 10
Closing the Profile 10
Saving the Arbitrary Profile 11
Example Profile 11
Modifying an Arbitrary Profile 26
PLANNING 28
Workpiece Drawing 28
Part Blank Size 28
Setup 28
Workpiece Program Zero 28
Safe Approach Position 29
Visualize Operations 29
Tooling and Feeds and Speeds 30
Drilling Cycle 30
Tolerance Analysis 30
SETTING TOOL DATA 32
T0101 Roughing Tool 33
T0202 Finishing Tool 37
T0909 3/8” Drill 42
CREATING THE PROGRAM 45
START THE PROGRAM 47
CYLINDER BLANK FIGURE (G1900) PARAMETERS 50
DEFINE THE MATERIAL BLANK 51
TURNING OUTER ROUGH (G1120) PARAMETERS 53
OPERATION 1 - ROUGH TURNING 58
Start Tool T0101 58
Turning (Outer Rough) Cycle 59
End Tool T0101 71
VERIFY OPERATION 1 73
Whether machining a part with a manual lathe or using a CNC turning center, much of the planning and process develop-
ment is the same.
1. Study the workpiece drawing to visualize the part in 3-dimensions, noting material type, blank size, geometric fea-
tures and accuracy and tolerance requirements.
2. Visualize the sequence of operations to machine the part.
3. Select the tools required for each machining operation.
4. Calculate the feeds and speeds for each tool.
5. Design the workholding to hold the part during machining.
6. Generate and verify the program (not required for manual machining).
7. Setup the machine (tooling and workpiece coordinate system zero).
8. Verify the program on the machine.
9. First part inspection (using trial machining for tight tolerances).
10. Run production.
Programming in G-code, a CAM programming system or conversational programming all require you to think in machining
operations and only the physical coding of the part program is different. Manual machinist and Conversational Program-
mers often have the advantage over office bound G-code and CAM programmers in that they can collect the workpiece
blanks and tooling right at the machine, which simplifies the visualization and decision making processes.
Structure of a MANUAL GUIDE i Program
MANUAL GUIDE i programs follow are structured and programmed using the sequence of operations. The overall struc-
ture is:
START PROGRAM (Program number, program comment, material blank definition)
..
END PROGRAM
Structure of an Operation
An operation in MANUAL GUIDE i also follows a structure. A machining cycle can be further broken down into cutting
conditions, cutting detail and geometry. The overall structure is:
START TOOL (Restart blocks, tool change and tool offset activation, spindle start, coolant etc)
END TOOL (move to tool change position, coolant off, spindle stop, optional stop etc).
Secrets to Success
Before starting to program a part with MANUAL GUIDE i
• Install a set of Fixed Form Sentences setup that suit your needs
• Markup the workpiece drawing to identify each tool and operation
• Calculate all feeds and speeds for each tool and operation
• Setup tool geometry radius and the other tool data
• Follow the recommended structures outline above
Turning parts typically feature an arbitrary outer profile that must be roughed and finished machined. Many part also fea-
ture inner profiles that also must be drilled, rough turned and finished machined. Most of the other turning features have
a more regular profiles that can be defined with simple geometry such as depth, length, diameter and pitch–for example,
holes, tapped holes, grooves and threads.
Most arbitrary profiles can be defined by a series of lines, chamfers and arcs using the soft keys LINE, ARC (CW), ARC
(CCW), CR (corner radius) and CC (corner chamfer).
The main challenge in defining arbitrary profiles is that not every feature is fully dimensioned. For example, parts often
include two lines with a radius in between them. The start-point of one line is dimensioned as well as the end-point of the
second line. The arc radius is also called out. However, the point that the lines meet the arc or are tangent to the arc is not
typically dimensioned and must be calculated by manufacturing engineers. Consider the simple workpiece drawing oppo-
site. The R.200 arc sits between two lines. The first line is a face starting at a diameter of 1.250-inches and 1.875 from the
end of the part. The line is at a 90° angle to the centerline of the part. The second line ends at a diameter of 1.750-inches
and 2.875-inches. The line is parellel to the centerline of the workpiece. The point that the R.200 arc blends we either line
is not specified.
MANUAL GUIDE i includes a simple interface to describe arbitrary profiles using lines and arcs. The goal is to define the
profile using only the information on the workpiece drawing. It includes several helper functions to handle the cases such
as blended arcs and every data input field allows expression to be used to make calculations.
Profiles entered for the roughing pass can be reused for the finishing pass, eliminating the need to describe the profile
twice.
Start Point
When defining an arbitrary profile, most of the data input is around determining the end-point of a line or arc. The initial
start-point for one feature is assumed to be the end-point of the prior feature. However, the very first feature we program
on an arbitrary profile does not have a prior end-point. Therefore, all arbitrary profiles begin with specifying an initial start-
point.
Arbitrary profiles are typically defined from right to left, because the workpiece coordinate or part zero point is typically
assigned on the end of the part. Turning parts are also often dimension from right to left, as in the example case opposite.
The first feature on the profile of the example part is a .060-inch chamfer at 45°–a common turning part feature. We must
specify the start-point with a X-axis diameter and a Z-axis position.
The Z-axis position is easy, it is the end of the part or the position Z0. However, the start-point of the chamfer is not dimen-
sions.
The start diameter of the chamfer is easy to calculate. We know the end-point diameter is .750-inches. We also know the
chamfer is .060-inches, but that is a radius value. We calculate the chamfer start diameters by subtracting 2 times the
chamfer length (2 x .060) from the end-point diameter (.750). Before reaching for a calculate, understand that MANUAL
GUIDE i allows you to enter an expression into any field. So you enter the expression “.75-(2*.06). The parentheses are
not strictly required, since the rules of order of operations means that the multiplication “2*.06” will be calculated before
the minus. When the input key is pressed, the expression is evaluated and the value of ɸ0.63 is entered in the field.
R.200
.060 X 45°
ø1.250
ø0.750
ø2.250
4.725
2.875
1.875
.875
.625
.000
Lines
Defining line segments in an arbitrary profile is quite simple.
Step 1.
For example the chamfer on the end of the part is moving left and up from the start point, so you would press the
soft key. The next line is moving left parallel to the centerline of the part, so you press the soft key for
that segment. The next two segments are another chamfer moving left and up and a shoulder to the left.
Step 3.
Enter the information for the end-point of the line.
MANUAL GUIDE i Turning Examples -9- FANUC America Corporation
Two Lines and a Corner Radius
Two lines with a corner blend radius is a very common feature on turning parts. In the example part above, one line moves
up from the 1.250 diameter and blends with a R.200 radius. The second line leaves the blends with the radius and moves
left to at a diameter of 1.750 to the point 2.875. It would be easy in this case to calculate the blend points, but MANUAL
GUIDE i provides and easier way.
Step 1.
Indicate the direction of the first line (we already know the start-point from the prior segment).
When the form requesting the end-point of the first line is displayed, press the soft key without entering any
data.
Step 3.
Press the (corner radius) soft key and enter the radius value.
Step 4.
Enter a full definition of the end-point of the second line. In the example case the line is moving left, so the angle is known.
Only the end diameter and the end Z-axis position is required. Enter the required information and press the soft
key.
Closing the Profile
When an arbitrary profile has been specified, the final step is to indicate where the workpiece blank is to be machined. It
may be clear in you mind as you define the profile, but MANUAL GUIDE i does not know if you are defining an outer pro-
file or an inner profile. For parts machined from bar stock, this is relatively simple. The screen below shows the situation
after defining the last line segment for the example part shown previously.
When the soft key is pressed after an arbitrary profile is defined and the profile is closed, you are presented with
two choices. Either you can save the profile in the current part program, or save the profile as a subprogram. Arbitrary pro-
files are typically used twice in a MANUAL GUIDE i program, once for the roughing and then again for the finishing pass.
Therefore, it typically makes most sense to save the profile as a subprogram.
When you save the arbitrary profile as a subprogram, it makes sense to use the program numbers 8000-8499. When you
reuse the profile created in the roughing cycle for the finishing cycle profile, MANUAL GUIDE i displays a list of available
profiles based on a series of program numbers in the range specified by parameters 14720 and 14721 (14720=8000,
14721=8499).
It also helps to provide a comment that describes which part program uses the profile.
Example Profile
Creating and using arbitrary profile is very important for MANUAL GUIDE i applications, so we will first go through to
process one time with the simple part shown above. We will start with a partially developed part program. Already pro-
grammed are the initial G-codes, the workpiece blank, the tool selection and spindle speed, and the cutting conditions for
TURNING (OUTER ROUGH) cycles.
You can just read through the steps and hopefully understand the process. If you want to create the profile yourself, the
initial program listing is provided in the appendix of this document.
Print out the workpiece drawing so that you can refer to it as we program.
Note
If using MANUAL GUIDE i in NCGuide, you can press
ENTER on the PC keyboard.
soft key.
key.
the key.
key.
To complete the ALTER operation, press the
soft key.
soft key.
soft key.
Ø0.375
R0.125
80°
R0.125
C0.06
60°
0.75
1.125
2.0
3.125
R0.125
C0.06
60q
2
4
0.75
1.125
2.0
3.125
R0.125
C0.06
60q
- 31 -
4
0.75
1.125
2.0
3.125
Blank 4.0 dia. x 5.0in long steel
Work Origin Z - 0.050”
Chuck with 3.2” from jaws
Safe Approach dia. X4.2
Tool Offset # Tool Type Tool Name Set Cut Angle Nose Angle
The tool geometry offsets and the tool data values can either be enter using the MDI keyboard, or by reading the data
from a memory card. Suitable memory card files are provided in the appendix of this document.
Note:
If using MANUAL GUIDE i in NCGuide, the keyboard
short cut Cttl-3 selects EDIT mode.
Note:
In MANUAL GUIDE i, pressing the right-cursor key
when on the top line of a table can either select the next
tab (GEOMETRY OFFSET, WEAR OFFSET and TOOL
DATA) or the next column of data (X-AXIS, Z-AXIS,
RADIUS and VIRT. TIP) depending on whether the
cursor mode is TAB mode or ITEM mode. The current
mode is displayed on the right hand side of the title bar
(TAB mode in the example). The change cursor soft
key switches between TAB mode and ITEM or column
mode.
Note:
The current cursor mode (TAB or ITEM) is displayed in
the top right of the TOOL OFFSET window.
key.
Note:
You can enter an expression in any input field in MANU-
AL GUIDE i.
Note:
There are several tool types to select from including
GENERAL, THREAD, GROOVE, BUTTON, STRAIGHT,
DRILL, CHAMFER, END MILL, BALL MILL, TAP,
REAMER, BORING and FACE MILL. Selecting the tool
type and entering the tool data correctly is important.
GENERAL is a standard turning tool.
Note:
The text field identifying tools must be 8-characters long
or less.
Note:
In NCGuide, the ENTER key on the PC keyboard is the
shortcut key for INPUT on the MDI panel.
Note:
The current cursor mode (TAB or ITEM) is displayed in
the top right of the TOOL OFFSET window.
key.
Note:
The current cursor mode (TAB or ITEM) is displayed in
the top right of the TOOL OFFSET window.
, , , , and then
Note:
Though tool nose radius will not be used with a drill,
MANUAL GUIDE i will use this field to display the diam-
eter of the tool during 3D annimation.
Note:
Centerline cutting tools such as drills do not use tool
nose radius compensation, that is why we set the drill to
a virtual tip of zero. However, MANUAL GUIDE i does
use the RADIUS value to display the tool in 3D annima-
tion.
Note:
There are several tool types to select from including
GENERAL, THREAD, GROOVE, BUTTON, STRAIGHT,
DRILL, CHAMFER, END MILL, BALL MILL, TAP,
REAMER, BORING and FACE MILL. Selecting the tool
type and entering the tool data correctly is important.
Note:
The tool type label is limited to 8 characters. We could
label this drill “.375 DRL” or “.375DRIL” if we had more
drills in the turret and needed to differentiate between
them.
Note:
There is no field for the CUT ANGLE for a drill. The data
to be entered in tool data varies depending on the tool
type selected.
soft key.
Note:
In this tutorial, we only set the tool geometry and tool
data values required for programming. At runtime, to X
and Z geometry offsets must be set before machining a
part.
soft key.
Note:
The comment entered in the previous step is also
display on the first line of the program in parentheses.
Note:
The G-code in the example START PROGRAM Fixed
Form Sentence and the selections available may be
different on your machine. Fixed Form Sentences are
customizable by the machine tool builder/distributor and
the end-user.
Note:
When modifying an individual word in a part program
like the S-word in the Fixed Form Sentence inserted, it
must be altered with the MDI panel ALTER key and NOT
the ALTER soft key.
Note:
After manual editing Fixed Form Sentence, you must
always position the cursor back on the last line in the
program (the line before the %) and all the way to the
left so that the whole line is highlighted.
The material blank is defined mostly for the 3D animation of machining. Note that data item names with an asterisk (*) are
optional and do not have to be specified. The graphic is the one displayed on the CNC screen when that field is selected.
The data required is typically highlighted in yellow.
D DIAMETER
L LENGTH
K WORK ORIGIN Z
Note:
The blank part dimensions entered in the blank defini-
tion are only used for the graphic simulation of the work-
piece and have no influence on the tool path generated
by MANUAL GUIDE i.
The first operation is a outer rough turning cycle. This section explain the various parameters of the cycle. Note that data
item names with an asterisk (*) are optional and do not have to be specified. The graphic is the one displayed on the CNC
screen when that field is selected. The data required is typically highlighted in yellow.
The feedrate when the tool cuts into the workpiece in the
radius (-X) direction.
This value is provided by the tooling manufacture guide-
lines for a material type and application. If no particular
E CUT DEPTH FEEDRATE application guidelines are provided, make it the same as
(F).
The feedrate when the tool cuts aways from the cen-
terline of the workpiece in the radius (+X) direction, up
shoulders and faces.
This value is provided by the tooling manufacture guide-
V CUT RISE FEEDRATE lines for a material type and application. If no particular
application guidelines are provided, make it the same as
(F).
Detail Tab
Data Item Graphic Description
The feedrate oveeride value for the first cutting pass. Set
a positive value between 1 and 200% (1% increments).
This allows the feedrates specified on the cutting condi-
No specific graphic for tions tab to be reduced or increased on the first cutting
K 1ST FEED OVERRIDE
this parameter pass.
For example, the outer surface of a casting may be hard-
er than the material below, so the feedrate for the first
pass may need to be reduced.
There are two methods of retract at the end of each
roughing pass: (1) The SPEED method immediately
retracts at rapid at a 45° angle at the end of each pass
to the ESCAPE AMOUNT (U). The SPEED method is
faster, but leaves 45° pips on faces that may need to be
removed by a semi-finishing pass before the finishing
pass; (2) The CUT method machines up the face profile
No specific graphic for
W CUT RISE METHOD at the programmed feedrate before retracting at the rapid
this parameter
rate at 45°. The CUT method is slower but produces a
smoother surface for immediate finishing.
Soft keys describe the tool moves in Z first, then X (initial value).
Z APPROACH MOTION
choices
N WT/WTOUT ED FACE MC
Press the soft key rough face the end of the
workpiece blank.
Notes:
Fields that are predetermined choices use soft keys to
select a choice. For example, the first field CUTTING DI-
Notes:
The parameter 27100#0=0 so the CUT SHIFT DIREC-
TION field is not displayed and the direction is -X.
Note:
The END FACE REMOVAL FIELD is not displayed until
after you press the AVAILABLE soft key.
soft key.
Note:
In MANUAL GUIDE i, always specify the actual coordi-
nates of the part profile ignoring approach positions. The
profile is created with a series of lines and arcs.
Note:
The end point of the diameter or the blend point of
the diamter to the radius is not given on the drawing.
MANUAL GUIDE i allows us to specify the start point of
one line (provided in the last step) and the end point of
another line and a corner radius or chamfer between the
two lines.
MANUAL GUIDE i will then calculate all the intersecting
blend points automatically.
Note:
The G-code G1120 is the cutting conditions for the
TURNING (OUTER ROUGH) cycle. The M98 is a call
to subprogram 8020, that contains the turning profile
we just defined.
soft key.
Note:
The blank displayed is the last part that was simulat-
ed. When we run the simulation for the first time it will
read the blank size and display it correctly. Then that
blank will become the last part that was simulated.
Note:
The message 5010 END OF RECORD is displayed
because we do not have inserted an END PROGRAM
(M30) yet. We will fix this later.
The next operation is a drilling cycle. This section explain the various parameters of the drilling cycle. Note that data item
names with an asterisk (*) are optional and do not have to be specified. The graphic is the one displayed when that field is
selected. The data required is highlighted in yellow.
Q PECKING CUT DEPTH* The retract of the peck can be as small as 5-thousanths,
so peck drilling does not significantly effect cycle time on
a modern machine
C CLEARANCE
F FEED RATE
P DWELL TIME
Position/Size Tab
Data Item Graphic Description
Absolute Z coordinate of the surface of the workpiece.
This is typically used to reduce air cut time when the drill-
ing is performed in a previously machined pocket.
Specify a value of zero if machining on the end of the
B BASE POSITION (Z) part.
+Z
Press the for a positive face.
(+) Height
Depth (-)
+Z
Height (+)
.
Detail Tab
Data Item Graphic Description
Tooling manufacturers may recommend a lower feedrate
if the material surface is inclined, concaved or irregular.
This field provides an optional feedrate to be used for un-
til the drill is fully engaged with the material. This param-
A START CUT DEPTH* eter specifies the distance to use the feedrate specified
by the START FEED RATE field.
.
Tooling manufacturers may recommend a lower feedrate
if the material surface is inclined, concaved or irregular.
This field provides an optional feedrate to be used for un-
til the drill is fully engaged with the material. This param-
S START FEED RATE* eter specifies the feedrate to use for the depth specified
by the START CUT DEPTH field.
Note:
Centerline tools like drills do not use Constant Surface
Speed programming mode.
Note:
Again, make sure you use the ALTER key on the MDI
keyboard and not the ALTER soft key to change the
value of the fields.
Note:
After manual editing data, use the cursor keys to posi-
tion the cursor back on the last line in the program (the
line before the %) and all the way to the left so that the
whole line is highlighted.
Drilling Cycle
Note:
The GO PAST AMOUNT SET field is only displayed if
parameter 27020#0=1.
Note:
The face postion +FACE is used for main spindle on
left and -FACE a subspindle on right.
Note:
Most MANUAL GUIDE i cycles generate a least two
blocks, one for the cutting conditions and one for the
machined geometry. The drilling cycle contains all the
information required in the single G1101 block.
soft key.
Note:
The message 5010 END OF RECORD is displayed
because we do not have inserted an END PROGRAM
(M30) yet. We will fix this later.
soft key.
The next operation is the finish outer turning cycle. This section explain the various parameters of the cycle. Note that
data item names with an asterisk (*) are optional and do not have to be specified. The graphic is the one displayed when
that field is selected. The data required is highlighted in yellow.
P CUTTING DIRECTION
F FEED RATE
L X-AXIS CLEARANCE
M Z-AXIS CLEARANCE
Soft keys describe the tool moves in Z first, then X (initial value).
Z APPROACH MOTION
choices
Note:
Again, make sure you use the ALTER key on the MDI
keyboard and not the ALTER soft key to change the
value of the fields.
Note:
After manual editing data, position the cursor back on
the last line in the program (the line before the %) and
all the way to the left so that the whole line is highlight-
ed.
soft key.
Note:
On the FANUC Series 0i-TD CNC, the parameters
14720 and 14721 specify the range of subprograms
to be displayed. In this example, 14720=8000,
14721=8499.
The next operation is the finish face turning cycle. This section explain the various parameters of the cycle. Note that data
item names with an asterisk (*) are optional and do not have to be specified. The graphic is the one displayed when that
field is selected. The data required is highlighted in yellow.
F FEED RATE
L X-AXIS CLEARANCE
M Z-AXIS CLEARANCE
Soft keys describe the tool moves in Z first, then X (initial value).
Z APPROACH MOTION
choices
Note:
Since the LINE DIRECTION is already set to RIGHT by
default, you can just confirm and skip this step if you
like.
soft key.
Note:
The message 5010 END OF RECORD no longer
appears since we have inserted an END PROGRAM
(M30).
Note:
You can also set parameter 27195 bit 4 to a 1 to allow
you to specify the retract distance each time in the
drilling cycle cutting conditions.
.soft key.
Now you can see the part profile more clearly. (im-
age shown during the finish turning operation.
Tool Data
G10P10001X0.0000Z0.0000R0.0313
G10P10002X0.0000Z0.0000R0.0313
G10P10009X0.0000Z0.0000R0.1875
%
O1020(EXAMPLE TURNING PART 2)
(START PROGRAM)
G20G18G40
G54G80G97G99
G50S3000
G1900D4.L5.K0.05
(START TOOL CSS)
G40G80G97G99
T0101M41
G97S900M03
G00X4.2Z0.1M08
G96S1000
G1120P1.Q0.04H100.C0.03D0.03F0.012E0.012V0.012W2.U0.05L0.1M0.1Z10.
N2.I0.03K100.
M98P8020(PROFILE FOR 1020)
(END TOOL)
G97
G30U0.M05
G30W0.M05
M01
(START TOOL RPM)
G40G80G97G99
T0909M41
G97S1500M03
G00X4.2Z0.1M08
G1101H2.C0.1F0.007Z11.B0.L0.75Y1.U0.375V118.K0.1127
(END TOOL)
G97
G30U0.M05
G30W0.M05
M01
(START TOOL CSS)
G40G80G97G99
T0202M41
G97S900M03
G00X4.2Z0.1M08
MANUAL GUIDE i Turning Examples - 112 - FANUC America Corporation
G96S1000
G1126P1.F0.012L0.05M0.05Z10.
M98P8020(PROFILE FOR 1020)
G1128P3.F0.012L0.05M0.05Z10.S1.
G1450H0.V0.625A0.
G1451H0.V-0.015625K7.D-0.015625L0.M0.T1.
G1451H0.03V-0.015625K1.C0.03L0.M0.T1.
G1451H0.03V0.625K3.C0.03D0.625L0.M0.T2.
G1451H0.V0.625K5.C0.D0.625L0.M0.T2.
G1456
(END TOOL)
G97
G30U0.M05
G30W0.M05
M01
(END PROGRAM)
G30U0.M08
G30W0.M05
M30
O8020(PROFILE FOR 1020)
G1450H0.V0.565A0.
G1451H-0.06V0.625K4.D0.625A45.L0.M0.T1.
G1451H-0.853072V0.625K5.L0.M0.T1.
G1455H-0.961325V0.6875R0.125I-0.853072J0.75K2.T1.
G1451H-1.25V1.1875K4.C-1.25D1.1875A60.L0.M0.T1.
G1451H-1.751847V1.1875K5.L0.M0.T1.
G1455H-1.874948V1.290794R0.125I-1.751847J1.3125K2.T1.
G1451H-2.V2.K4.C-2.D2.A80.L0.M0.T1.
G1451H0.V2.K1.C0.D2.L0.M0.T2.
G1451H0.V0.565K7.C0.D0.565L0.M0.T2.
G1456
M99
%