
8.MISCELLANEOUS FUNCTION B-63323EN-1/03
- 726 -
8.3 MULTIPLE M COMMANDS IN A SIGLE BLOCK
General
So far, one block has been able to contain only one M code. However,
this function allows up to three M codes to be contained in one block.
Up to five M codes specified in a block are simultaneously output to the
machine.
This means that compared with the conventional method of a single M
command in a single block, a shorter cycle time can be realized in
machining.
For the first of the five M codes, the maximum allowable number of
digits can be specified in parameter No. 2030. A command longer than
the maximum allowable number of digits causes an alarm (PS0003).
The second to fifth M codes may each consist of up to four digits.
(Example)
One M command in a single block Multiple M commands in a single
block
M40;
M50;
M60;
G28G91X0Y0Z0;
:
:
:
M40M50M60;
G28G91X0Y0Z0;
:
:
:
:
:
- Basic procedure
(1) Assume that "MaaMbbMcc;" was commanded by the program.
(2) For each M command, one of the code signals listed below is sent,
and after the time set by parameter No. 2010, TMF, elapses each
strobe signal is set to 1.
Table. 8.3 Code signals and strobe signals for multiple M
M command Code signal Strobe signal
First iMaa j M00 to M31 i32 bit j
MF
Second iMbb j M200 to M215 i16 bit j
MF2
Third iMcc j M300 to M315 i16 bit j
MF3
Fourth iMdd j M400 to M415 i16 bit j
MF4
Fifth iMee j M500 to M515 i16 bit j
MF5
The code signals for the first to fifth M commands are sent at the
same time. Strobe signals MF, MF2, MF3, MF4, and MF5 are all
set to 1 at the same time.
The code signal is a binary notation of the program command aa,
bb and cc.
(3) On the PMC side, the code signals corresponding to the respective
strobe signals are read when the strobe signals become "1", and
the appropriate operations are performed.
(4) When the operation of all M commands ends on the PMC side, the
end signal (FIN) is set to "1".