GSK980TDc Turning CNC System User Manual
144
Ⅰ
Progra
mming
2. G65, G66 can change the level of local variable and M98 has no such function.
3. G65, G66 only follows N and only P or H follows them.
3.25.3.1 Non-modal call G65
Command format:
G65 P_ L_ <argument>_;
Macro program specified by P is called, the argument (data) is send to the user macro
program body.
Command explanation:
P —— called macro program number
L —— called times (it is 1 when it is omitted, it can be the repetitive times from 1 to
9999)
<argument>
——
data sent to macro program is valued with the corresponding local
variable.
Nest call: G65 call has four-level nest.
Main program macro program (1
st
level) macro program (2
nd
level) macro program (3
rd
level) macro program (4
th
level)
Specifying argument:
the argument can be specified by two forms.
Method 1: use the letter besides G, L, O, N, P, and each is only specified one time, and the last
which is specified many times is valid.
Argument address and corresponding variable No. table in method 1
Address Variable
No.
Address
Variable No.
Address
Variable No.
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
Note: The addresses which are not needed to specify can be omitted, the corresponding local variable
of the omitted address is valued by <null>.
Method II: use A, B, C and li, Ji, Ki (I is 1~10), the used letter and executed times(I, J, K)
automatically decides the corresponding variable number of argument. The argument in the method
specifies A, B, C one time for each and I, J, K up to 10 times ( 10 times replacing the more).
#01
…
…
#33
#01
…
…
#33
#01
…
…
#33
#01
…
…
#33
#01
…
…
#33
Local
variable
O____
;
……;
G65 P_
;
……;
O____
;
……;
G65 P_
;
M99
;
O____
;
……;
……;
M99
;
O____
;
……;
G65 P_
;
M99
;
O____
;
……;
G65 P_
;
M99
;
(0 level)
(1st level)
(2nd level)
(3rd level)
(4th level)
Summary of Contents for GSK980TDc
Page 17: ...I Programming ...
Page 18: ...GSK980TDc Turning CNC System User Manual ...
Page 190: ...GSK980TDc Turning CNC System User Manual 172 Ⅰ Programming ...
Page 191: ...Ⅱ Operation Ⅱ Operation ...
Page 192: ...GSK980TDc Turning CNC System User Manua Ⅱ Operation ...
Page 326: ...GSK980TDc Turning CNC System User Manual 306 Ⅱ Operation ...
Page 327: ...Ⅲ Connection Ⅲ Connection ...
Page 328: ...GSK980TDc Turning CNC System User Manual Ⅲ Connection ...
Page 470: ...GSK980TDc Turning CNC System User Manual 448 Ⅲ Connection ...