Fanuc Series 15i/150i-MA (Programming) Operators Manual

B-63324EN/03 PROGRAMMING 17.CUSTOM MACRO
- 671 -
Type II (when an interrupt is performed at the end of the block)
(i) If the block being executed is not a block that consists of several
cycle operations such as a drilling canned cycle 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.
Fig.17.14.2 (b) Custom macro interrupts and NC statements(type-II)
- Conditions for enabling and disabling the custom macro interrupt signal
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.
Custom macro
interrupt
Execution in
progress
Execution in
progress
Normal program
NC statement
in the interrupt program
Interrupt signal (UINT) input

Leave a Reply

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