
PROGRAMMING16. CUSTOM MACRO
B–63684EN/01
294
The macro call command can be specified in MDI mode. During
automatic operation, however, it is impossible to switch to the MDI mode
for a macro program call.
A custom macro program cannot be searched for a sequence number.
Even while a macro program is being executed, blocks can be stopped in
the single block mode (except blocks containing macro call commands,
arithmetic operation commands, and control commands).
A block containing a macro call command (G65, G66, or G67) does not
stop even when the single block mode is on. Blocks containing arithmetic
operation commands and control commands can be stopped in single
block mode by setting SBKM (bit 5 of parameter 6000) to 1.
Single block stop operation is used for testing custom macro programs.
When SBKM (bit 5 of parameter 6000) is set to 1, a single block stop takes
place at every macro statement.
Note that when a single block stop occurs at a macro statement in cutter
compensation C mode, the statement is assumed to be a block that does
not involve movement, and proper compensation cannot be performed in
some cases. (Strictly speaking, the block is regarded as specifying a
movement with a travel distance 0.)
A / appearing in the middle of an <expression> (enclosed in brackets [ ]
on the right–hand side of an arithmetic expression) is regarded as a
division operator; it is not regarded as the specifier for an optional block
skip code.
Registered custom macro programs and subprograms should be protected
from being destroyed by accident. By setting NE8 (bit 0 of parameter
3202) and NE9 (bit 4 of parameter 3202) to 1, deletion and editing are
disabled for custom macro programs and subprograms with program
numbers 8000 to 8999 and 9000 to 9999. When the entire memory is
cleared (by pressing the
RESET
and
DELETE
keys at the same time to turn on
the power), the contents of memory such as custom macro programs are
deleted.
When memory is cleared with a reset operation, local variables and
common variables #100 to #149 are cleared to null values. They can be
prevented from being cleared by setting, CLV and CCV (bits 7 and 6 of
parameter 6001). System variables #1000 to #1133 are not cleared.
A reset operation clears any called states of custom macro programs and
subprograms, and any DO states, and returns control to the main program.
When a feed hold is enabled during execution of a macro statement, the
machine stops after execution of the macro statement. The machine also
stops when a reset or alarm occurs.
+0.0000001 to +99999999
–99999999 to –0.0000001
The number of significant digits is 8 (decimal). If this range is exceeded,
P/S alarm No. 003 occurs.
16.9
LIMITATIONS
D MDI operation
D Sequence number
search
D Single block
D Optional block skip
D Operation in EDIT mode
D Reset
D Feed hold
D Constant values that can
be used in <expression>