4
N254M98P0003
N100M98P0002
N101G00X10.
M99
N255G00Y5.
M99
M99
N176M98P0004
N177G00Y2.
O0002
Call
O0003
Call
O0004
Call
..........
Main
program
(Program No. 1)
Subprogram
(Program No. 2)
Subprogram
(Program No. 3)
Subprogram
(Program No. 4)
* “%” for ISO or ASCII,
“ ER ” for EIA
(* For details on blocks, see “About Blocks,” which is the following section.)
Conceptual view of a main program and subprograms
Program Structure and Format
Programming proceeds in accordance with the process sheet that has been prepared. The program is input using a dedicated input
device for NC codes, or with a general-purpose computer.
Input is made as shown in the figure below. Addresses such as G, M, X, I, and J are combined with numbers to specify the cutting steps
and tool movements.
Program Structure
A program can be classified as a “main program” or a “subprogram.”
Main Program
Ordinarily, the machine operates according to instructions from a main program. A subprogram, which is described next, is basically
specified within a main program.
Subprogram
If a main program can be likened to the trunk of a tree, then subprograms are branches. When a main program specifies execution of a
subprogram of a certain number, the subprogram of that number is called up and executed.
Subprograms can be convenient when writing a program where the same task is to be performed a number of times. Program modular-
ity can also be promoted by creating subprograms which have good general utility.
A subprogram can call another subprogram.
Data start
Program end
Preparatory function
Coordinate values, etc.
Feed rate
Spindle speed
Miscellaneous function
Block end
(start of the next block)
Sequence No.
Word
Address Value
Words which express dimensions,
angles, and so on are called
“dimension words.” Addresses for
dimension words include X, Y, Z, I,
J, K, and R.
Program No.
Содержание CAMM-3 PNC-3200
Страница 2: ......
Страница 62: ...60 MEMO ...
Страница 63: ......
Страница 64: ...R3 001018 NC code PNC 3200 ...