
10. MISCELLANEOUS FUNCTIONS
B–63172EN/01
NC FUNCTION
58
When up to eight digits immediately after address M are specified, a
32–bit binary code is output. The maximum number of input digits can
be specified with a parameter. This binary code is used for on/off control
of the machine. A block can usually contain up to three M codes although
only one of them is effective.
The following M codes are used for special purposes:
M00 : Program stop
M01 : Optional stop
M02 : End of program
M30 : End of program and tape rewind
The above M codes can also be output in binary codes.
M98 (subprogram call), M99 (return from a subprogram), and an M code
(set with a parameter) for calling a subprogram or custom macro are
processed in the CNC, so that no signal is output.
Up to five M codes can be simultaneously specified in one block.
As these M codes are simultaneously sent to PMC side, the machining
cycle time compared with the conventional 1–block single M command
is reduced.
Example)
(i) 1–block single M command
M40;
M50;
M60;
G28G91X0Y0Z0;
:
(ii)1–block plural M command
M40M50M60;
G28G91X0Y0Z0;
:
NOTE
1 The maximum input value of the first M code is 99999999,
while the maximum input values of the second and five M
codes are 65535.
2 A strobe signal is provided for each of the first to five M
codes (MF, MF2, MF3, MF4, and MF5).
When all the operations for the first to third M codes are
completed, completion signal FIN is output.
10.1
MISCELLANEOUS
FUNCTIONS
10.2
1–BLOCK PLURAL M
COMMAND