
Ed. Date Design Description
Date Jan.07.’04 Design. Apprv.
page
-
36/64
FANUC Series 30i-MODEL A
Real time custom macro
A-79350EN
Title
Draw
No.
Call destination real time program
In a called real time macro program, only an RTM statement can be coded.
In a called real time macro program, no additional RTM command may be executed.
(The RTM command symbol ‘//’ may not be coded.) For example, do not execute
the following program:
Code M99 in the last block only.
For example, do not execute the following program:
When executing an RTM statement in a subprogram, code an NC statement before
the M99 block for returning to the calling program.
Format
Specify G65 at the start of a block.
Call nesting level
Macro call nesting is not allowed.
Differences from macro call using a custom macro
Macro call using a real time custom macro and macro call using a custom macro
differs as described below.
・ In macro call using a custom macro, an argument (data to be passed to a macro)
and the number of repetitions can be specified. In macro call using a real time
custom macro, such information cannot be specified.
・ With a real time custom macro, other types of macro call (macro call using G66,
G66.1, G, and M code) and subprogram call are not allowed.
O0001 ;
// G65 P9010 ;
M02 ;
O9010 ;
ZEDGE [#RV[0] EQ 1] M99 ;
G91 G00 X50. ;
M99 ;
O0001 ;
// G65 P9010 ;
M02 ;
O9010 ;
// #RV[0]=1 ;
M99 ;
O0001 ;
G65 P9010 ;
M02 ;
O9010 ;
// #RV[0] = 20 ;
Real time macro statement
G04 ;
NC statement
M99 ;