
Ed. Date Design Description
Date Jan.07.’04 Design. Apprv.
page
-
5/64
FANUC Series 30i-MODEL A
Real time custom macro
A-79350EN
Title
Draw
No.
n: Modal ID (1 to 10) (Omissible)
When a proper number is coded in n, a modal real time macro command is
specified.
When n is omitted, a one-shot real time macro command is specified.
ZDO...ZEND is detailed later.
Types of real time macro commands
- Modal real time macro command
- One-shot real time macro command
A command with ’//’ followed by an RTM statement is referred to as a one-shot real
time macro command (one-shot RTM command).
Example:
// #RV[1] = 30 ;
On the other hand, a command with ’//’ followed by number n (1 to 10) then an RTM
statement is referred to as a modal real time macro command (modal RTM
command).
Example:
//3 #RV[1] = 30 ;
A one-shot RTM command starts when the execution of the first following NC
command starts. A started one-shot RTM command is valid until the end of the NC
command.
A modal RTM command starts when the execution of the first following NC command
starts, as in the case of a one-shot RTM command.
Unlike a one-shot RTM command, however, a started modal RTM command is valid
until the automatic operation is completed.
Start of a real time macro command
An RTM command starts when the execution of the first following NC command
starts.
Example:
When NC command (1) starts execution in the program below, macro commands (2)
and (4) are executed in succession without waiting for the end of (1).
On the other hand, RTM command (3)starts execution when NC command (5) starts
execution after the end of NC command (1).
O0001 ;
G90 G00 X30. ;
(1) NC command
#100=0
(2) Macro command
// #RV[0]=1 ;
(3) RTM command
#102=2;
(4) Macro command
G90 G00 X100. ;
(5) NC command
M30 ;