
Ed. Date Design Description
Date Jan.07.’04 Design. Apprv.
page
-
35/64
FANUC Series 30i-MODEL A
Real time custom macro
A-79350EN
Title
Draw
No.
Real time macro call (G65)
A series of RTM statements can be formed into a subprogram, which can be called
from the main program.
Real time custom macro call Simple call (G65)
When G65 is specified in an RTM command, the real time macro specified in address
P is called.
Calling
In address P after G65, specify the program number of a real time custom macro to
be called.
NOTE
1. In argument P of G65, only a constant value can be used. No value
can be specified through a variable.
Example:
// G65 P9010 ; Correct
// G65 P#RV[0] ; Incorrect
2. The inclusion of another NC command (such as G01 X100.0 G65 Pp)
is not allowed. If another NC command is included, PS0127 alarm is
issued.
3. The G65 block for calling a real time macro does not make a single
block stop.
4. On the other hand, a real time macro program called by real time
macro calling makes a single block stop.
P : Number of real time macro program to be
O0001 ;
:
:
//1 G65 P9010 ;
G04 P2000 ;
:
:
M30 ;
O9010 ;
:
:
:
:
:
:
M99 ;
G65 P p ;
The execution of real time macro //1 including O9010 starts simultaneously with the
G04 block of main program O0001.
Code real time macro
statements.