Programming manual.
CNC 8070
CREATING A PROGRAM.
1.
Program structure.
·33·
(REF: 1709)
1.2.1 Program body.
The body of the program has the following structure.
Program header.
The header of the program is a block consisting of the "%" character followed by the name
of the program. The name of the program may be up to 14 characters long and may consist
of uppercase and lowercase characters as well as numbers (no blank spaces are allowed).
The header must be programmed when the program contains local subroutines; otherwise,
programming the header is optional.
The name defined in the header has nothing to do with the name of the file. The two may
be different.
Program body.
The body of the program consists of blocks in charge of executing operations, movements,
etc.
End of the program.
The end of the program body is defined by functions "M02" or "M30" and they are equivalent.
There is no need to program these functions; when reaching the end of the program without
executing any of them, the CNC ends the execution and shows a warning indicating that they
are missing.
The CNC behaves differently when reaching the end of the program depending on whether
the M02 / M30 has been programmed or not
(*) Stopping the spindle depends on the setting of machine parameter SPDLSTOP.
Header The header indicates the beginning of the body of the program.
The header must be programmed when the program has local
subroutines.
Program blocks It is the main part of the program, the one containing
movements, operations, etc.
End of program
%0123
%PROGRAM
%PART923R
M30
M02
With M02/M30 Without
M02/M30
The CNC selects the first block of the program. Yes Yes
The CNC stops the spindle. Yes No
The CNC assumes the initial conditions. Yes (*) No
The CNC initializes the cutting conditions. Yes No