Page
Chapter: 6
Section:
PROGRAMMING
11
COMPLEMENTARY
FUNCTIONS
The CNC always outputs the "M" function via pins 20 through 27 of connector I/O1.
These outputs may be either binary coded or BCD coded as described in the section
on "Auxiliary M function" of the chapter on "Concepts" in the Installation Manual.
The following "M" functions have a specific internal meaning at the CNC.
M00. Program stop
When the CNC executes the M00 code, it interrupts the program. To resume it,
press
M01. Conditional program stop
Same as M00 except that it is ignored unless the "Conditional Input" is active
(high -> 24Vdc), pin 18 of connector I/O1.
M30. End of program with return to first program block
This code indicates the end of the program and performs a "General Reset" of the
CNC setting it to initial conditions. It also stops the spindle (M05).
Plus, the CNC returns to the first block of the program in such way that if
is pressed again, the CNC will execute the program again from the beginning.
The M30 must always be programmed at the end of each program. Otherwise, the
CNC will keep on executing all the following blocks.
If machine parameter "P21(4)=1", the CNC increments the count of the parts counter
in one unit every time function M30 is executed.
M03. Clockwise spindle rotation
This code starts the spindle clockwise.
M04. Counter-clockwise spindle rotation
This code starts the spindle counter-clockwise.
M05. Spindle stop
This code stops the spindle.
M41,M42,M43,M44. Spindle speed range selection
The CNC offers 4 spindle speed ranges (gears) M41, M42, M43 and M44, with
their maximum speed limits set by machine parameters "P36", "P37", "P38" and
"P39".
When the new "S" value involves a range change, the CNC automatically outputs
its corresponding M function (M41 through M44).
These codes cannot be programmed by the machine operator.