8 Basic CNC Programming
8.1 Elements of an NC Part Program
96
8.
Basic CNC Programming
This section provides a basic reference for basic CNC programming.
This section presents the following information.
Section Contents: Basic CNC Programming
Section Name
Page
Elements of an NC Part Program
General Programming Suggestions
8.1.
ELEMENTS OF AN NC PART PROGRAM
An NC program is composed of blocks (lines) of code. Each block contains a string of words. An NC word
is a code made up of an alphabetic character (called an address character) and a number (called a
parameter or value). Each line can end with a comment which is ignored while machining.
These concepts are illustrated in the graphic below.
There are many categories of address characters used in NC part programs for the ProMill Milling Center
(see
8.4 NC Codes, pg. 98).
Each block of NC code specifies the movement of the cutting tool on the milling center and a variety of
conditions that support it.
For example, a block of NC code might read:
N1G90G01X.5Y.5Z1.5F1
The following table explains this line of code.
Example Code
N1G90G01X.5Z1.5F1