Professional Documents
Culture Documents
What is the difference between NC and CNC ? What is the difference between NC and CNC ?
The difference between NC and CNC is one of age and Some of the enhancements that came along with CNC
capability.
The earliest NC machines performed limited functions include: Canned Cycles, Sub Programming, Cutter
and movements controlled by punched tape or punch Compensation, Work coordinates, Coordinate system
cards.
rotation, automatic corner rounding, chamfering, and B-
As the technology evolved, the machines were equiped
with increasingly powerful microprocessors (computers) spline interpolation.
with the addition of these computers, NC machines
become CNC machines.
CNC machines have far more capability than their
predecessor. contd…..
Where did CNC get started? Do all machines speak the same CNC
1940 Jhon Parson developed first machine able to drill language
holes at specific coordinates programmed on punch No, while there is fairly standard set of G and M codes,
cards. there is some variation in their application. For example
1951 MIT developed servo-mechanism a G0 or G00 command is universally regarded as the
1952 MIT developed first NC machines for milling. command for rapid travel. Some older machines do not
have a G00 command. On these machines, rapid travel is
1970 First CNC machines came into picture
commanded by using the F (feed) word address.
Now-a-day’s modified 1970’s machines are used.
1
2/24/2015
2
2/24/2015
NC/CNC/DNC
Direct Numerical Control is a system that uses a Direct numerical control
central computer to control several machines at the same
time
Distributed Numerical Control (DNC): the central
computer downloads complete programs to the CNC
machines, which can be workstations or PCs, and can get
the information for the machine operations.
The speed of the system is increased, large files can be
handled and the number of machine tools used is
expanded.
13 14
GATE - 1993
DNC With reference to NC machine, which of the
following statement is wrong?
(a) Both closed-loop and open-loop control systems are
used
(b) Paper tapes, floppy tapes and cassettes are used for
data storage
(c) Digitizers may be used as interactive input devices
(d) Post processor is an item of hardware
15
3
2/24/2015
GATE – 2008 Q-1 (Statement in S-1) GATE – 2008 Q-2 (Statement in S-1)
The Basic Length Unit (BLU), i.e., the table A customer insists on a modification to change the BLU
movement corresponding to 1 pulse of the pulse of the CNC drive to 10 microns without changing the
generator, is table speed. The modification can be accomplished by
(a) 0.5 microns (b) 5 microns
(c) 50 microns (d) 500 microns
4
2/24/2015
Co-ordinate system
All the machine tool use Cartesian Co-ordinate system.
The first axis to be identified is the Z – axis, This is
followed by X and Y axes respectively.
5
2/24/2015
IES - 2000
Assertion (A): The axis of an NC drilling machine
spindle is denoted as z-axis.
Reason (R): In NC machine tool, the axis
perpendicular to both x- and y-axis is designated as
z-axis
(a) Both A and R are individually true and R is the
correct explanation of A
(b) Both A and R are individually true but R is not the
correct explanation of A
(c) A is true but R is false
(d) A is false but R is true
6
2/24/2015
Part Programming
FANUC CONTROLL
SIEMENS CONTROLL
CNC programming
Important things to know:
Programming Key Letters
O - Program number (Used for program identification)
• Coordinate System N - Sequence number (Used for line identification)
G - Preparatory function
• Units, incremental or absolute positioning X - X axis designation
Y - Y axis designation
• Coordinates: X,Y,Z, RX,RY,RZ Z - Z axis designation
R - Radius designation
• Feed rate and spindle speed F – Feed rate designation
S - Spindle speed designation
H - Tool length offset designation
• Coolant Control: On/Off, Flood, Mist D - Tool radius offset designation
T - Tool Designation
• Tool Control: Tool and tool parameters M - Miscellaneous function
7
2/24/2015
8
2/24/2015
9
2/24/2015
10
2/24/2015
Top Top
View View 6.) Rapid Z Axis Move
5.) Z Axis Feed Move to Out Of Hole
Drill Hole
Front Front
View View
Front Front
View View
11
2/24/2015
View View
O0001 O0001
Top
N005 G54 G90 S600 M03 View N005 G54 G90 S600 M03
Top
View N010 G00 X1.0 Y1.0 N010 G00 X1.0 Y1.0
N015 G43 H01 Z.1 M08 N015 G43 H01 Z.1 M08
N020 G01 Z-.75 F3.5 N020 G01 Z-.75 F3.5
N025 G00 Z.1 M09 N025 G00 Z.1 M09
N030 G91 G28 X0 Y0 Z0 Front N030 G91 G28 X0 Y0 Z0
G91 Incremental Programming Mode
Front G28 Zero Return Command View N035 M30
View X0, Y0, Z0
X,Y,& Z Coordinates at Zero
M30 End of Program
12
2/24/2015
APT Language
APT (Automatically Programmed Tools)
The APT language consists of many different types of
statements made up of the following valid letters, numerals
and punctuation marks.
Letters: ABCDEFGHIJKLMNOPQRSTUVWXYZ
Numerals: 0 1 2 3 4 5 6 7 8 9
/ A slash divides a statement into two sections. eg.,
GO/PAST,
, A comma is used as a separator between the elements in
a statement generally to the right of the slash.
= An equals is used for assigning an entity to a symbolic
name, e.g., P1 = POINT/25,50,30.
Post processor
Compilation control
13
2/24/2015
Point (POINT)
APT Language
Other capabilities of APT, the macro facility, with use variable argument as in a
FORTRAN subroutine, for example: PTA = POINT/ 3,4,5
P0 = POINT/0.0, 0.3, 0.1
FROM/P0
CALL/DRILL, X=1.0, Y=1.0, Z=0.1, DEPTH=0.7
y
CALL/DRILL, X=2.0, Y=1.0, Z=0.1, DEPTH=0.7
GOTO/P0 (3, 4, 5)
79
PTB = POINT/ INTOF, LIN1, LIN2 PTD = POINT/ YSMALL, INTOF, LIN3, C1 y
PTD = POINT/ XSMALL, INTOF, LIN3, C1
PTC = POINT/ YLARGE, INTOF, LIN3, C1
PTC = POINT/ XLARGE, INTOF, LIN3, C1 PTC
LIN2
LIN3
PTB C1
LIN1
PTD
C6
PTE
PT7
PTF C2
x
x
14
2/24/2015
P1
L4 (15, -30, 3)
LIN1
x x
40°
PT1 L12
L16 30° LINE1
PT4
x
15° x
L15
(32, -3, 2)
y y
LINE1 LINE1
LINE1 = LINE/ SLOPE, 1, INTERC, XAXIS, 6 LINE1 = LINE/ ATANGL, 30, INTERC, d
= 30°
x x
(6,0) Point of X-Intercept d
15
2/24/2015
L1 Left
C11 Left L4
PT51 PT51
Right L2
Left
The descriptive words LEFT and RIGHT are used by L8 L9
looking from the first circle written towards the L7
second circle.
LN3 = LINE/ PNT6, PARLEL, LN15 LN5 = LINE/ INTOF, PLAN1, PLAN2
LN4 = LINE/ PNT5, PERPTO, LN13
LN5
y
PNT6 LN3 PNT5
LN4
LN15 PLAN1
LN13
PLAN2
16
2/24/2015
PLAN10 = PLANE/ PT6, PT12, PT15 PLAN14 = PLANE/ PT4, PARLEL, PLAN10
PLAN14 = PLANE/ PARLEL, PLAN10, YSMALL, 3.0
PLAN10
PLAN10
PT15
PT15
PT6 PT12
y PT6 PT12
y 3.0
3.0
PT4 PT4
z
z
PLAN14
PLAN14
x x
x x x
Contouring: z
Check surface
Part surface: the surface on which the end of the Drive surface
y
tool is riding.
Direction of
Drive surface: the surface against which the edge of cutter cutter motion
17
2/24/2015
Motion commands:
CS CS CS GOLFT/ : Move left along the drive surface
GORGT/ : Move right along the drive surface
GOUP/ : Move up along the drive surface
DS DS DS GODOWN/ : Move down along the drive surface
GOFWD/ : Move forward from a tangent position
TO ON PAST
GOBACK/ : Move backward from a tangent position
GOUP
FROM/PTARG
GO/TO, L1, TO, PL2, TO L3
GORGT/L3, PAST, L4
GOLFT
GOFWD
Present tool
GOBACK position
GORGT
GODOWN
Previous
tool position
18
2/24/2015
Machining Specifications
FINI: specifies the end of the program.
APT Language
Other Motion statements:
GO/{TO}, Drive surface, {TO} Part surface, {TO},
Check surface
Or
GO/{TO}, Drive surface, {TO} Part surface, {TANTO},
Check surface
…And the same with PAST or ON instead of TO
GOLFT/
GORGT/
GOUP/
GODOWN/
GOFWD/
GOBACK/
For example:
GO/TO, L1, TO, PS, TANTO, C1
GO/PAST, L1, TO, PS, TANTO, C1
112
Answer:
IES-2008
Name the four types of statements in a complete APT
PARTNO CONTOUR
MACHIN/MILL, 1
part program. Prepare part program for geometry CLPRNT
UNITS/MM
description of the contour shown in the figure below:
Y P0 = POINT/0.0, 0.0, 0.0
[15-Marks] P1 = POINT/110.0, 20.0, 0.0
30 40
P2 = POINT/20.0, 20.0, 0.0
20 P3 = POINT/90.0, 110.0, 0.0
L2 C1 P4 = POINT/20.0, 100.0, 0.0
L3 20
R P5 = POINT/50.0, 130.0, 0.0
135° L1 = LINE/P2, ATANGL, 90, XAXIS
L2 = LINE/P4, ANTNGL, 45, XAXIS
L4 L3 = LINE/P5, ATANGL, 135, L2
80 L1
L4 = LINE/P1, PERPTO, L3
L5 = LINE/P1, PERPTO, L4
C2
C1=CIRCLE/CENTER, P3, RADIUS, 20.0
L5
20 C2=CIRCLE/CENTER, P1, RADIUS, 20.0
R P1
P2 20 PL1=PLANE/P1, P2, P3
X
19
2/24/2015
Contd…. Contd….
CUTTER/25.0 RAPID
TOLER/0.1 GOTO/P0
INTOL/0.05 COOLNT/OFF
OUTTOL/0.05 SPINDL/OFF
FEDRAT/200 END
SPINDL/500, CLW FINI
COOLNT/ON
FROM/P0
GO/TO, L1, TO, PL1, TO, L5
GOLFT/L1, PAST, L2
GORGT/L2, PAST, L3
GORGT/L3, TANTO, C1
GOFWD/C1, PAST, L4
GOFWD/L4, PAST, C2
GORGT/C2, PAST, L5
GORGT/L5, PAST, L1
20
2/24/2015
21