ADTECH9 Series CNC Programming Manual
4.
Category B macro function
4.1
Variable instruction
Function:
All the address values in the program are not described with fixed value, and are replaced with variables; when
the program is running, variables are referenced to improve the versatility of the program. This function is
called as variable instruction.
Format:
#
△△△
=○○○○○○○○○ or #
△△△
=[ expression ]
Details:
(1)
Representation of variables:
(a) # m ......
M=0~9 constituted value
#100
(b) # [f]……
f has the following meanings
Value m
123
Variable
#543
Expression
#110+#119
- (symbol) expression
-#120
Function expression
SIN [#110]
Note:
Standard operating symbols are +, -, ×, /.
When the function expression is ignored, the function can’t be executed.
The variable No. can’t be negative, e.g. # -100 is illegal.
Below are false variable representations:
False
Correct
#6/2
→
#[6/2]
#
-[
#1
]
→
#[
-
#1]
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 ...