Fanuc Power Mate i-D/H Operator Manual

PROGRAMMING
(Common to Power Mate i–D and –H)
13. CUSTOM MACRO
B–63174EN/03
138
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 bit 5 (SBM) of parameter 6000 to 1.
Single block stop operation is used for testing custom macro programs.
When bit 5 (SBM) of parameter 6000 is set to 1, a single block stop takes
place at every macro statement. (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 bit 0 (NE8) of parameter
3202 and bit 4 (NE9) 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 #199 are cleared to null values. They can be
prevented from being cleared by setting, and bits 7 (CLV) and 6 (CCV)
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.
As with M98, the M and T codes used for subprogram calls are not
displayed.
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,
alarm No.003 occurs.
13.9
LIMITATIONS
MDI operation
Sequence number
search
Single block
Optional block skip
Operation in EDIT mode
Reset
Display of the PROGRAM
RESTART page
Feed hold
Constant values that can
be used in <expression>

Leave a Reply

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