
Ed. Date Design Description
Date Jan.07.’04 Design. Apprv.
page
-
12/64
FANUC Series 30i-MODEL A
Real time custom macro
A-79350EN
Title
Draw
No.
//1 #RV[2]=#100101 ;
X#100 ;
5 When a function for reading multiple blocks in advance is used,
up to three blocks among the blocks read in advance can trigger
an RTM command.
For example, if the blocks up to the block of (2) are read in
advance during execution of (1) in the program below, up to three
blocks can trigger an RTM command. In the program below, the
number of NC blocks that trigger an RTM command exceeds 3, so
that the RTM command of (a) must not be coded.
X30. Y50. ; --------------------------(1)
// Z-30. ;
// #RV[0]=#RV[0]+1 ;
X3. Y16. ; NC block 1 triggering an RTM command
X-23. Y4. ;
// #RV[1]=#RV[1]+1 ;
//2 Z30. ;
X-2. Y9. ; NC block 2 triggering an RTM command
X17. Y5. ;
// #RV[2]=#RV[2]+1 ;
X-2. Y9. ; NC block 3 triggering an RTM command
// #RV[3]=#RV[3]+1 ; -------------------(a)
X-12. Y-3. ;
X-100. Y200. ; ---------------------------(2)
Reserved words
The following reserved words are used with real time custom macros:
・Reserved words dedicated to real time custom macros
ZDO, ZEND, ZONCE, ZWHILE, ZEDGE
・Reserved words shared with custom macros
AND, OR, XOR, MOD, EQ, NE, GT, LT, GE, LE,
SIN, COS, TAN, ASIN, ACOS, ATAN, ATN, SQRT, SQR, ABS, BIN,
BCD, ROUND, RND, FIX, FUP, LN, EXP, POW
Be sure to fully spell out the reserved words for real time custom macros. For
example, ’ZONCE’ must not be coded as ’ZON’ or ’ZONC’.