ADTECH9 Series CNC Programming Manual
#543
=-
[[[[[#120]/2
+
15.]*3-#100]/ #520+#125+#128]* #130+#132
The variable values must be 0~±9999999 (seven significant figures); if exceeding the maximum value,
the calculation error will be enlarged.
4.2
Macro program call
Using macro calling function
Function
Same as subroutine calling, the macro program can transfer variables to subroutine during calling, which
is different from M98 subroutine calling.
The following G codes are instructions to call macro program:
Table 12.1 Macro Program Calling Instruction
G code
Function
G65
Macro program calling
G66
Macro program calling mode A (call motion instruction)
G661
Macro program calling mode B (call every segment)
G67
Cancel macro program calling mode
Details:
The macro programs specified after G66 (or G661) instruction is specified, before G67 (cancel)
instruction, and after the segments with motion instruction are executed (or every segment is executed).
G66 (or G661) and G67 instructions must be used in pair in the same program.
4.3
Macro program calling command
Function and purpose:
Macro program calling instructions include simply callings that are called by calling instruction only,
calling modes (A&B) of single segment fixed calling.
(1) Simply calling
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 ...