
PROGRAMMING
12. PROGRAM CONFIGURATION
B–62094E/04
78
A program consists of the following components:
Table 12(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 LF
O0001 LF
M30 LF
%
(COMMENT)
Program section
Leader section
Program start
Comment section
Tape end
Fig. 12(b) Program configuration (Example of using ISO code)
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 LF
Block 1 N1 G91 G00 X120.0 LF
Block 2 N2 G43 Z–32.0 H01 LF
: :
Block n Nn M2 LF
Program end M30 LF
A block contains information necessary for machine operation, such as
a move command or on/off command of peripheral device. Specifying
a value following a slash (/) at the start of a block disables the execution
of some blocks (see “optional block skip” in Section 12.2).
D Program components
D Program section
configuration