
3.EXECUTION MACRO FUNCTION B-63943EN-2/01
- 22 -
Passing of arguments
For a macro call, arguments can be specified.
Two types of argument specification are available. Argument
specification I uses letters other than G, L, O, N, and P once each.
Argument specification II uses A, B, and C once each and also uses I,
J, and K up to ten times. The type of argument specification is
determined automatically according to the letters used.
Argument specification I
Address Variable
Number
Address Variable
Number
Address Variable
Number
A #1 I #4 T #20
B #2 J #5 U #21
C #3 K #6 V #22
D #7 M #13 W #23
E #8 Q #17 X #24
F #9 R #18 Y #25
H #11 S #19 Z #26
• Usually, addresses G, L, N, O, and P cannot be used as
arguments. When bit 5 (MCARG) of compile parameter ‘No.
9008) is set to 1, however, G, L, N, and P can be used as
arguments in macro calls using G code and macro calls using M
code. The correspondence is: G#10, L#12, N#14, and P#16.
(If address N is specified after any address other than address O
or N, it is treated as an argument. In this case, the number of
digits after the decimal point is zero.)
NOTE
1 Limitations related to the input format for NC
commands apply to the data used as the argument.
For example, it is impossible to specify the
argument together with G1000., P0.12, or L-4.
2 When multiple G codes are specified, only the last
one is used as an argument. O and N values and
G codes other than the 00 group are passed as
modal information to the subsequent blocks.
Even in a special macro call, any address other than O is used as
an argument. For details, see the description of each type of
call.
• Addresses that need not be specified can be omitted. Local
variables corresponding to an omitted address are set to null.
• Addresses do not need to be specified alphabetically. They
conform to word address format.
I, J, and K need to be specified alphabetically, however.
[Example]
B_A_D_ . . . J_K_ . . . ...........Correct
B_A_D_ . . . J_I_ . . . ............Incorrect