Chap 7.2 Numerical control
Chap 7.2 Numerical control
2 Numerical Control
Contents (11.10. & 17.10. 24)
• Introduction
• Hardware configuration
• Types of NC systems
• NC/CNC/DNC
• Basics of part programming
• Part programming using CAD/CAM systems
and manual data input
References:
Lee, K, Chap. 11.5 – 11.8 and Groover, M.., Chap 7
UiS/IMBM 1
Introduction
In the last section, we discussed that
However, computerized process planning itself will not automate the production process
unless the machines used in the production process can be directly driven by a computer
without human intervention
Adding numerical control capability to conventional machine tools can realize this automation
UiS/IMBM 2
Introduction
Numerical control (NC) is the use of coded numerical information in the automatic
control of equipment positioning.
Specifically, NC stores the production steps in a part program, which is read by the
control system of the machine tool, and the part is produced automatically without
human operators
UiS/IMBM 3
Introduction …
UiS/IMBM 4
Hardware configuration
The MCU of modern NC technology is a micro-computer and related control hardware that
stores programs and executes by converting each command line into mechanical actions
DPU
reads the part program from tape or other medium
decodes the program statements and processes
sends to the CLU about the position of each axis of the MT, its direction of
motion, feed and other auxiliary functions
CLU
converts the received data to control signals and controls the MT operation
UiS/IMBM 5
Types of NC Systems
Two major types of NC controllers
1) Point-to-point (PTP) system (positioning system)
Used when the path of the tool with respect to
the workpiece is not important, e.g. drilling
The tool is not in contact with workpiece while it
is travelling from point to point.
Motion is simple and machines with such
controller are cheap
UiS/IMBM 7
NC/CNC/DNC
• Direct Numerical Control, also known as Distributed
Numerical Control, (both DNC) is a method of
networking CNC machine tools
• the program is stored in a separate computer and
sent direct to the machine, one block at a time.
• If the computer is connected to a number of
machines, it can distribute programs to different
machines as required.
• Distributed numerical control machines may hold
one or more programs in their local storage
can operate independent of the central
computer (after downloading)
• Some DNCs have satellite computers local to each
NC machine to increase speed, handle large files
and expand the number of machine tools used
UiS/IMBM 8
Basics of part programming
Part (NC) programming means
Tool
Generation of the set of coded, machine z y
UiS/IMBM 9
Basics of part programming …
Part program contains
• Geometry information about the part
• Motion information to move the tool against the workpiece
Description of both geometry and motion needs definition of a coordinate system
Cartesian coordinate systems: For linear
motions x, y and z oriented according to right-
hand (RH) rule and three rotations (a, b and c)
Manufacturers define the positive direction of
the axes
General convention:
Z-axis Two axis systems used in NC
This axis is first defined, and motion along +Z
moves the cutting tool away from the workpiece
Z-axis is adopted as the axis of the main
(principal) spindle or the axis that provides
cutting power/speed
For rotating workpiece (WP) like lathe:
Z-axis is parallel to the spindle
For rotating tool like milling, drilling and boring:
Z-axis is parallel to the tool axis
UiS/IMBM 10
Basics of part programming …
X-axis
• Generally horizontal and parallel to the work
holding surface
• Machine with rotating WP like lathe:
• x-axis is direction of tool movement
and
• +x moves the cutting tool away from
the WP
• Vertical milling or drilling machine:
• Movement of table to the right and left
• +x is to the righthand direction when one
faces the machine
UiS/IMBM 11
Basics of part programming …
Machine tool classification:
UiS/IMBM 12
Basics of part programming …
Syntax of a part program:
Part program is stored using a well-defined syntax containing specific details
of operation in a word
The letter is referred to as the address, and the manufacturer of the control
system defines the letter to be used as the address for each word (given in
the manual of the control system)
For convenience, certain letters have been standardized for particular words
UiS/IMBM 13
Basics of part programming …
List of some standardized letter:
Sequence or block number (N code)
Identifies each block in a part program and
Provides a way to locate commands rapidly
Preparatory command or
Geometric code (G code)
Prepares MCU for a given operation (cutter motion)
Defines commands that select
a) movement system (point–to–point, contouring, etc…)
b) unit system for dimension input (metric or imperial)
c) preset sequence of events (canned cycles)
d) need for compensation of variation in tool size
UiS/IMBM 14
Basics of part programming …
List of some standardized letter:
UiS/IMBM 15
Basics of part programming …
List of some standardized letters (cont…):
Tool selection command (T code)
Specifies the tool to be used in a specific operation (valid for automatic tool
changer)
Specific designations exist that contain tool number, tool offset number and nose
radius compensation
Miscellaneous commands (M code) The command consists of the
address M followed by two digits
Used to designate a particular mode of operation
Typical operations include: switch machine,
coolant supply and spindle on/off
Generally only one M code is coded in one block
Most of M codes are modal,
i.e. the code remains active
not necessary to repeat on each block
UiS/IMBM 16
Basics of part programming …
Example:
N020 G00 X0 Y0 Z500 T01 M06
Note:
Omitted words are assumed to be zero or to be
the same as the value previousely defined, for
instance as F and S words omitted above
UiS/IMBM 18
Example 1
Operation data:
Cutting speed: S = 100 m/min
y Feed rate: f = 0,06 mm/rev.
Programming method: absolute
positioning
Assume tool is positioned at S(0, -50, 10)
UiS/IMBM 19
Example 2
Operational data:
Cutting speed: S = 75 mm/min.
Feed: f = 0,08 mm/rev.
Designation of drill bits of 8, 10 and 12
mm as T01, T02 and T03 respectively.
Hole x-coordinate y-coordinate diameter
Programming: absolute positioning
A 25 25 8
B 50 75 10
C 75 50 12
D 100 75 10
E 150 25 8
F 175 25 8
UiS/IMBM 20
Manual part programming …
UiS/IMBM 21
Manual part programming …
In manual programming, the programmer, without computer aids, records
the NC blocks in a part program manuscript (shown below)
UiS/IMBM 22
Manual part programming …
Cutter size compensation, milling
UiS/IMBM 23
Zero point and reference point
UiS/IMBM 25
NC Interpolation methods …
Five interpolation methods:
1. Linear
2. Circular
3. helical
4. Parabolic and
5. Cubic
Linear interpolation
Most basic method used to generate straight line
continuous path
Needs specifying start point, end point and the
feed rate
Circular interpolation:
Permits to interpolate circular arcs.
Needs the following specifications
(1) Coordinate of starting point
(2) Coordinate of the end point
(3) Either center or radius of arc
(4) Direction of cutter along the arc (G02 or G03)
UiS/IMBM 26
Dimension Commands
Two ways to designate dimension
1. Absolute dimension programming (G90):
control mode where the data input is in absolute dimension
UiS/IMBM 28
?
Next: Computer-assisted part programming
UiS/IMBM 29
NC part programming using CAD/CAM
&
by Manual Data Input (MDI)
UiS/IMBM 30
NC part programming using CAD/CAM
CAD/CAM systems:
computer interactive graphics that can integrate design & manufacturing
NC part program is done by the computer
The two main tasks of the part programmer are partly automated.
These tasks are
(1) part geometry definition
The part programmer receives immediate visual verification of the geometry elements
(2) tool path specification,
automatic software modules for common machining operations such as turning, milling, drilling, etc.
can be called as subroutines in the machining cycle
Advantages:
Part program can be simulated off-line and machining accuracy can be
verified.
Time and cost can be determined by simulation
Most appropriate tools can be selected
Speed and feed cab be optimized for the selected materials and operations
Limitations:
Software is needed
Training of the operator is required
32
NC part programming by Manual Data Input (MDI)
33
Summary and Questions
Hardware configuration
Brief introduction of CAD/CAM system and Manual data input methods of part
programming
?
34