HEIDENHAIN CNC Pilot 4290 User Manual
Page 195

HEIDENHAIN CNC PILOT 4290
183
M commands for program-run control
M00
Program STOP
M01
Optional STOP
M30
End of program
M99 NS..
Program end with restart
M commands as machine commands
M03
Spindle ON (CW)
M04
Spindle ON (CCW)
M05
Spindle STOP
M12
Lock spindle brake
M13
Release spindle brake
M14
C axis ON
M15
C axis OFF
M19 C..
STOP spindle at position ”C”
M40
Shift gear to range 0 (neutral)
M41
Shift gear to range 1
M42
Shift gear to range 2
M43
Shift gear to range 3
M44
Shift gear to range 4
Mx03
Spindle x ON (CW)
Mx04
Spindle x ON (CCW)
Mx05
Spindle x STOP
M97
Synchronous function
4.1
7 M F
unctions
4.17 M Functions
M functions control the program run and the machine components
(machine commands).
M00 Program STOP
The program run stops – ”Cycle Start” resumes the program run.
M01 Optional STOP
The ”optional stop” (Automatic mode) determines whether the
program run stops at M01. ”Cycle start” resumes the program run.
M30 End of program
M30 indicates the end of a program or subprogram. (M30 does not
need to be programmed.)
If you press ”Cycle START” after M30, program execution is repeated
from the start of the program.
M99 Program end with restart at beginning of program or at a
given block number
M99 means ”end program and start again.” CNC PILOT restarts
program execution from:
■
Program beginning, if NS is not entered
■
Block number NS, if NS is entered
Modal functions (feed rate, spindle speed, tool number,
etc.) which are effective at the end of program remain in
effect when the program is restarted. You should therefore
reprogram the modal functions at the start of program or
at the startup block (if M99 is used).
M97 Synchronous function
Slides for which M97 is programmed wait until all slides have reached
this sentence. Program run then continues.
For complex machining operations (e.g. machining of several
workpieces), M97 can be programmed with parameters.
Parameters
H:
Synchronous mark number – the evaluation takes place only
during interpretation of the NC programs
Q:
Slide number – use synchronization with Q if synchronization
with $x is not possible
D:
On/Off – default: 0
■
0: Off – synchronization during runtime of NC program
■
1: On – synchronization exclusively during interpretation of the
NC programs
Example for M97
. . .
$1
N.. G1 X.. Z..
$2
N.. G1 X.. Z..
$1$2 N.. M97
[$1, $2 wait for each other]
. . .
Machine commands
The effect of the machine commands depends on the
type of lathe. The table below lists the M commands
used on most machines.
For more information on the M commands,
refer to your machine manual.