
A-90371E/01
Title
Draw
Ed. Date Design Description
Date Dec.01.’05 Design. Apprv.
3/ 7
page
FANUC Series 30i/31i/32i -MODEL A
M code protection function
1.2 Explanation
1.2.1 Explanation
Detailed explanation
This function permits execution of some specific M codes
(miscellaneous function) only when they are commanded in the
program which is called as macro.
In the above example, it becomes the following specifications.
(1) It is possible to execute M50 because it is commanded in the
program called as the macro.
(2) It is not possible to execute M50 because it is commanded in the
main program. (Alarm PSxx1 occurs.)
O001 ;
G90 G00 :
:
:
M100 ;
:
:
M50 ; (2)
:
:
O9020 ;
G28 G90 Z10. :
:
:
M50 ; (1)
:
:
M99 ;
Main program
Macro program
by M100
M100 : M code for calling the custom macro of
program No. 9020.
M50 : Protected M code.