
11. MISCELLANEOUS FUNCTIONS
B–63002EN/01
NC FUNCTION
114
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 (sub program call) and M99 (return from sub program) and always
processed in the CNC so, signal will not be output.
Up to three 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 third M
codes are 65535.
2 A strobe signal is provided for each of the first to third M
codes (MF, MF2, and MF3).
When all the operations for the first to third M codes are
completed, completion signal FIN is output.
When an 8-digit number after address B is commanded, a 32-bit binary
code is output to the PMC. This code is kept till the next B code is
commanded.
11.1
MISCELLANEOUS
FUNCTIONS
11.2
1–BLOCK PLURAL M
COMMAND
11.3
SECOND
MISCELLANEOUS
FUNCTIONS