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

- 638 -
17.6.3 Modal Call : Per-Block Call (G66.1)
In this macro call mode, a specified macro is called unconditionally in
each NC command block. All the commands in each block are
regarded as being arguments, without being executed, except the O, N,
and G codes. (For the G codes, only the code specified last is regarded
as being an argument.)
Thus, each NC command block appears as if G65P were specified at
the beginning of the block if no O or N code exists, or in the next block
if an O or N code exists.
G66.1 P100 ; mode,
N001 G01 G91 X100 Y200 D1 R1000 ; is equivalent to
N001 G65 P100 G01 G91 X100 Y200 D1 R1000 ;
- G66.1 blocks
(a) Even in G66.1 blocks, calls can be made.
(b) The correspondence between argument addresses and
variables is the same as that for simple calls.
- Blocks subsequent to a G66.1 block in which calls are made
(excluding G66.1 blocks)
(a) G, P, and L are also regarded as being arguments. G
corresponds to #10, L to #12, and P to #16. The data is
subject to the restrictions imposed on the input format of
normal NC commands. For example, ;G1000.P0.12 L-4 is
not allowed.
(b) When multiple G codes appear, only the last one is regarded
as being an argument. The O and N codes are inherited by
the subsequent blocks as modal information, as are G codes
in groups other than the 00 group.
1 Each block is regarded as being an NC command
block. A per-block call is made when an address
other than O or N is specified. If an N code is
specified after an address other than O or N, the N
code is regarded as being an argument. In this case,
the N code corresponds to variable #14 and the
number of decimal positions is 0.
2 In G66.1 mode, S, T, and secondary auxiliary
function addresses cannot be specified.
[Example] If G66.1 P1000; T12; is specified when 1
is set for parameter TCS (bit 0 of No. 7000)
(subprogram call with the T code), alarm PS0093 is

Leave a Reply

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