Ch-11 NC CNC DNC FMS Automation and Robotics
Ch-11 NC CNC DNC FMS Automation and Robotics
By S K Mondal
What is NC/CNC?
NC is an acronym for Numerical Control and CNC is an
capability.
The earliest NC machines performed limited functions
and movements controlled by punched tape or punch
cards.
As the technology evolved, the machines were equiped
with increasingly powerful microprocessors (computers)
with the addition of these computers, NC machines
become CNC machines.
CNC machines have far more capability than their
predecessor.
contd..
operator/programmer
use
simple
descriptive
NC/CNC Machines-Advantages
High Repeatability and Precision e.g. Aircraft parts
Turbines
Flexibility in job change, automatic tool settings, less
scrap
More safe, higher productivity, better quality
Less paper work, faster prototype production, reduction
in lead times
NC/CNC Machines-Disadvantages
Costly setup, skilled operators
Computers, programming knowledge required
Maintenance is difficult
NC/CNC/DNC
Direct Numerical Control is a system that uses a
13
DNC
14
Stepper Motor
The stepper motor is special type of synchronous motor
control unit.
Co-ordinate system
All the machine tool use Cartesian Co-ordinate system.
Part Programming
FANUC CONTROLL
SIEMENS CONTROLL
CNC programming
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
G - Preparatory function
X - X axis designation
Y - Y axis designation
Z - Z axis designation
R - Radius designation
F Feed rate designation
S - Spindle speed designation
H - Tool length offset designation
D - Tool radius offset designation
T - Tool Designation
M - Miscellaneous function
Meaning
Format
G00
G01
Rapid Transverse
Linear Interpolation
G02
Circular Interpolation,
CW
Circular Interpolation,
CCW
G04
G17
Dwell
XY Plane
N__G04P___
G18
XZ Plane
G19
YZ Plane
G03
Meaning
Format
G40
G41
G42
N__G41D__
N__G42D__
G43
N__G43H__
Format
G44
N__G44H__
G49
G80
G81
G90
Drilling cycle
Absolute positioning
G91
G92
Incremental positioning
Absolute preset, change the N__G92X__Y__Z__
datum position
N__G81 Z__R__F__
G90:
absolute
coordinates
Start
(20,10)
(10,10)
(0,0)
Y
End
100.0
Start
200.0
G
03
I __
F __;
J __
F __;
K __
G 02
R
G19
Y __ Z __
G 03
J __
F __;
K __
End
point
R=-50mm
End
Specify R with
sign before it:
180 +R
Start
R=50mm
>180 -R
End
X
Start
j
Center
i
G92:
To define working
coordinate
Or
Y
100
60
40
R50
R60
X
90 120 140
200
Tool Compensation
Tool-Radius Compensation
Left hand G41
Right hand G42
Tool-Height Compensation
Positive G43
Negative G44
Cancel tool-height compensation G49
Tool-Radius Compensation
Tool-radius compensations make it possible to
program directly from the drawing, and thus eliminate
the tool-offset calculation
G41 (G42) D
D: the radius of tool to compensate is saved in a memory unit that
is named D
G41/G42 is directly related with direction of tool movement and
which side of part is cut.
Tool-Height Compensation
G43 (G44) H
H: specified memory unit used to save height
compensation of tool.
Positive compensation (G43):
real position = specified position + value saved in H
Negative compensation (G44):
real position = specified position - value saved in H
Tool-Height Compensation
Example:
N0010 G91 G00 X12.0 Y80.0
N0020 G44 Z-32.0 H02
G91:
incremental
coordinates
Top
View
Front
View
O0001
N005 G54 G90 S600 M03
N010 G00 X1.0 Y1.0
N015 G43 H01 Z.1 M08
N020 G01 Z-.75 F3.5
N025 G00 Z.1 M09
N030 G91 G28 X0 Y0 Z0
N035 M30
M30
End of Program
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.
Words
The words to be used in the statements are built up from
APT Language
Additional statements:
MACHIN/DRILL, 2
COOLNT/
59
Point (POINT)
PTA = POINT/ 3,4,5
y
(3, 4, 5)
PTA
Point (POINT)
PTB = POINT/ INTOF, LIN1, LIN2
LIN2
PTB
LIN1
Point (POINT)
PTD = POINT/ YSMALL, INTOF, LIN3, C1
PTD = POINT/ XSMALL, INTOF, LIN3, C1
PTC = POINT/ YLARGE, INTOF, LIN3, C1
PTC = POINT/ XLARGE, INTOF, LIN3, C1
PTC
LIN3
C1
PTD
Point (POINT)
PTE = POINT/ YLARGE, INTOF, C1, C2
PTE = POINT/ XLARGE, INTOF, C1, C2
PTF = POINT/ YSMALL, INTOF, C1, C2
PTF = POINT/ XSMALL, INTOF, C1, C2
C1
PTE
PTF
C2
Point (POINT)
PT7 = POINT/ CENTER, C6
y
C6
PT7
Line (LINE)
LIN1 = LINE/ P1, P2
y
P2
P1
LIN1
x
Line (LINE)
LIN4 = LINE/ PT6, 15, -30, 3
y
PT6
L4
(15, -30, 3)
Line (LINE)
L12 = LINE/ PT4, ATANGL, 20, XAXIS
L14 = LINE/ PT1, ATANGL, 40
L15 = LINE/ 32, -3, 2, ATANGL, -15, XAXIS
L16 = LINE/ PT3, ATANGL, 40, YAXIS
y
PT3
L14
40
L12
PT1
L16
PT4
40
L15
20
15
(32, -3, 2)
Line (LINE)
LIN = LINE/ POINT, ATANGL, ANGLE (in degrees), LINE
y
LINE2
P1
30
LINE1
Line (LINE)
LIN = LINE/ SLOPE, SLOPE VALUE, INTERC, MODIFIER, d
where the slope value is y/x. The modifier options are [XAXIS,
YAXIS], and d is the corresponding intercept value on the selected
axis (i.e., modifier).
y
LINE1
Line (LINE)
LIN = LINE/ ATANGL, DEGREES, INTERC, MODIFIER, d
The modifier options are [XAXIS, YAXIS], and d is the
corresponding intercept value on the selected axis (i.e., modifier).
LINE1
Line (LINE)
The LEFT & RIGHT modifier indicates whether the line
is at the left or right tangent point, depending on how
one looks at the circle from the point.
Line (LINE)
L2 = LINE/ PT51, RIGHT, TANTO, C11
L3 = LINE/ PT40, RIGHT, TANTO, C11
L4 = LINE/ PT40, LEFT, TANTO, C11
L3
Right
PT40
L1
Left
Left
L4
PT51
Right
L2
Line (LINE)
L6 = LINE/ LEFT, TANTO, C3, LEFT, TANTO, C4
L6
C4
Left
C3
Right
L8
L9
L7
Line (LINE)
L6 = LINE/ RIGHT, TANTO, C4, RIGHT, TANTO, C3
L6
Right
C3
Left
L8
L9
L7
C4
Line (LINE)
LN3 = LINE/ PNT6, PARLEL, LN15
LN4 = LINE/ PNT5, PERPTO, LN13
y
PNT6
PNT5
LN3
LN4
LN15
LN13
Line
LN5 = LINE/ INTOF, PLAN1, PLAN2
LN5
PLAN1
PLAN2
Plane (PLANE)
PLAN10 = PLANE/ PT6, PT12, PT15
PLAN10
PT15
PT6
PT12
3.0
PT4
z
PLAN14
Plane (PLANE)
PLAN14 = PLANE/ PT4, PARLEL, PLAN10
PLAN14 = PLANE/ PARLEL, PLAN10, YSMALL, 3.0
PLAN10
PT15
y
PT6
PT12
3.0
PT4
z
PLAN14
Circle (CIRCLE)
C1 = CIRCLE/ 3, 6, 5, 4.3
C1 = CIRCLE/ CENTER, PT3, RADIUS, 4.3
y
C1
4.3
PT3
(3,6,5)
Circle (CIRCLE)
C3 = CIRCLE/ CENTER, PT6, TANTO, LN4
C7 = CIRCLE/ CENTER, PT8, PT5
y
LN4
PT5
PT6
PT8
C7
C3
tool is riding.
Drive surface: the surface against which the edge of
motion is to stop.
Check surface
Drive surface
y
cutter
Direction of
cutter motion
Part surface
CS
CS
DS
TO
CS
DS
ON
DS
PAST
GORGT/
GOUP/
GOUP
GOLFT
GOBACK
GOFWD
Present tool
position
GORGT
GODOWN
Previous
tool position
FROM/PTARG
GO/TO, L1, TO, PL2, TO L3
GORGT/L3, PAST, L4
Machining Specifications
Postprocessor commands for a particular machine tool are:
COOLNT/ MIST
COOLNT/ FLOOD
COOLNT/ OFF
Machining Specifications
FEDRAT/ : specifies the feed rate for moving the tool along the
part surface in inches per minute:
FEDRAT/ 4.5
SPINDL/ : gives the spindle rotation speed in revolutions per
minute:
SPINDL/ 850
TURRET/ : can be used to call a specific tool from an automatic
tool changer:
TURRET/ 11
Machining Specifications
TOLERANCE SETTING: Nonlinear motion is accomplished in
straight-line segments, and INTOL/ and OUTTOL/ statements
dictate the number of straight-line segments to be generated.
INTOL/ 0.0015
OUTTOL/ 0.001
Machining Specifications
PARTNO: identifies the part program and is inserted at the start of
the program.
CUTTER/ 0.6
then the tool will be offset from the finish cut by 0.05 in.
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
93
IES-2008
Name the four types of statements in a complete APT
part program. Prepare part program for geometry
description of the contour shown in the figure below:
Y
[15-Marks]
30
40
20
L2
L3
135
80
20
C1
L4
L1
C2
L5
P2
20
20
P1
X
IES-2007
Prepare part using APT language for milling the contour
shown in Fig. in a single pass.
110
C
B
[20-Marks]
R30
Q
110
120
E
R40
40
+ 40
100
P
Material : M S.
8 mm
Answer:
PARTNO CONTOUR
MACHIN/MILL, 2
CLPRNT
UNITS/MM
P0 = POINT/0.0, 0.0, 10.0
PTA = POINT/0.0, 0.0, 0.0
PTB = POINT/0.0, 120.0, 0.0
PTC = POINT/30.0, 150.0, 0.0
PTD = POINT/140.0, 150.0, 0.0
PTE = POINT/140.0, 40.0, 0.0
PTF = POINT/100.0, 0.0, 0.0
PTQ = POINT/30.0, 120.0, 0.0
PTP = POINT/140.0, 0.0, 0.0
LAB = LINE/PTA, PTB
LCD = LINE/PTC, PTD
LDE = LINE/PTD, PTE
LAF = LINE/PTA, PTF
CBC = CIRCLE/CENTRE, PTQ, RADIUS, 30.0
CEF = CIRCLE/CENTRE, PTP, RADIUS, 40.0
PL1=PLANE/PTA, PTB, PTC
Contd.
CUTTER/25.0
TOLER/0.1
INTOL/0.05
OUTTOL/0.05
FEDRAT/200
SPINDL/500, CLW
COOLNT/ON
FROM/P0
GO/TO, LAB, TO, PL1, TO, LAF
GOLFT/LAB, TANTO, CBC
GOFWD/CBC, PAST, LCD
GORGT/LCD, PAST, LDE
GORGT/LDE, PAST, CEF
GORGT/CEF, PAST, LAF
GORGT/LAF, PAST, LAB
Contd.
RAPID
GOTO/P0
COOLNT/OFF
SPINDL/OFF
END
FINI
IES-2006
Prepare part program to machine the contour shown in
the figure using APT on CNC milling machine.
[15-Marks]
R30
R20
100 mm
80
50
60
200 mm
Material: MS
Thickness: 8.0 mm
Home Work
Write a complete part program in APT for machining
the product which is given in the diagram. Thickness of
the workpiece is 6 mm. All dimensions are in mm.
[15]
PARTNO CONTOUR
MACHIN/MILL, 1
CLPRNT
UNITS/MM
P0 = POINT/-25.0,-25.0, 25.0
P1 = POINT/0.0, 0.0, 6.0
P2 = POINT/117.0, 32.0, 6.0
P3 = POINT/117.0, -32.0, 6.0
C1=CIRCLE/CENTER, P1, RADIUS, 10.0
C2=CIRCLE/CENTER, P2, RADIUS, 12.5
C3=CIRCLE/CENTER, P3, RADIUS, 12.5
Robotics
Advantages of Robots
Disadvantages of Robots
Material Handling
Manipulator
Assembly
Manipulator
Spot Welding
Wrist Configurations
Wrist assembly is attached to end-of-arm
End effector is attached to wrist assembly
Function of wrist assembly is to orient end effector
Body-and-arm determines global position of end
effector
Two or three degrees of freedom:
Roll
Pitch
Yaw
End Effectors
The special tooling for a robot that enables it to
perform a specific task
Two types:
Grippers to grasp and manipulate objects (e.g.,
parts) during work cycle
Tools to perform a process, e.g., spot welding, spray
painting
Degrees of Freedom
The degree of freedom or grip of a robotic system can be
configuration.
Each of the five basic motion configurations utilizes three
Types of Robot
Cartesian or Gantry
robot:
It's a robot whose arm
has
three
prismatic
joints, whose axes are
coincident
with
a
Cartesian coordinator.
Used for pick and place
work, application of
sealant,
assembly
operations,
handling
machine tools and arc
welding.
Types of Robot
Cylindrical robot:
form a cylindrical
coordinate system.
Used for assembly
operations, handling at
machine tools, spot
welding, and handling
at
die
casting
machines.
Types of Robot
Spherical or
Polar robot:
It's a robot whose axes
form a polar coordinate
system.
Used for handling at
machine tools, spot
welding,
diecasting,
fettling machines, gas
welding
and
arc
welding.
Types of Robot
SCARA robot
The
SCARA
acronym stands
for Selective Compliant Assembly
Robot Arm or Selective Compliant
Articulated Robot Arm.
It's a robot which has two parallel
rotary joints to provide compliance
in a plane
Used for pick and place work,
application of sealant, assembly
operations and handling machine
tools
Types of Robot
Articulated
or
Revolute Robot:
It's a robot whose arm
has at least three rotary
joints.
Used for assembly
operations, die casting,
fettling machines, gas
welding, arc welding
and spray painting.
Types of Robot
Parallel robot
Joint 1
Joint 2
Cell
Supervisor
Level 2
Controller
& Program
Level 1
Joint 3
Joint 4
Joint 5
Joint 6
Sensors
Level 0
Working Envelope
Robot Programming
Leadthrough programming
Work cycle is taught to robot by moving the
Leadthrough Programming
1. Powered leadthrough
Common for point-topoint robots
Uses teach pendant
2. Manual leadthrough
Convenient for
continuous path
control robots
Human programmer
physical moves
manipulator
No computer programming
Disadvantages:
Downtime during programming
CAD
Computer Aided Design (CAD): Used for creating the
product database
Geometric Modeling
Engineering Analysis
Automated Drafting
CAM
Robot Programming
Computerized Scheduling
Computerized process control
Automation
Fixed Automation
Automation
Automation
Programmable Automation
Can change the design of the product or even change the
different components.
Equipment are designed to be flexible or programmable.
Used for batch production.
Automation
Flexible Automation
If is also known as FMS, and uses CAD/CAM
Produce different products on the same equipment in
What is an FMS?
FMS Components
FMS Goals
Advantages of FMS
Faster, lower- cost changes from one part to another
Disadvantages of FMS
Limited ability to adapt to changes in product or product
Reference Book
CAD/CAM: Computer-Aided Design and
Manufacturing By Groover
CNC Machines By B. S. Pabla, M. Adithan
Option
A
B
A
A
D
A
A
A
Q. No
9
10
11
12
13
14
15
16
17
Option
B
D
A
C
D
A
C
B
A