11.AUXILIARY FUNCTION
PROGRAMMING
B-63944EN/03
- 308 -
11.2
MULTIPLE M COMMANDS IN A SINGLE BLOCK
Usually, only one M code can be specified in one block. By setting
bit 7 (M3B) of parameter No. 3404 to 1, however, up to three M codes
can be specified simultaneously in one block.
Up to three M codes specified in one block are output to the machine
at the same time. So, when compared with a case where a single M
code is specified in one block, a reduced machining cycle time can be
achieved.
Explanation
CNC allows up to three M codes to be specified in one block.
However, some M codes cannot be specified at the same time due to
mechanical operation restrictions. For detailed information about the
mechanical operation restrictions on simultaneous specification of
multiple M codes in one block, refer to the manual of each machine
tool builder.
M00, M01, M02, M30, M98, M99, or M198 must not be specified
together with another M code.
Some M codes other than M00, M01, M02, M30, M98, M99, and
M198 cannot be specified together with other M codes; each of those
M codes must be specified in a single block.
Such M codes include these which direct the CNC to perform internal
operations in addition to sending the M codes themselves to the
machine. To be specified, such M codes are M codes for calling
program numbers 9001 to 9009 and M codes for disabling advance
reading (buffering) of subsequent blocks. Meanwhile, multiple of M
codes that direct the CNC only to send the M codes themselves
(without performing internal operations ) can be specified in a single
block.
However, it is possible to specify multiple M codes that are sent to the
machine in the same block unless they direct the CNC to perform
internal operations. (Since the processing method depends on the
machine, refer to the manual of the machine tool builder.)
Example
One M command in a single block
Multiple M commands in a single
block
M40;
M50;
M60;
G28G91X0Y0Z0;
:
:
:
M40M50M60;
G28G91X0Y0Z0;
:
:
:
:
: