Fanuc Power Mate i-D/H Operator Manual

PROGRAMMING
(Common to Power Mate i–D and –H)
13. CUSTOM MACRO
B–63174EN/03
146
(iii) If there are no NC statements in the interrupt program, control is
returned to the interrupted program by M99, then the program is
restarted from the command in the interrupted block.
Execution in
progress
Normal program
Interrupted by macro interrupt
Execution in
progress
Interrupt signal (UINT) input
CNC command restart; when
there are no NC statements in
the interrupt program
Custom macro interrupt
(i) If the block being executed is not a block that consists of several cycle
operations such as a drilling canned cycle (In case of the Power Mate
i–D/D2) and automatic reference position return (G28), an interrupt
is performed as follows:
When an interrupt signal (UINT) is input, macro statements in the
interrupt program are executed immediately unless an NC statement
is encountered in the interrupt program. NC statements are not
executed until the current block is completed.
(ii) If the block being executed consists of several cycle operations, an
interrupt is performed as follows:
When the last movement in the cycle operations is started, macro
statements in the interrupt program are executed unless an NC
statement is encountered. NC statements are executed after all cycle
operations are completed.
Execution in
progress
Normal program
Execution in
progress
Interrupt signal (UINT) input
Custom macro
interrupt
NC statement in the
interrupt program
The interrupt signal becomes valid after execution starts of a block that
contains M96 for enabling custom macro interrupts. The signal becomes
invalid when execution starts of a block that contains M97.
While an interrupt program is being executed, the interrupt signal
becomes invalid. The signal become valid when the execution of the
block that immediately follows the interrupted block in the main program
is started after control returns from the interrupt program. In type I, if the
interrupt program consists of only macro statements, the interrupt signal
becomes valid when execution of the interrupted block is started after
control returns from the interrupt program.
Type II
(when an interrupt is
performed at the end of the
block)
Conditions for enabling
and disabling the custom
macro interrupt signal

Leave a Reply

Your email address will not be published. Required fields are marked *