Fanuc Power Mate i-D/H Operator Manual

PROGRAMMING
(Common to Power Mate i–D and –H)
B–63174EN/03
13. CUSTOM MACRO
125
A macro program can be called using the following methods:
Macro call Simple call ((G65)
modal call (G66, G67)
Macro call with G code
Macro call with M code
Subprogram call with M code
Subprogram call with T code
Macro call (G65) differs from subprogram call (M98) as described below.
With G65, an argument (data passed to a macro) can be specified. M98
does not have this capability.
When an M98 block contains another NC command (for example, G01
X100.0 M98Pp), the subprogram is called after the command is
executed. On the other hand, G65 unconditionally calls a macro.
When an M98 block contains another NC command (for example, G01
X100.0 M98Pp), the machine stops in the single block mode. On the
other hand, G65 does not stops the machine.
With G65, the level of local variables changes. With M98, the level of
local variables does not change.
When G65 is specified, the custom macro specified at address P is called.
Data (argument) can be passed to the custom macro program.
G65 P p L <argument–specification> ;
P : Number of the program to call
: Repetition count (1 by default)
Argument : Data passed to the macro
O0001 ;
:
G65 P9010 L2 A1.0 B2.0 ;
:
M30 ;
O9100 ;
#3=#1+#2 ;
IF [#3 GT 360] GOTO 9 ;
G00 G91 X#3 ;
N9 M99 ;
After G65, specify at address P the program number of the custom
macro to call.
When a number of repetitions is required, specify a number from 1 to
9999 after address L. When L is omitted, 1 is assumed.
By using argument specification, values are assigned to corresponding
local variables.
13.6
MACRO CALL
Limitations
Differences between
macro calls and
subprogram calls
13.6.1
Simple Call (G65)
Explanations
Call

Leave a Reply

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