ADTECH9 Series CNC Programming Manual
(1)
Specifying
main
program and argument
#i=#j
Definition/replacement
(FIX)
#22=FIX[-14/3]
#22 -4.000
(20)Carry
the
decimal
point
(FUP)
#21=FUP[14/3]
#22=FUP[-14/3.]
#21 5.000
#22 -5.000
(21)Natural logarithm
(LN)
#101=LN[5]
#102=LN[0.5]
#103=LN[-5]
#101 1.609
#102 -0.693
Erro
(22)Exponent
(EXP)
#104=EXP[2]
#105=EXP[1]
#106=EXP[-2]
#104 7.389
#105 2.718
#106 0.135
Calculation precision
Macro variable contains seven significant figures, and thus the precision may be reduced if single
calculation value is too large or too small (9999999.000~0.0000001), and repeated calculation will cause
cumulative error. Therefore, the macro variable should be in a reasonable range; in addition, while calculating
trigonometric and exponential functions, too large value is also a reason of doubled error due to calculation
error of the functions.
4.7
Control instruction
Conditional instruction
Format:
The types of [conditional expression] are shown in the table below:
#i EQ #j
= when #iequals to #j
#i NE #j
≠ when #idoesn’t equal to#j
#i GT #j
>when #i is larger than #j
#i LT #j
<when #iis smaller than #j
#i GE #j
≥ when #iis larger than or equals to #j
#i LE #j
≤ when #iis smaller than or equals to #j
Details:
When the condition is established, the program will go to execute line n; if it isn’t established, it will
IF [conditional expression] GOTO n; (n is the order No. in the program)
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 ...