Professional Documents
Culture Documents
NUMERICAL CONTROL
Module 2
DEFINITION
CNC can control the motions of the work piece or tool, the input
parameters such as feed, depth of cut, speed, and the functions such as
turning spindle on/off, turning coolant on/off.
THREE BASIC COMPONENTS OF CNC
1. INPUT MEDIUM (Part Program)
2. MACHINE CONTROL UNIT (MCU)
3. MACHINE TOOL (lathe, drill press, milling machine etc)
THREE BASIC COMPONENTS OF CNC
The part program is a detailed set of commands to be followed by the
machine tool.
Each command specifies a position in the Cartesian coordinate system
(x,y,z) or motion (workpiece travel or cutting tool travel), machining
parameters and on/off function.
Part programmers should be well versed with machine tools, machining
processes, effects of process variables, and limitations of CNC controls.
The part program is written manually or by using computer assisted
language such as APT (Automated Programming Tool).
The machine control unit (MCU) is a microcomputer that stores the program
and executes the commands into actions by the machine tool. The MCU
consists of two main units: the data processing unit (DPU) and the control
loops unit (CLU).
The DPU software includes control system software, calculation algorithms,
translation software that converts the part program into a usable format for
the MCU, interpolation algorithm to achieve smooth motion of the cutter,
editing of part program (in case of errors and changes).
The DPU processes the data from the part program and provides it to the CLU
which operates the drives attached to the machine lead screws and receives
feedback signals on the actual position and velocity of each one of the axes.
A driver (dc motor) and a feedback device are attached to the lead screw. The
CLU consists of the circuits for position and velocity control loops, deceleration
and backlash take up, function controls such as spindle on/off
PRINCIPLE
A system in which actions are controlled by direct insertion of
numerical data.
COMPUTER NUMERICAL
CONTROL (CNC)
• Storage of more than one part program
• Various forms of program input
• Program editing at the machine tool
• Fixed cycles and programming subroutines
• Interpolation
• Acceleration and deceleration computations
• Communications interface
• Diagnostics
NC POSITION MOVEMENT
•Incremental
> Taking the “Last” position as the zero position.
•Absolute
>Locations on Part – Fixed Reference Frame with
• Home position for reference.
REFERENCE POSTIONING SYSTEMS
(INCREMENTAL)
REFERENCE POSTIONING SYSTEMS
(ABSOLUTE)
Degree of Motion Control
•Point-to-Point (PTP)
>Good for holes & slots
>Position tool over point.
•Contouring
>Complex curved surfaces
>Computers needed for complex calculations
>Motion control to motors: varying voltages to DC servo motors.
Motion Control Systems
Point-to-Point systems
• Also called position systems
• System moves to a location and performs an
operation at that location (e.g., drilling)
• Also applicable in robotics
Continuous path systems
• Also called contouring systems in machining
• System performs an operation during
Point-to-Point systems
Continuous path systems
Interpolation Methods
1. Linear interpolation
• Straight line between two points in space
2. Circular interpolation
• Circular arc defined by starting point, end point, center or radius, and direction
3. Helical interpolation
• Circular plus linear motion
4. Parabolic and cubic interpolation
• Free form curves using higher order equations
INTERPOLATION
• Flexibility
• Capability for Complex
• Work-pieces
• Manage Large Work-pieces
• Reduced Jig & Fixture Cost
• Higher Quality
Computer Numerical Control (CNC)
Advantages:
• CRT allows review/editing
• Pre check/simulation
• Interface allows more capability
• Accurate positioning
• More functions
NUMERICAL CONTROL PROGRAMMING
• Y axis controls the table movement toward or away from the column.
•Y06789 will move the table 0.6789 in. along the Y axis
65
N5 G X Y Z S M F T D LF
G Code Spindle Tool Fn
Coordinate Values Speed End
Sequenc of
e No. Block
Block No.
M Code
Feed
Tool offset fn
66
G Codes –
Preparatory
functions
67
68
69
70
M00 – PROGRAMME STOP UNCONDITIONAL
M Codes –
M01 – PROGRAMME STOP OPTIONAL
Miscellaneous
Functions M02 – END OF PROGRAMME
M03 – SPINDLE ROTATION CW
M04 – SPINDLE ROTATION CCW
M05 – SPINDLE STOP
M08/09 – COOLANT ON/OFF
M17 – SUBROUTINE END
M19 – SPINDLE ORIENTATION
M30 – END OF PROGRAMME
71
72
74
Absolute/incremental dimensioning (G90, G91)
75
Inch/metric input (G70/G71) or (G20/G21)
76
N10 T1 M6 ; Loading of tool
T1
77
N20 G96 S100 LIMS=2500 ;
Explanation
Constant cutting rate = 100
m/min, max. speed 2,500 rpm
78
Settable zero offset – G54
79
EXTENDED WORD
ADDRESSES
ANG = to assign exterior
angle AR = apex angle
AC = absolute coordinate
AP = polar angle
CIP = circular interpolation
CT = circular tangent
CHF = chamfer (general use)
CHR = chamfer (base distance)
CR = radius for circular
interpolation CYCLE = machining
cycle
GOTO = jump function
IC = incremental coordinate
LIMS = upper spindle speed
limitation MSG() = message (max 65
characters) RND = rounding
RP = polar radius
80
SPOS = spindle position in degrees
TURNING MILLING
81
EXAMPLE
82
83
84
85
86
87
Thank You