ADTECH9 Series CNC Programming Manual
4.5
Types of variables
(1) Public variables
Any bit address can use public variables, which contain 600 groups; among those, #100~#199 are
non-retentive public variables after power failure, #500~#999 are retentive public variables.
(2) Local variables (#1-#32)
When calling subroutine, local variables can be defined with <argument> and only can be used in
programs; the local variable of every macro program is independent, and thus can be repeated. (up to four
levels)
G65 Pp1 Ll1 <argument>;
p1
: subroutine No.
l1
: repeat times
<Arguments> are Aa1 Bb1 Cc1… Zz1, etc.; the bit address specified by <argument> and the local
variables in the subroutine are shown below:
Bit address
Variable No.
Subroutine Bit address
Variable No. Subroutine
A
#1
○
N
×
×
B
#2
○
O
×
×
C
#3
○
P
×
×
D
#7
○
Q
#17
○
E
#8
○
R
#18
○
F
#9
○
S
#19
○
G
×
×
T
#20
○
H
#11
○
U
#21
○
I
#4
○
V
#22
○
J
#5
○
W
#23
○
K
#6
○
X
#24
○
L
×
×
Y
#25
○
M
#13
○
Z
#26
○
The argument bit addresses marked with “×” can’t be used.
The argument bit addresses marked with “○” can be used.
①
While calling macro program, the local variables in subroutine can be defined by specifying the
Summary of Contents for CNC9640
Page 1: ...ADTECH9 Series CNC Programming Manual ...
Page 21: ...ADTECH9 Series CNC Programming Manual Workpiece Coordinate System Diagram ...
Page 44: ...ADTECH9 Series CNC Programming Manual 2 Occasions that inner corner rotates ...
Page 45: ...ADTECH9 Series CNC Programming Manual ...
Page 62: ...ADTECH9 Series CNC Programming Manual Manual insertion ...
Page 65: ...ADTECH9 Series CNC Programming Manual Tool radius compensation start and axis Z cut in action ...
Page 117: ...ADTECH9 Series CNC Programming Manual ...
Page 118: ...ADTECH9 Series CNC Programming Manual ...
Page 142: ...ADTECH9 Series CNC Programming Manual ...
Page 143: ...ADTECH9 Series CNC Programming Manual ...