Unit Two NC Programming 2015
Unit Two NC Programming 2015
CAD/CAM/CIM– (MAT-613)
UNIT - TWO
NC PROGRAMMING
1
By : Yemane Z. (PhD)
3
2.1Concept of numerical control
Formerly, Decisions concerning the efficient and correct
use of the machine tool, was depended on the
craftsmanship, knowledge and skill of the machinist
himself.
Modern precision manufacturing demands extreme
dimensional accuracy and surface finish.
Such performance is very difficult to achieve manually
even with expert operators.
It is rare that two expert operators produced identical
parts using identical procedure and identical judgment of
speeds, feeds and tooling.
A numerical control, or “NC”, system controls many
4
machine functions and movements which were
traditionally performed by skilled machinists.
Numerical control developed out of the need to meet the
requirements of high production rates, uniformity and
consistent part quality.
Process planners and programmers have now the
responsibilities for these matters.
It must be understood that NC does not alter the
capabilities of the machine tool.
With NC the correct and most efficient use of a machine
no longer rests with the operator.
The advantage is idle time is reduced and the actual
utilization rate is much higher (compresses into one or
two years that a conventional machine receives in ten
years). 5
Cont...
6
The major limitations of NC are:-
The relatively high initial cost of the equipment,
The need and cost for programming and computer time,
and
The special maintenance required.
Because these machines are complex systems,
breakdowns can be costly, so preventive maintenance is
essential.
7
2.2 Cartesian coordinate system
8
Fig. The three-dimensional coordinate planes (axes) used in CNC.
In CNC programming it is not necessary to indicate plus
(+) values since these are assumed. However, the minus (-)
values must be indicated.
For example, the locations of both A and
B would be indicated as follows:
14
Both systems have applications in CNC programming, and
no system is either right or wrong all the time.
Most controls on machine tools today are capable of
handling either incremental or absolute programming.
18
Codes:- The most Grou Code Function
p
common codes used 01 G00 Rapid positioning
when programming 01 G01 Linear interpolation
21
Different ways of data input are :
MDI : Manual Data Input
Program preparation with CAD CAM
Program data transfer from pc to CNC M/C
Program data transfer from pc to DNC operations 22
Block of Information
CNC information is generally programmed in blocks of
five words. If five complete words are not included in each
block, the machine control unit (MCU) will not recognize
the information; therefore the control unit will not be
activated.
24
25
NUMERICAL
DATA
(NC CODE)
NUMERICAL
MANUFACTURING CONTROLLER
OPERATOR
Drive Control
PROCESSED
PART
MACHINE UNIT
25
Important things to know:
Coordinate System
Units, incremental or absolute positioning
Coordinates: X,Y,Z, RX,RY,RZ
Feed rate and spindle speed
Coolant Control: On/Off, Flood, Mist
Tool Control: Tool and tool parameters
26
CNC Programming Hints - MILLING
Machine reference point (maximum travel of machine)
Machine X Y zero point (could be tool change point)
Part X Y zero point (programming start point)
Indicates the tool change position.
For a program to run on a machine, it must contain the following
codes:
M03 - To start the spindle/cutter revolving.
Sxxx - The spindle speed code to set the r/min.
Fxx - The feed rate code to move the cutting tool or workpiece
to the desired position.
ANGLES: The X Y coordinates of the start point and end point
of the angular surface plus a feed rate (F) are required.
Z.100 is the recommended retract distance above the work 27
surface before a rapid move (G00) is made to another location.
CNC Programming Hints - TURNING
Indicates the X Z 0 (zero) location which is the starting point
for programming.
Indicates the tool-change position.
For a program to run on a machine, it must contain the following
codes:
M03 - To start the spindle/cutter revolving.
Sxxx - The spindle speed code to set the r/min.
Fxx - The feedrate code to move the cutting tool or workpiece to
the desired position.
Z moves the cutting tool longitudinally away from the end of the
workpiece.
Z- moves the cutting tool along the length of the workpiece
towards the chuck (headstock).
X moves the cutting tool away from the work diameter. 28
X- moves the cutting tool into the work diameter.
Cont...
Example
The following is a Simple program sample (for CNC Milling)
Start from the zero point , turn clockwise and return to zero.
The start position is 100mm above the top of the workpiece
and the depth of cut is 10mm.
29
O0001(ABS); O0002(INC);
N1 G90G54G17G00X30.0Y10.0S800M03; N1 G91G17G00X30.0Y10.0S800M03;
N2 Z2.0; N2 Z-98.0;
N3 G01Z-10.0F100; N3 G01Z-12.0F100;
N4 Y30.0; N4 Y20.0;
N5 X20.0; N5 X-10.0;
N6 X30.0Y60.0; N6 X10.0Y30.0;
N7 X70.0; N7 X40.0;
N8 X80.0Y30.0; N8 X10.0Y-30.0;
N9 X70.0; N9 X-10.0;
N10 Y10.0; N10 Y-20.0;
N11 X30.0; N11 X-40.0;
N12 G00Z100.0; N12 G00Z110.0;
N13 X0Y0M05; N13 X-30.0Y-10.0M05;
N14 M30; N14 M30;
30
Thank you for your attention!
31