
PROGRAMMING
B–63124EN/01
13. PROGRAM CONFIGURATION
123
A program consists of the following components:
Table 13 (a) Program components
Components Descriptions
Tape start Symbol indicating the start of a program file
Leader section Used for the title of a program file, etc.
Program start Symbol indicating the start of a program
Program section Commands for machining
Comment section Comments or directions for the operator
Tape end Symbol indicating the end of a program file
Tape start
% TITLE ;
O0001 ;
M30 ;
%
(COMMENT)
Program section
Leader section
Program start
Comment section
Tape end
Fig.13 (b) Program configuration
A program section consists of several blocks. A program section starts
with a program number and ends with a program end code.
Program number O0001 ;
Block 1 N1 G91 G00 X120.0 Y80.0 ;
Block 2 N2 G00 X100.T02 ;
: :
Block n Nn M2 ;
Program end M30 ;
A block contains information necessary for machining, such as a move
command or coolant on/off command.Specifying a value following a
slash (/) at the start of a block disables the execution of some blocks (see
“optional block skip” in Section 13.2).
D Program components
D Program section
configuration