16. CUSTOM MACRO
When G65 is specified, the custom macro specified at address P is called.
Data (argument) can be passed to the custom macro program.
G65 P p L ȏ <argument–specification> ;
P : Number of the program to call
ȏ : Repetition count (1 by default)
Argument : Data passed to the macro
G65 P9010 L2 A1.0 B2.0 ;
IF [#3 GT 360] GOTO 9 ;
G00 G91 X#3 ;
N9 M99 ;
S After G65, specify at address P the program number of the custom
macro to call.
S When a number of repetitions is required, specify a number from 1 to
9999 after address L. When L is omitted, 1 is assumed.
S By using argument specification, values are assigned to corresponding
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
S Addresses G, L, N, O, and P cannot be used in arguments.
S Addresses that need not be specified can be omitted. Local variables
corresponding to an omitted address are set to null.
Simple Call (G65)
D Argument specification