ADTECH9 Series CNC Programming Manual
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.
Can be called in the same program
Except O, N and / (slash)
Specify with variables directly
Take the complement of the variables directly
Variable defines variable
#3=-#105 ; take the complement of #105 directly and evaluate to #3
#4=1000 ; evaluate 1000 to #4 directly
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.
[] can be embedded up to five levels.