ADTECH9 Series CNC Programming Manual
#10=5
#5=100
#6=##10
##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>
➢
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.
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 ...