1. General
19
1.8
1.8
1.8
1.8
Program
Program
Program
Program Configuration
Configuration
Configuration
Configuration
1.8.1
1.8.1
1.8.1
1.8.1
Structure
Structure
Structure
Structure of
of
of
of an
an
an
an NC
NC
NC
NC Program
Program
Program
Program
As it is shown in Figure 1.25, an NC program consists of a sequence of NC
blocks
blocks
blocks
blocks
. Each
block is one of machining steps.
Commands
Commands
Commands
Commands
in each block are the instruction.
%1000
N01 G91 G00 X50 Y60
N10 G01 X100 Y500 F150 S300 M03
N...... ;COMMENT
N200 M30
Program
Program block
block
Command character
Program number
block
Figure 1.25 Structure of an NC Program
-
Format of
program
program
program
program name
name
name
name
The program name must be specified in the format OXXXX (X could be letters or
numbers).
-
Format of
program
program
program
program number
number
number
number
The program number should be started with %XXXX or OXXXX (X could be numbers
only).
-
Format of
blocks
blocks
blocks
blocks
A block starts with the program block number.
N.. G.. X…Y… F.. M.. S..
Program block
Miscellaneous function
Spindle function
Feed Function
Coordinate - Dimension word
Preparatory function
Program block number
Figure 1.26 Structure of Block
Содержание HNC-18iT
Страница 27: ...2 Preparatory Function 23 G59...