
2.MACRO COMPILER AND MACRO EXECUTOR B-63943EN-2/01
- 8 -
2.3.1 Limitations on Commands
NOTE
For each macro executor function, there may be
limitations other than listed below. See the
explanation of each macro executor function.
Custom macro
Custom macro commands can be used for P-CODE macros, but some
commands cannot be used and some commands can be used with
restrictions as listed below.
Custom macro command P-CODE macro
A constant value consisting of up to
12 digits
Maximum value : ±999999999999
Minimum value : ±0.00000000001
9 digits
±999999999
±0.00000001
Chamfer command (,C_) and corner
R command (,R_)
Not allowed
The name of a nonvolatile custom
macro common variable can be
specified.
The same specification is enabled by
defining a symbol name(*1).
The name of a system variable can
be specified.
The same specification is enabled by
defining a symbol name(*1).
As subscript [n] for a name, only a
constant can be specified(*2).
The name of a system variable can
be specified.
The same specification is enabled by
defining a symbol name(*1).
As subscript [n] for a name, only a
constant can be specified(*2).
SETVN is possible. Not allowed
*1 With a P-CODE macro, a symbol name used in a source program
can be defined in the symbol definition file. By defining a
system variable/constant name used with a custom macro by
using this function, the same specification as done with the
custom macro is enabled. For details, refer to "FANUC Macro
Compiler For Series 30i OPERATOR'S MANUAL (B-
66264EN)".
NOTE
Bit symbols such as [#_M_SBK], [#_M_FIN],
[#_M_FHD], [#_M_OV], and [#_EST] cannot be
defined.
*2 As subscript [n] for a name, only a constant can be specified.
No variable and operation can be specified.
[Example]
@[#_ABSMT[1]] #5021 : Allowed
→ When #101=[#_ABSMT[1]] is coded, it
is replaced with #101=#5021.
@[#_ABSMT[#100]] #5021 : Not allowed