CNC
CNC
Aims
This module is designed to provide students with:
• Class Participation 5%
• Assignments 10%
• Tests and Quizzes 15%
• Term Project 10%
• Unseen Mid-Term Exam 20%
• Unseen Final Exam 40%
Total 100%
INTRODUCTION
CAD - CAM
1. Program of instructions
2. Controller unit
3. Machine tool or other controlled process
1. Program of instructions
1. Punched card.
2. Magnetic tape.
3. Picture film.
4. Manual data input, MDI.
5. Direct numerical control, DNC.
2. Controller unit
1. Tape reader.
2. Data buffer.
3. Signal output channels to the machine
tool.
4. Feedback channels from the machine tool.
5. Sequence control to coordinate the overall
operation.
The NC procedure
The NC procedure is:
1. Process planning.
2. Part programming.
a. Manual programming
b. Computer-assisted part programming
3. Tape preparation.
4. Tape verification.
5. Production.
NC drill press
For the NC drill press X, Y defined the
plane of the table, while Z (if present) is
perpendicular to the plane of the table
as shown in fig 1.1.
1. Input translation.
2. Arithmetic calculations.
3. Cutter offset Computation.
4. Post processor.
NC part programming languages
1. Central computer.
2. Bulk memory.
3. Telecommunication lines.
4. Machine tools.
Advantages of DNC
1. Elimination of punched tape & tape reader.
2. Greater computational capability and flexibility.
3. Convenient storage of NC part programs in
computer files.
4. Programs stored as CLFILE
5. Reporting of shop performance.
6. Establishes the framework for the evaluation of
the future computer automated factory.
Computer Process Interfacing
1. Feedback control.
2. Regulatory control.
3. Feedforward control.
4. Preplanned control.
5. Steady-state optimal control.
6. Adaptive control.
Computer Aided Quality Control
1. Preparatory functions
They are functions describing the
motion. They are defined by G and a
number ranges from 0 to 99.
CNC Program construction
Code grouping
The G codes are divided into groups. The
reason for that is that the only one code
from the same group may be used in the
same block of instructions otherwise the
last one will be executed.
CNC Program construction
Modal codes
There are two types of G codes in terms of
volatility. The modal codes will stay in effect
until another code from the same group
replaces it.
The non-modal code will take effect during the
current code block then the machine will reset
back to the default settings
Code Group Modal Meaning
G0/G00 A Yes Rapid moves
G1/G01 A Yes Linear Interpolation
G2/G02 A Yes CW Interpolation
G3/G03 A Yes CCW Interpolation
G4/G04 B No Dwell
G17 C Yes X,Y Plane of Interpolation
G18 C Yes X,Z Plane of Interpolation
G19 C Yes Y,Z Plane of Interpolation
G28 I Yes Return to Machine zero
G40 D Yes CRC cancel (Cutter Radius Compensation)
G41 D Yes CRC left
G42 D Yes CRC right
Code Group Modal Meaning
G43 J yes Tool length comp. +
G44 J yes Tool length comp. -
G49 J yes Tool Length comp. Cancel
G54-G59 O Yes Set Local Coordinate Systems
G70/G20 M Yes Rough turning canned cycle
G71/G21 M Yes Finishing turning canned cycle
G73 E Yes Drill CHPBRKR
G80 E Yes Canned Cycle cancel
G90 F Yes Absolute Programming
G91 F Yes Incremental Programming
G92 I Yes Set Program Zero
CNC Program construction
Program structure
1- Program Start
The program start is the program number. The
program number begins with character/letter O.
2- Program Contents
NC blocks
3- Program End
M30 for a main program
M17 for a sub-program
G00 : Rapid traverse
G01 : Linear interpolation
G02 : Circular interpolation (clockwise)
G03 : Circular interpolation (counterclockwise)
G22 : End of program
G84 : Canned cycle
2. Auxiliary functions