
B–61404E/08
15. CUSTOM MACRO APROGRAMMING
279
15
CUSTOM MACRO A
A function covering a group of instructions is stored in memory as same
as a subprogram. The stored function is presented by one instruction, so
that only the representative instruction need be specified to execute the
function. This group of registered instructions is called a “custom macro
body” and the representative instruction is called a “custom macro
instruction”. The custom macro body may simply be called a macro. And
the custom macro instruction may be called a macro call command.
Regular Program
Custom macro
instruction
Custom macro body
A group of
instructions for
a certain function
Programmers need only remember representative macro instructions
without having to remember all the instructions in a custom macro body.
The three most significant points on custom macros are that variables can
be used in the custom macro body, operations can be performed on
variables and actual values can be assigned to the variables in custom
macro instructions.
NOTE
Machine tool builders are requested to attach your custom
macro program tape or program list to the CNC unit without
fail. If it is necessary to replace part program storage
memory due to a failure, FANUC serviceman or end users
operators in charge of maintenance should know the
contents of custom macro for the purpose of repairing the
trouble immediately.