Official GSK Agents in South Africa
Tel: +27 11 626 2720, [email protected]
GSK980TDi Turning CNC System User Manual
174
Ⅰ
Programming
3.27.3 Program Example with Macro Command
Differences between user macro program call (G65, G66) and subprogram call (M98) are as
follows:
1. G65, G66 can specify the argument data and send them to macro program and M98 has no
such function.
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.27.3.1 One-Shot Call G65
Command format:
G65 P_ L_ <argument>_;
Macro program specified by P is called, the argument (data) is sent 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>.
#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)
Содержание 980TDi
Страница 17: ...Official GSK Agents in South Africa Tel 27 11 626 2720 design efamatic com 1 Programming I Programming...
Страница 225: ...Official GSK Agents in South Africa Tel 27 11 626 2720 design efamatic com 209 Operation II Operation...
Страница 379: ...Official GSK Agents in South Africa Tel 27 11 626 2720 design efamatic com 363 Connection III Connection...
Страница 539: ...Official GSK Agents in South Africa Tel 27 11 626 2720 design efamatic com 523 IV Appendix IV Appendix...