13. Program Support Functions
13.5 User Macro Specifications
309
13.5.3 ASCII Code Macro
Function and purpose
A macro program can be called out by setting the correspondence of a subprogram (macro
program) pre-registered with the parameters to codes, and then commanding the ASCII code in the
machining program.
This function can be used in addition to the G, M, S, T and B miscellaneous command macro call
function.
(Execution example 1) G22 type
Main program
Subprogram
L0002 ;
:
D2000 ;
:
M30 ;
L200
:
:
:
G23 ;
After outputting 2000 to common variable #146, the
program No. 200 subprogram is called with the G22
subprogram call type.
#7401 (ASCII [01] Valid/Invalid)
1 (Valid)
#7402 (ASCII [01] Code)
D
#7403 (ASCII [01] Type)
0 (G22 type)
#7404 (ASCII [01] Program No.)
200
#7405 (ASCII [01] Variable)
146
Parameter
(Execution example 2) G65 type
Main program
Subprogram
L0003 ;
:
A500 ;
:
M30 ;
L3000
:
:
:
G23 ;
After outputting 500 to local variable #1, the
program No. 3000 subprogram is called out with
the G65 macro call type.
#7411 (ASCII [02] Valid/Invalid)
1 (Valid)
#7412 (ASCII [02] Code)
A
#7413 (ASCII [02] Type)
0 (G65 type)
#7414 (ASCII [02] Program No.)
3000
#7415 (ASCII [02] Variable)
100 (Not used)
Parameter