
EDIT.
FANUC LTD
SHEET
DRAW. NO. CUST.
TITLE
5
7
DESCRIPTIONDESIG.DATE
01 00.07.05 First issue.
16i/18i/160i/180i-MA OPERATOR'S MANUAL
Replacement of “15.7 PROCESSING MACRO
STATEMENTS” explanation
B-63014EN/02-2
When the N1 is being executed, the NC statements in the next two blocks (up
to N5) are read into the buffer. Since N5 is a block that involves no
movement, an intersection cannot be calculated. In this case, the NC
statements in the next three blocks (up to N7) are read. The macro
statements (N2, N4, and N6) between N1 and N7 are processed during
execution of N1.
15.7.2 Caution for using system variables
In case of using the following system variables in macro program and you
need to execute the macro program after completing the block execution just
before the macro program, M code which can prevent buffering (parameter
No.3411-3432) or G53 command block is necessary just before the macro
program.
Meaning Read
Write
Number of
Variable
Note
(In case not to
command M code
preventing buffering or
G53 block.)
Read #1000 - #1015 ,
#1032
The data is read at
buffering a macro
program.
Interface signals
Write #1100 - #1115 ,
#1132
The data is written at
buffering a macro
program.
Tool
compensation
values
Write #10001 - The data is written at
buffering a macro
program.
Macro alarms Write #3000 Macro alarm is
generated at maximum
2 blocks before a macro
program.
Program stop with
message
Write #3006 Program stops at
maximum 2 blocks
before a macro
program.
Time information Read
Write
#3001,#3002 The data is read /
written
at buffering a macro
program.
Read #3011,#3012 The data is read at
buffering a macro
program.
Automatic
operation control
Write #3003, #3004 Setting data is available
at maximum 2 blocks
before a macro
program.
Settings Write #3005 The data is written at
buffering a macro
program.
Mirror image Read #3007 The data is read at
buffering a macro
program.