Académique Documents
Professionnel Documents
Culture Documents
Revision: 00
Code: SOP-M-01/04
Chapter 6:
CNC Turning Center
Issue: 01
Revision: 00
Code: SOP-M-01/04
Contents
6.1 Introduction & Safety
6.2 Interpreting & Operating Control Panel
6.3 Job Setting
6.4 Job Referencing
6.5 Standard Working Parameters (RPM & Feed Rate) 6.6 G Codes and their functions
6.7 M Codes and their functions
6.8 Structure of Program
6.9 Part Programming
6.10 Sub Programming
6.11 Lathe Tools (Right/Left Hand) & Their Applications 6.12 Tools Offsetting on CNC
Turning Center
6.13 Adjustment of tool offset on tool wear
6.14 Manual Facing and Turning Program
6.15 Introduction to Canned Cycles
6.16 Rough Turning Canned Cycle (G71)
6.17 Rough Facing Canned Cycle (G72)
6.18 Finishing Canned Cycles (G70)
6.19 Drilling Canned Cycle (G74)
6.20 Grooving Canned Cycle (G75)
6.21 Threading Canned Cycle (G92)
6.22 Taper Threading
6.23 Fine Threading Canned Cycle (G76)
6.24 Boring/Internal Turning Canned Cycle (G71)
6.25 Use/Practice of SwanSoft for making complete programs and simulations
Issue: 01
Revision: 00
Code: SOP-M-01/04
When working on the lathe, always stand straight; never lean on the lathe or reach over
the chuck when it is in operation.
The area directly in front of and behind the workpiece is called the "red zone," because it
is at greatest risk for projectile pieces. When turning the lathe on, try to avoid standing in
the red zone, while keeping contact with the power switch in case the machine needs to
be turned off.
If the workpiece vibrates, this is an indication that the speed is too fast. Reduce the speed
until the workpiece rotates steadily, without vibration.
Threaded spindle noses should be used with caution, since rotating in the reverse
direction can cause the chuck or driver plate to unscrew and detach.
If working with wood, beginners should avoid material that has splits, knots, or heavy
bark.
Metal chips can be razor-sharp and should not be removed with hands. Instead, use pliers
for long chips and a brush or vacuum for short chips. Compressed air should not be used
to remove chips from the lathe, since it can blow the chips back into the users face.
The lathe motor should always be turned off before adjusting the tool rest or any other
parts, or before cleaning, lubricating, or measuring. Likewise, turn off the power and wait
until the lathe comes to a full stop when mounting or removing accessories.
Never leave a running lathe unattended. Power it off and wait until it has come to a full
stop before leaving the work area.
Users should avoid operating the lathe when tired or under the influence of alcohol or
drugs. Alertness is vital for safe lathe operation.
Issue: 01
Revision: 00
Code: SOP-M-01/04
Control System
Control unit is the brain of the CNC machine. To make a program for a CNC machine tool
means to make a program for the control system.
Operation Panel
Operation panel, full of rotary switches, toggle switches and push buttons.
Issue: 01
Revision: 00
Code: SOP-M-01/04
Handle
The official FANUC name for the handle is Manual Pulse Generator (MPG).
Feed Hold
When feed hold button is processed during a rapid, linear or circular axes motion, it will
immediately stop the motion. Threading or tapping modes make the switch inoperative.
Emergency stop
When this button is pressed, all machine activities will cease immediately.
The main power supply will be interrupted and the will have to be restarted.
In order to operate a CNC machine without conventional mechanical devices the control
system offers a feature called the manual data input – or MDI.
Not all but majority of the programming codes are allowed in the MDI mode.
Rapid feed override( rapid traverse): modifies the rapid motion of the machine tool
Spindle speed override: modifies the programmed spindle r/min
Feedrate override (cutting federate): modifies the programmed federate.
Issue: 01
Revision: 00
Code: SOP-M-01/04
CNC machines are equipped with a rapid override switch to allow temporary rapid
motion settings.
Located on the control panel the switch can be set at one of the three settings.
They are mentioned as number percentage 100%, 50% and 25%.
The spindle speed override switches are usually available within the range of 50-120%.
For example a spindle programmed at 1000r/min can be overridden during machining to
500, 600, 700, 800, 900, 1000, 1100 and 1200 r/min.
Fn=Fp×P×0.01
Fn=optimized or new federate
Fp= originally programmed federate
P= percentage of federate override.
It only has a direct effect on the federate and allows much higher federate than used for
actual machining.
No actual machining takes place when the dry run switch is in effect.
Its purpose is to test the integrity of the program before the CNC operator cuts the first
part.
The program is executed dry without actual cutting, without a coolant just in the air.
Machine Lock
appropriate allen wrench and move each jaw to the required spot to allow the clamping force to
hold the material without crushing it.
Insert tooling required for the job. This may include boring bars, drills and insert holders for
turning the outside diameters of the raw material. The holders vary in size and shape and are
often held in place by screws in the tool turret.
Teach each tool with the teaching arm. Slowly move the tip of each tool toward the teaching eye.
When it touches that eye, you will usually hear a beep that signifies that the machine control
knows where the tip of the tool is located for precision cutting.
Set your zero, zero point. This is the starting dimension that will be used for the program to cut
the raw material you are using. Bring a previously taught tool to the edge of the raw material and
reset each axis, both X and Z to zero. The machine will use this point to base all of the other
cutting dimensions.
Program the lathe or call up an existing program that is in the machine. Most machine accept G
code, which is the most common way of machining any parts in a CNC machine, including
lathes. Many machinists use proprietary languages as they are sometimes easier to program on a
lathe.
G-codes are preparatory codes, in a CNC program they begin with the letter G and direct the
machine. Typical actions G-code directs include:
Changing a pallet
Rapid movement
A series of controlled feed moves, resulting in a workpiece cut, a bored hole, or a
decorative profile shape
Controlling feed movement, in an arc or a straight line
Setting tool information
Issue: 01
Revision: 00
Code: SOP-M-01/04
Main Program:
Subprogram:
O2000;
Issue: 01
Revision: 00
Code: SOP-M-01/04
Now change the cnc machine to Jog Mode and touch the tool cutting point to the finished
component (already gripped in cnc machine jaws) face and bring the Tool-Geometry page and
enter under the tool number the command MZ0 this command will clear any previous values and
will measure the current tool’s tool-offset in Z-axis.
Now touch the tool to a known-diameter on the component and again in the tool-geometry page
enter the command MX50 you can enter the measured diameter value instead of 50. This way
now we have calculated the tool-measurement on the Fanuc TC cnc machine control.
When users view these offsets on the display screen, they look very similar. Each will have the
same number of offsets (32, 99, etc.) and four registers (X, Z, R and T).
Turret index and offset specification are done with a four-digit T word (T0101, for instance). The
first two digits of the T word specify the turret station number and the geometry offset number.
The second two digits specify the wear offset number.
When an offset is invoked, say T0101, the control will add the value in the geometry offset to the
value in the wear offset and use the result as the total offset. If a value of -10.0276 is in the X
register of the geometry offset and a value of (+) 0.001 is in the X register of the wear offset, the
total offset will be -10.0266.
So, it really doesn’t matter into which kind of offset you enter a given value. If you want to make
a sizing adjustment, you could enter it into the geometry offset; if you want to enter a program-
zero assignment value, you could enter it into a wear offset (assuming the wear offsets do not
have a maximum entry value on your machine).
Though these things are possible, I urge you to separate the use of offsets. Use geometry offsets
solely for program-zero assignment during setup. Use wear offsets solely for the purpose of
workpiece sizing during the production run.
While these may seem to be standard practices there are times when (in my opinion) offsets are
used somewhat inappropriately. Here are two examples:
Initial sizing on the first workpiece. The setup workers have just finished making the setup,
and they’re running the first workpiece hoping that it will pass inspection. They might be using
trial machining techniques to ensure that new tools just placed in the turret will machine the
workpiece to size. Tool number two, the finish-turning tool, has just completed its machining
Issue: 01
Revision: 00
Code: SOP-M-01/04
operation and they find that it has machined a 2-inch diameter that is 0.003-inch oversize. What
should they do?
Before answering, let me ask two more questions. What caused the 0.003-inch deviation? Did it
have anything to do with tool wear?
Though this initial deviation has more to do with program-zero assignment (possibly an
inaccurate touch off) than tool wear, most setup people will modify the wear offset (reducing it
by 0.003 inch). But do remember, they can just as easily reduce the geometry offset by 0.003
inch and the machine will behave in exactly the same manner.
What is the advantage of making the initial adjustments in the geometry offsets? For very small
lots there may not be any. But with larger lots, finishing tools will eventually wear out and be
replaced. During the tool’s life, it’s likely that several sizing adjustments have been made to
accommodate tool wear. When the cutting tool is replaced, the operator must also remember to
reset its wear offset. To what value will it be reset? If the initial adjustment is done in the wear
offset, the operator must remember its initial setting (-0.003 in the example above). But if the
initial adjustment is done in the geometry offset, they can simply reset the wear offset to zero.
(You may be questioning if the operators can precisely change or index an insert in such a
manner that it is in exactly the same position as the previous insert. But even if they cannot, they
must still know the initial wear-offset setting, regardless of whether trial machining will be done
when the tool is replaced.)
So again, I recommend that setup people make initial adjustments in geometry offsets so that the
values of wear offsets will be zero when the production run begins.
Tool nose radius compensation offset entries. The R and T registers are related to tool nose
radius compensation. R specifies the radius of the cutting tool and T is a code number that
specifies the tool type (T2 specifies a boring bar, and T3 specifies a turning tool). Again, there
are R and T registers in both the wear and geometry offset pages.
First of all, be sure your setup people are not entering duplicate values in both wear and
geometry offsets (I’ve often seen this mistake). If, for example, they enter a value of 0.0312 (for
a 1/32-inch tool nose radius) in both R registers, most controls will add them together and use the
total (0.0624 in our case). Worse, if they enter the T value in both registers—like T3 for a
turning tool—most controls will interpret the T word as T6 (not a turning tool). Note that there
are some parameter settings that deal with these issues, so some controls may behave differently
than others in this regard.
While the R and T registers have nothing to do with program-zero assignment, I recommend
entering tool nose radius compensation values into geometry offsets (leaving the R and T
registers of the wear offset at zero). There are applications when as a cutting tool dulls, its radius
gets smaller such as a button tool that machines a ball shape on the workpiece. Trying to deal
with this problem with the X and Z registers will never render the desired results. Entering the
amount of tool wear in the R register of the wear offset will correct the problem.
Issue: 01
Revision: 00
Code: SOP-M-01/04
Simple cnc lathe program to show how a component can be Faced with a tool.
This also shows the tool movements.
Drawing/Image
CNC Program
%
N10 T03 M06
N20 G96 S150 G95 F0.1 D2500 (D = Maximum spindle speed)
N30 G00 X54 Z-2 M03 M08
N40 G01 X-1
N50 G00 X200 Z200 M09
N60 M30
Issue: 01
Revision: 00
Code: SOP-M-01/04
Easy to understand CNC turning center/cnc lathe programming example for cnc machinists who
work on cnc turning centers/cnc lathe machines.
This cnc programming example can be used as a cnc learning programming exercise for
beginners level cnc programmers/machinists.
Programming Format:
G00X……….Z…………… (Start point)
G71 U…………R…... (Depth of cut + return point)
G71 P 70 Q110 U………..W…………F……; (finishing allowances + feed)
N70 G00 X……….; (smallest dia)
G01 Z…... (Feed Length)
X…………..;
Issue: 01
Revision: 00
Code: SOP-M-01/04
Z…………..;
N110 X…... (Ending point)
First block
Parameter Description
U Depth of cut.
R Retract height.
Second block
Parameter Description
G71 Example:
Here is a CNC part-program which shows how G71 turning cycle can be used, this is the
program for the drawing given above
N50G00X106Z5M3S800
N60G71 U10 R10
N70G71 P80 Q90 U3 W0 F0.25
N80G00X60
N90G01Z-75
Programming Format
G72 W…………R………..;
G72 P…………Q………..U………..W…………F………;
N100 G00 Z……….;
G01 X…………..;
N110 Z………..;
First Block
Parameter Description
W Depth of cut.
Second Block
Parameter Description
N5G00X65Z42
N6G72 U2 R2
N7G72 P8 Q9 U0 W0 F0.3
N8G00Z30
N9G01X20
Fanuc G70 G71 Rough and Finish Turning Cycle Program Example
N10 T1 G97 S800 M03
N20 G00 X45 Z2 G42
N30 G71 U2 R1
N40 G71 P50 Q120 U0.25 W0.1 F0.25
N50 G00 X19.8
N60 G01 X23.8 Z-2 F0.2
N70 G01 Z-25
N80 G01 X28.07
N90 G01 X34 Z-33
N100 G01 Z-48
N110 G01 X42
N120 G01 Z-58
N130 G00 X100 Z100
N140 G92 S1200
N150 T3 G96 S150 M03
N160 G00 X45 Z3
N170 G70 P50 Q120
N180 G00 X100 Z100
N190 M30
Simple CNC Lathe Drilling with Fanuc G74 Peck Drilling Cycle
N10T5
N20G97S500M03
N30G00X0Z2
N40G74 R1
N50G74Z-60 Q30000 F0.1
N60G00X100Z100
N70M30
The above CNC program code shows that the tool no.5 which is a drill, will drill the
component with the peck drilling cycle G74.
Issue: 01
Revision: 00
Code: SOP-M-01/04
The R in first block shows the amount ( 1mm) the drill will get back after it drills 30 mm
every time.
Although it is a simple CNC program example for grooving, but this CNC program can be
easily altered to needs.
The grooving tool is 4mm wide, started from z-22.
Every time the grooving tool will take 2mm (P2000) cut in x-axis, and it will retract 1mm
(Pecking, First R1)
After a groove in x-axis is complete it will start the next groove by moving the grooving
tool by 3mm (Q3000) in z-axis, and it will repeat it.
Issue: 01
Revision: 00
Code: SOP-M-01/04
Programming Format:
G00X………..Z………..;
G92 X…………Z………..F………….;
X………..;
X………..;
X………..;
G00X………..;
Example:
Issue: 01
Revision: 00
Code: SOP-M-01/04
03802
N10T0505M42
N20G20G97S450M03
N30G00X3.2Z0.25M08
N40G92X2.972Z-1.6 FO.0833
N50X2.9520
N60X2.9360
N70X2.9230
N80X2.9130
N90X2.9040
N100X2.8978
N110 GOO X12.OZ4.5M09
N120M30
G71 turning cycle is used for rough-material removal from a cnc lathe component.
G71 turning cycle makes large diameter cutting easy.
Programming Format:
G00X……….Z…………… (Start point)
G71 U…………R…... (Depth of cut + return point)
G71 P 70 Q110 U………..W…………F……; (Negative finishing allowances + feed)
N70 G00 X……….; (Internal Largest dia)
G01 Z…... (Feed Length)
X…………..;
Z…………..;
N110 X…... (Ending point)
First block
Parameter Description
U Depth of cut.
R Retract height.
Second block
Parameter Description
G71 ID Turning
G71 Example:
Here is a CNC part-program which shows how G71 turning cycle can be used, this is the
program for the drawing given above
Issue: 01
Revision: 00
Code: SOP-M-01/04
N50G00X106Z5M3S800
N60G71 U10 R10
N70G71 P80 Q90 U-3 W0 F0.25
N80G00X72
N90G01Z-24
Introduction to Swansoft:
1- Toolbar:
All command can be executed on the buttons left side of window , when cursor
move on the button, the function hint will show , at the same time the status bar will show the
detail description.
Issue: 01
Revision: 00
Code: SOP-M-01/04
Open:
The file dialog opened, you select NC file you wanted. The NC code will show in
the NC Window.
Issue: 01
Revision: 00
Code: SOP-M-01/04
Save:
Go to file and select save. The following window will open.
Save as:
Save the file as the different file name.
3- View:
Click "View”, you can see the submenu.
Issue: 01
Revision: 00
Code: SOP-M-01/04
4- Display:
Click "View”, you can see the submenu.
5- Machine:
Machine Settings:
Go to Machine operation to open
CNC parameter
Issue: 01
Revision: 00
Code: SOP-M-01/04
Issue: 01
Revision: 00
Code: SOP-M-01/04
Adjust coolant:
Issue: 01
Revision: 00
Code: SOP-M-01/04
Tool Management:
Issue: 01
Revision: 00
Code: SOP-M-01/04
Rapid Position:
Workpiece Setup:
Issue: 01
Revision: 00
Code: SOP-M-01/04