Fanuc Power Mate i-D/H Operator Manual

PROGRAMMING
(Common to Power Mate i–D and –H)
B–63174EN/03
13. CUSTOM MACRO
103
13
CUSTOM MACRO
Although subprograms are useful for repeating the same operation, the
custom macro function also allows use of variables, arithmetic and logic
operations, and conditional branches for easy development of general
programs. A operation program can call a custom macro with a simple
command, just like a subprogram.
O0001 ;
:
:
:
G65 P9010 R50.0 L2 ;
:
:
M30 ;
Operation program
Custom macro
O9010 ;
#1=#18/2 ;
G01 X#1 Y#1 F300 ;
G02 X#1 Y–#1 R#1 ;
:
:
:
M99 ;

Leave a Reply

Your email address will not be published. Required fields are marked *