ADTECH9 Series CNC Programming Manual
##10 and #[#10]have the same
meaning
➢ Replace the number with expression:
#10=5
#[#10+1]=1000
#[#10-1]=-1000
#[10*3]=100
#[#10/2]=-100
#6=1000
#4=-1000
#15=100
#2=-100
Undefined variables:
The variables haven’t been defined after the system is started are blank by default. The local variables that
the arguments haven’t been specified are also used as blank variables. The #0 of the system is also blank
variable. In the calculation, blank variables can be used as 0; generally, #0 can’t be used as expression L-value
for calculation. However, if the programmers edit falsely, the program won’t report error and this measure
doesn’t have any effect.
➢ Calculation formula
#1=#0; ……………#1=<Null>
#2=#0+1; ……………#2=1
#3=1+#0; ……………#3=1
#4=#0*10;……………#4=0
#5=#0+#0;……………#5=0
Please note that the <blank> in the
calculation formula indicates 0.
<blank> + <blank> = 0;
<blank> + <fixed number> = <fixed
number>
<fixed number> + <blank> = <fixed
number>
#1=<blank>
G0X#1Y1000; ……………………equals to G0X0Y1000
G0X#1+10Y1000;…………………equals to G0X10Y1000
➢ Conditional
➢ In conditional determination, blank variable is equivalent to 0 in logic conditional operator.