OPTIMUM
M A S C H I N E N - G E R M A N Y
808D
Page 365
Additional Information Part 2
Brief instruction 808D Milling
Operating and Programming — Milling
SEQUENCE
The M function initiates switching operations, such as "Coolant ON/OFF". Various M
functions have already been assigned a fixed functionality by the CNC manufacturer. The
M functions not yet assigned are reserved for free use of the machine tool manufacturer.
With H functions, the meaning of the values of a specific H function is defined by the
machine tool manufacturer.
M codes and H functions created by the OEM should be backed up by the machine tool
manufacturer.
Frequently used machining sequences, e.g. certain contour shapes, are stored in
subprograms. These subprograms are called at the appropriate locations in the main
program and then executed.
Subprogram for positions of the four pockets.
Example
The structure of a subprogram is identical to
that of the main program, but a subprogram
contains M17 - end of program in the last block of the program sequence. This means a
return to the program level where the subprogram was called.
The subprogram should be given a unique name enabling it to be selected from several
subprograms. When you create the program, the program name may be freely selected.
However, the following rule should be observed:
The name can contain letters, numbers and underscores and should be between 2 and 8
characters long.
Example: LRAHMEN7
Specified M
function
Explanation Specified
M
function
Explanation
M0
Stop program
M6
Tool change
M1
Stop program with
conditions
M7 / M8
Coolant on
M2
End program
M9
Coolant off
M30
End program and back to
the beginning
M40
Select gear stage
automatically
M17
End subprogram
M41~M45
Change spindle gear
M3 / M4 / M5
Spindle CW/CCW/Stop
M/H
function
Subprogram