Programming manual.
CNC 8070
1.
CREATING A PROGRAM.
Program structure.
·32·
(REF: 1709)
1.2 Program structure.
A CNC program consists of a set of blocks or instructions that properly organized, in
subroutines or in the program body, provide the CNC with the necessary data to machine
the desired part.
Each block contains all the functions or command necessary to execute an operation that
may be machining, preparing the cutting conditions, controlling the elements of the machine,
etc.
The CNC program may consist of several local subroutines and the body of the program.
The local subroutines must be defined at the beginning of the program.
%example
(Name of the program)
N5 F550 S1000 M3 M8 T1 D1
(Sets the machining conditions)
N6 G0 X0 Y0
(Positioning)
N10 G1 G90 X100
N20 Y50
N30 X0
N40 Y0
(Machining)
N50 M30
(End of program)
CNC Program
Block
· · ·
Block
Subroutine
Block
· · ·
Block
Program body
Block