FANUC Series 16/18/160/180-Model C for Lathe Operator Manual

PROGRAMMING
16. CUSTOM MACRO
B–62754EN/01
319
(i) When the interrupt signal (UINT) is input, any movement or dwell
being performed is stopped immediately and the interrupt program is
executed.
(ii) If there are NC statements in the interrupt program, the command in
the interrupted block is lost and the NC statement in the interrupt
program is executed. When control is returned to the interrupted
program, the program is restarted from the next block after the
interrupted block.
(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 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
S Type I
(when an interrupt is
performed even in the
middle of the block)
S Type II
(when an interrupt is
performed at the end of
the block)

Leave a Reply

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