Operating and Programming — Milling Page 78 808D
Additional
Information
Part 2
s
SEQUENCE
The M function initiates switching operations, such as "Coolant ON/
OFF". Various M functions have already been assigned a fixed function-
ality 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.
Subpro-
gram
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 posi-
tions 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 select-
ed from several subprograms. When you create the program, the pro-
gram 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
M/H
function
Specified M
function
Explanation
M0 Stop program
M1 Stop program with
conditions
M2 End program
M30 End program and
back to the beginning
M17 End subprogram
M3 / M4 / M5 Spindle CW/CCW/
Stop
Specified M
function
Explanation
M6 Tool change
M7 / M8 Coolant on
M9 Coolant off
M40 Select gear stage
automatically
M41~M45 Change spindle gear