
Ed. Date Design Description
Date Jan.07.’04 Design. Apprv.
page
-
4/64
FANUC Series 30i-MODEL A
Real time custom macro
A-79350EN
Title
Draw
No.
To use the real time custom macro function, a real time macro command (RTM
command) is coded in an NC program.
Real time macro command (RTM command)
The real time macro command (RTM command) is a macro command that starts
execution in phase with an NC statement in the program. After the execution of a
real time macro command starts, the RTM command operates independently of the
NC statement.
An RTM command is a statement dedicated to the real time custom macro function.
An RTM command consists of a set of one or more real time macro statements (RTM
statements).
Real time macro statement (RTM statement)
The real time macro statement (RTM statement) is a statement included in an RTM
command.
One or more RTM statements make up an RTM command.
An RTM statement consists of a macro command and axis control command
dedicated to the real time custom macro function.
The axis control command of an RTM statement is an RTM statement including an
address. This command is used to exercise axis control.
Example:
// ZDO ;
G90 G00 X100 ;
ZEND ;
(ZDO and ZEND are reserved words required for the axis control command of an
RTM statement, and are detailed later.)
The macro command of an RTM statement is a macro statement used with an RTM
statement for arithmetic/logical operation and signal control. (In the example below,
#RV[1] and #RV[2] are variables dedicated to the real time macro command.)
Example:
// #IOG[124, 5] = 1 ;
// #RV[1] = #RV[2] * 10 ;
Real time macro command format
The RTM command is a command with two slashes (//) prefixed at the start of a
block.
//n <real-time-macro-statement>
or
//n ZDO ;
<real-time-macro-statement>
:
ZEND ;