Computer Numerical Control: Part Programming For NC Systems
Computer Numerical Control: Part Programming For NC Systems
Lecture 3
Part Programming for NC Systems
Dr Lina Momani
NC program
A program for NC consists of a sequence of directions that
causes an NC machine to accomplish a certain operation.
The NC program describes the sequence of actions of the
controlled NC machine.
These actions include but are not limited to
1. component movements, incl. direction, velocity and
positioning;
2. tool selection, tool change, tool offsets, and tool corner wear
compensation;
3. spindle rotation and spindle rotation speed, incl. possibility to
change it to keep constant cutting speed for different diameters
in turning;
4. application of cutting fluids.
A part program is simply an NC program used to manufacture a
part.
Part programming for NC may be performed manually ( manual
part programming) or by the aid of a computer (Computer-aided
part programming).
Many programming languages have been developed for part
programming.
The first that used English like statements and one of the most
popular languages is called APT (for Automatically Programmed
Tools).
Many variations of APT have been developed, including ADAPT
(ADaptation of APT), EXAPT (a European flavor of APT),
UNIAPT (APT controller for smaller computer systems), etc.
NC programming for complex parts are
generated using advanced computer
programs (CAD/CAM programs), which
create automatically the machine code (so
called G-code) in a graphic environment.
Machine code is also largely used for
manual part programming of simple
shapes .
Machine code
The structure of a NC program written in
machine code is standardized and for a
two-axis NC system has the following
format:
.Structure of a NC program
NC program block consists of a number of program words.
The NC program is executed block by block: each next
block is entered in the system and executed only after
entirely completing the current block.
Each program word is an ordered set of characteristics,
letters and numbers, to specify a single action of the
machine tool.
Program words fall into two categories,
1. modal, which are active in the block in which they are specified
and remain active in the subsequent blocks until another program
word overrides them;
2. non-modal, which are only active in the block in which they are
specified.
Some of the most important program
words are as follows
sequence numbers (N****)
Sequence numbers are a means of identifying
program blocks. In some systems they are not
required although sequence numbers are needed
in most canned cycles;
preparatory functions (also G-codes) (G**)