Fanuc Series 15i/150i-MA (Programming) Operators Manual

B-63324EN/03 PROGRAMMING 17.CUSTOM MACRO
- 641 -
17.6.5 Macro Calls with G Codes (Specification of Multiple G Codes)
By setting the first G code to be used for a macro program call, the
number of the first program to be called, and the number of code and
call combinations, macro calls can be defined with multiple G codes.
Explanation
Using n G codes that start with that set for parameter No. 7090, n
custom macros with the program numbers that start with that set for
parameter No. 7091 can be called, n being the number set for parameter
No. 7092. To disable the calls, set 0 for parameter No. 7092.
If a negative G code is set for parameter No. 7090, the calls are modal
calls. In this case, whether the G code is equivalent to G66 or G66.1
can be specified using parameter MGE (bit 3 of No. 7000).
The iteration and argument specifications are the same as those for a
macro call with a G code.
[Example]
If No.7090=900, No.7091=10000000, and No.7092=100,
G900 O10000000
G901 O10000001
G902 O10000002
:
G999 O10000099
the above 100 combinations of G codes and custom macro
calls (simple calls) are defined. If No. 7090 is changed to -
900, the same combinations of G codes and custom macro
calls (modal calls) are defined.
NOTE
1 In the following cases, all calls defined with these
settings are nullified:
1)If a value outside the valid data range is set for a
parameter.
2)If (No.7091+No.7092-1)>99999999
2 Simple and modal calls cannot be specified at the
same time.
3 If a G code specified as described in this section is
also specified for parameter No. 7050 to 7059, the
call with parameter No. 7050 to 7059 will take
precedence.

Leave a Reply

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