
B-63784EN/01 PROGRAMMING 17.CUSTOM MACRO
- 723 -
- Custom macro interrupt and custom macro modal call
When the interrupt signal (UINT) is input and an interrupt program is
called, the custom macro modal call is canceled (G67). However, when
G66 is specified in the interrupt program, the custom macro modal call
becomes valid. When control is returned from the interrupt program by
M99, the modal call is restored to the state it was in before the interrupt
was generated. When control is returned by M99 Qxxxxxxxx;, the
modal call in the interrupt program remains valid.
NOTE
In the following modes, only those programs
consisting of macro programs only can generate
interrupts. If programs containing NC statements
attempt to generate an interrupt, alarm PS0101 is
issued.
1) Canned cycle
2) Programmable mirror image
3) Coordinate system rotation
4) Scaling
Additional functions for Interruption Type Custom Macro
• Function that makes an interruption type custom macro valid
when the power is turned on (if bit 2 of parameter No. 7004 is 1).
• Function that prevents an interruption type custom macro from
being made invalid (if bit 2 of parameter No. 7004 is 1).
• Function that ensures that the modal information in an
interruption type custom macro program is inherited even if
control returns from the last M99 in that interruption type custom
macro program to the original program (if bit 3 of parameter No.
7004 is 1).
• Function that, when a programmable mirror image is effective,
allows execution to continue without issuing an alarm if an
interruption type custom macro is called and the custom macro
program contains an NC statement (if bit 4 of parameter No. 7004
is 1).
B’
B
’
Interrupt generated
Programmed tool path
Offset vector
Tool center path