ADTECH9 Series CNC Programming Manual
#――5
→
#[
-
[
-
5]]
(2) Types of variables
Type
Variable
Function description
Global variable
#100~#199
#500~#999
Both main program and subroutine can be called
#100~#199 are non-retentive variables, and will be
reset automatically when the system is repowered
#500~#999 are retentive variables, and the values still
exist when the system power system is cut off.
Local variable
#1~#32
Can be called in the same program
System variable
No
(3) Variable reference
(a)
Except O, N and / (slash)
(b)
Specify with variables directly
G01X#1Y#100
(c)
Take the complement of the variables directly
G01X-#2
(d)
Variable defines variable
#3=-#105 ; take the complement of #105 directly and evaluate to #3
#4=1000 ; evaluate 1000 to #4 directly
(e)
Define the evaluation with expression
#1=#3+#2-100; the value #1 equals to the result of #3+#2-100
X[#1+#3+1000]; the value of X is the result of expression
[#1+#3+1000]
Note:
Function evaluation and expression evaluation must be written separately, and can’t be in the same line.
False
Correct
X#1
=
#3
+
100
→
#1
=
#3
+
100
X#1
[] can be embedded up to five levels.
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 ...