
1.2.3 Output of M code used to call sub program/custom macro program
In M/S/T/B codes output into MDI program, M code used to call sub
program and M code used to call custom macro program and arguments
can be output into the MDI program.
Caution
- The MDI program, into which M/S/T/B codes are output, is
executed under the condition of the modal and workpiece
coordinate system at the searched block. Therefore, in case
that movement command, for example tool change, is
specified in sub program/custom macro program called by M
code, use G53 command to avoid the influence of modal
status and workpiece coordinate system.
- M/S/T/B codes specified in sub program/custom macro
program called by M code are not output into MDI program.
• M code used to call sub program
M code used to call sub program specified by parameters (No.6071 to
No.6079) can be output into MDI program.
• M code used to call macro program
M code used to call macro program specified by parameters (No.6080 to
No.6089) can be output into MDI program.
• Argument for macro call
Arguments for macro call can be output into MDI program with M code
used to call macro program.
When argument is output into MDI program, value of argument is
converted into number, even if it is specified with macro variable or
arithmetic operation in the original program.
(Example)
Original program MDI program
#500=100. ;
M20 A[#500/7] ;
M20 A14.285714 ;
Edit
6/22
Data Si
nature
Descri
tion
Improvement of Program restart Specifications
A-90024EN
Drawing No.
Page
Modification
02
Date
Mar/26/05.
Desig.
M. Kobayashi
Apprv.
T. Endo
May/10/05.
FANUC Series 16i/18i/21i-MB/TB
Title