EasyManua.ls Logo

Adtech CNC9650 - Page 102

Default Icon
161 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
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#3100
#1#3100
X#1
[] can be embedded up to five levels.

Table of Contents

Other manuals for Adtech CNC9650

Related product manuals