
LNC-M8000
MACRO
178 寶元數控精密股份有限公司
LNC Technology Co., Ltd.
5.2 MACRO Call
M98 P_ L_
M98 “string” L_
M98 “string”P_ L_
M98 call sub-program
L:Repeat times
P:4digits sub-program number
(O+ P_No)
“string”:Appoint string arbitrarily
“string”P_:Combination file
name(string+4 digits of P_NO)
M98 P1 L2;
Description:Call O0001 twice.
M98 “HELLO” L2;
Description:Call HELLO twice.
M98 “ABC”P1 L2;
Description:Call ABC0001 twice.
G65 P_ L_
<arguments…>
G65 “string” L_
<arguments…>
G65 “string”P_ L_
<arguments…>
G65MACRO single call
<arguments…>:send to MACRO
arguments
L:Repeat times
P:4digits sub-program number
(O+ P_No)
“string”:Appoint string arbitrarily
“string”P_:Combination file
name(string+4 digits of P_NO)
G65 P1 L2 A11 B12 C13;
Description:
Call O0001 twice. Send to arguments
cooreponding to #1=11、#2=12、#3=13。
G65 “HELLO” L2 A11 B12 C13;
Description:
Call HELLO twice. Send to arguments
cooreponding to #1=11、#2=12、#3=13。
G65 “ABC”P1 L2 A11 B12 C13;
Description:
Call ABC0001 twice. Send to arguments
cooreponding to #1=11、#2=12、#3=13。
G66 P_ L_
<arguments…>
G66 “string” L_
<arguments…>
G66 “string”P_ L_
<arguments…>
G66MACRO mode call
<arguments…>:send to MACRO
arguments
L:Repeat times
P:4digits sub-program number
(O+ P_No)
“string”: Appoint string arbitrarily
“string”P_:Combination file
name(string+4 digits of P_NO)
G66 P0001 L2 A11 B12 C13;
X21.Y21.
X22. Y22.
Description:
Call O0001 twice. Send to arguments
cooreponding to #1=11、#2=12、#3=13;the
following movement single block will call
O0001 twice.
G code call MACRO
<arguments…>:send to MACRO
arguments
G22 A11 B12 C13;
Description:
If directory <maker_macro> has file
maker_macro_g22, then system will call
this file one time, and send to arguments
to correspond to #1=11、#2=12、#3=13。
Komentarze do niniejszej Instrukcji