10. MISCELLANEOUS FUNCTIONS
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
(i) 1–block single M command
(ii)1–block plural M command
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.
1–BLOCK PLURAL M