Adtech ADTECH9 Series Programming Manual page 108

Table of Contents

Advertisement

#10=5
#5=100
#6=##10
➢ Replace the number with expression:
#10=5
#[#10+1]=1000
#[#10-1]=-1000
#[10*3]=100
#[#10/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
➢ Variable reference
#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.
ADTECH9 Series CNC Programming Manual
##10 and #[#10]have the same
meaning
#6=1000
#4=-1000
#15=100
#2=-100
Please note that the <blank> in the
calculation formula indicates 0.
<blank> + <blank> = 0;
<blank> + <fixed number> = <fixed
number>
<fixed number> + <blank> = <fixed
number>

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the ADTECH9 Series and is the answer not in the manual?

This manual is also suitable for:

Cnc seriesCnc9640Cnc9650Cnc9960Cnc9810Cnc9810e

Table of Contents