13. Program Support Functions
13.5 User Macro Specifications
307
Miscellaneous command macro call (for M, S, T, B code macro call)
The user macro subprogram of the specified program number can be called merely by issuing an M
(or S, T, B) code. (Only entered codes apply for M but all S, T and B codes apply.)
Format
M** ; (or S** ;, T** ;, B** ;)
M**
M code for macro call (or S, T, B code)
Detailed description
(1) The above instruction functions in the same way as the instructions below, and parameters are
set for each M code to determine the correspondence with the instructions. (Same for S, T and
B codes)
a :
G22 L
ΔΔΔΔ
;
b :
G65 L
ΔΔΔΔ
M** ;
c :
G66 L
ΔΔΔΔ
M** ;
d :
G66.1 L
ΔΔΔΔ
M** ;
M** are not output
When the parameters corresponding to c and d above are set, issue the cancel command
(G67) either in the user macro or after the call code has been commanded so as to cancel the
modal call.
(2) The correspondence between the "M**" which conducts the macro call and the macro program
number L
ΔΔΔΔ
to be called is set by parameter. Up to 10 M codes from M00 to M95 can be
entered. Note that the codes to be registered are the codes basically required for the machine,
and codes excluding M0, M1, M2, M30.
(3) As with G22, it is displayed on the screen display of the setting and display unit but the M
codes and MF are not output.
(4) Even if the miscellaneous command entered above is issued during a user macro subprogram
called by the M code, macro call will not result and it will be handled as an ordinary
miscellaneous command.
(5) All S, T and B codes call the subprograms in the prescribed program numbers of the
corresponding S, T and B functions.
(6) A maximum of 10 M codes can be set. However when not setting all 10. Set the parameters as
shown below.
Setting to call L8000 with type 0
(G22 type) during M20 command
Setting to call L8001 with type 0
(G22 type) during M21 command
Set parameters not being used as
shown on left.
[ MACRO ]
<Code> <Type> <Program No.>
M [01]
20
0
8000
M [02]
21
0
8001
M [03] 9999
0
199999999
M [04] 9999
0
199999999
M [05] 9999
0
199999999
:
: :
:
: :
M [10] 9999
0
199999999