CNC Machining
CNC Machining
MATERIALS
WORKSHOP TECHNOLOGY
MME 1103
CNC MACHINING
MANUFACTURING AND MATERIALS DEPARTMENT MME1103
Workshop Technology Manual
CNC Machining
Apparatus:
Introduction:
The abbreviation CNC stands for computer numerical control, and refers
specifically to a computer "controller" that reads G-code instructions and drives the
machine tool, a powered mechanical device typically used to fabricate metal components
by the selective removal of metal. CNC does numerically directed interpolation of a
cutting tool in the work envelope of a machine. The operating parameters of the CNC can
be altered via software load program.
NC was developed in the late 1940s and early 1950s by John T. Parsons in
collaboration with the MIT Servomechanisms Laboratory. CNC was preceded by NC
(Numerically Controlled) machines, which were hard wired and their operating
parameters could not be changed. The first CNC systems used NC style hardware, and
the computer was used for the tool compensation calculations and sometimes for editing.
Punched tape continued to be used as a medium for transferring G-codes into the
controller for many decades after 1950, until it was eventually superseded by RS232
cables, floppy disks, and finally standard computer network cables. The files containing
the G-codes to be interpreted by the controller are usually saved under the .NC extension.
Most shops have their own saving format that matches their ISO certification
requirements.
1
MANUFACTURING AND MATERIALS DEPARTMENT MME1103
Workshop Technology Manual
CNC Machining
industrial robot systems, as they are programmable to perform many kinds of machining
operations (within their designed physical limits, like other robotic systems). CNC
machines can run over night and over weekends without operator intervention. Error
detection features have been developed, giving CNC machines the ability to call the
operator's mobile phone if it detects that a tool has broken. While the machine is awaiting
replacement on the tool, it would run other parts it is already loaded with up to that tool
and wait for the operator. The ever changing intelligence of CNC controllers has
dramatically increased job shop cell production. Some machines might even make 1000
parts on a weekend with no operator, checking each part with lasers and sensors.
2
MANUFACTURING AND MATERIALS DEPARTMENT MME1103
Workshop Technology Manual
CNC Machining
3
MANUFACTURING AND MATERIALS DEPARTMENT MME1103
Workshop Technology Manual
CNC Machining
We assume that the machining is a contouring operation along the outer boundary of a
simple part, whose nominal geometry is as shown on Fig.3.
The tool size is 0.25 inch, and the feed rate of 6 inch per minute is used.
The cutting speed is required to be 300 rpm. To simplify the program, we ignore the Z-
axis motions, and that the home position of the tool is at the correct height, centered on
the point located in the machine tool coordinates as (2, 2).
In order to specify the geometry of the motion, we need to compute the location of 5
points from p1 to p5 (later, we shall see that additional points will be needed).
// Block 1: start program, use absolute coordinates, spindle speed in rpm, feed in
inch/min, select tool no 1001, turn coolant ON, use up milling (CCW in this case)
NOTE: we could use M14 instead of M04 and M08 that we shall use in the next block.
// Block 3: move to first point in a straight line (linear interpolation). We now need to
compute the coordinates of p1, as shown in figure below:
4
MANUFACTURING AND MATERIALS DEPARTMENT MME1103
Workshop Technology Manual
CNC Machining
Most NC controllers cannot cut along a full circle directly -- they need to be programmed
once FOR EACH QUADRANT of the arc. In our case, the circular path of the tool goes
through tree quadrants, so we need to find two additional points, p31, and p32.
Programming for circular interpolation (moving the tool along a circular arc):
Circular arcs are machined only in main planes. The plane is selected by the preparatory
functions (G17, G18, G19).
5
MANUFACTURING AND MATERIALS DEPARTMENT MME1103
Workshop Technology Manual
CNC Machining
Four dimension words are needed per block. Two dimension words specify the distance
to the end of the arc from current position. Two circular dimension words specify the
distance to the arc center. Usually, I, J, K specify the distances parallel to the X, Y, Z
axes, respectively.
The following figure shows the computations of the next three blocks of motion:
6
MANUFACTURING AND MATERIALS DEPARTMENT MME1103
Workshop Technology Manual
CNC Machining
// blocks 10, 11, 12: all linear interpolation. Computations for the point p5 are as follows:
NOTE: here we did not specify the Y coordinate, so it will be kept constant !
CNC TURNING
7
MANUFACTURING AND MATERIALS DEPARTMENT MME1103
Workshop Technology Manual
CNC Machining
MANUAL PULSE
MPG GENERATOR:
To use Handwheel
MANUAL PULSE
MPG x1 GENERATOR:
electronics handwheel, low
feed rate
MANUAL PULSE
MPG x10 GENERATOR:
electronics handwheel,
medium feed rate
MANUAL PULSE
MPG x100 GENERATOR:
electronics handwheel,
high feed rate
Automatic operation is
CYCLE START started
Automatic operation is
CYCLE STOP stopped
8
MANUFACTURING AND MATERIALS DEPARTMENT MME1103
Workshop Technology Manual
CNC Machining
COOLANT ON:
CLNT ON Manual selection of
coolant ON
COOLANT OFF:
Manual selection of
CLNT OFF coolant OFF
POSITION:
POS Shows all coordinates
TOOL OFFSET
OFFSET SETTING SETTING:
Write mode selection,
manually input tool offset
data
PROGRAM:
PROG To open existing program,
load new program, edit
program
To cancel input data
CANCEL *same as ‘backspace’ key
in computer keyboard
To enter data
INPUT
To change program
ALTER number, input data
9
MANUFACTURING AND MATERIALS DEPARTMENT MME1103
Workshop Technology Manual
CNC Machining
10
MANUFACTURING AND MATERIALS DEPARTMENT MME1103
Workshop Technology Manual
CNC Machining
CNC MILLING
11
MANUFACTURING AND MATERIALS DEPARTMENT MME1103
Workshop Technology Manual
CNC Machining
*NOTE: CNC milling and turning machine have the same basic keys. Refer to Table 1.
12
MANUFACTURING AND MATERIALS DEPARTMENT MME1103
Workshop Technology Manual
CNC Machining
Question
CNC Turning Center
13