FANUC Series 30i/31i/32i-MODEL A M Code Protection Function, Specifications Additional Manual Page 3

Additional Manual
A-90371E/01
Title
Draw
No.
Ed. Date Design Description
Date Dec.01.05 Design. Apprv.
3/ 7
page
FANUC Series 30i/31i/32i -MODEL A
M code protection function
specification
s
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
called
by M100
M100 : M code for calling the custom macro of
program No. 9020.
M50 : Protected M code.

Contents Summary of FANUC Series 30i/31i/32i-MODEL A M Code Protection Function, Specifications Additional Manual

  • Page 1FANUC Series 30i/31i/32i-MODEL A M code protection function Specifications Caution The parameter number and the alarm number described in the specifications are temporary numbers. FANUC Series 30i/31i/32i -MODEL A Title M code protection function specifications Draw A-90371E/01 No. Ed. Date Design D
  • Page 21.1 Outline Outline This function permits execution of some specific M codes (miscellaneous function) only when they are commanded in the macro program which is called as macro. FANUC Series 30i/31i/32i -MODEL A Title M code protection function specifications Draw A-90371E/01 No. Ed. Date Design Des
  • Page 31.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. Macro program called Main program by M100 O001 ; O9020 ; G90 G00 : G28 G90 Z10. : : : : : M10
  • Page 4Note (1) When the protected M code is commanded in a subprogram, it is possible to execute it if the sub program is already called from a macro program. Example) Main program -> Macro call -> Sub program call (Protected M code is commanded) It is possible to execute protected M code because the sub
  • Page 51.3 Parameters Parameter xxx1 Protected M code 1 xxx2 Protected M code 2 xxx3 Protected M code 3 xxx4 Protected M code 4 xxx5 Protected M code 5 xxx6 Protected M code 6 xxx7 Protected M code 7 xxx8 Protected M code 8 xxx9 Protected M code 9 xx10 Protected M code 10 [Input type] Parameter input [Data
  • Page 6xx11 First M code (for first range) xx13 First M code (for second range) xx15 First M code (for third range) [Input type] Parameter input [Data type] 2-word path [Valid data range] 3 to 99999999 (excluding 30, 98 and 99) xx12 Number of M code (for first range) xx14 Number of M code (for second range
  • Page 71.4 Alarm Alarm Number Message Description PSxx1 PROTECTED M-CODE The protected M code is commanded in excluding the macro call. FANUC Series 30i/31i/32i -MODEL A Title M code protection function specifications Draw A-90371E/01 No. Ed. Date Design Description page 7/ 7 Date Dec.01.’05 Design. Apprv.