ADTECH9 Series CNC Programming Manual
4.8
Notes of using macro
Macro program uses variables to calculate and combine the NC program described by the logic, making the
program more versatile. However, since the logical calculation is flexible, it may lead to some hidden errors; to
avoid logic errors, it is necessary to note the mode when writing macros.
(1) Variable initialization; all the variables used in the program should be initialized at the beginning of the
program; the variables for transfer also require an intermediate variable, in order to avoid error due to
parameters modified by the program during multiple processing.
(2) In main program, subroutine or macro, please use local variables as much as possible; all the local variables
will be cleared during program calling, in order to keep a clean environment for programming. Even if the
reference is false, it will be located easily.
(3) Same as subroutine, macro can’t be used in tool radius compensation; therefore, please cancel the
compensation before calling.
4.9
Macro variable user parameters system configuration
➢
Macro variables contain [User] menu, which is used to rename the macro variable addresses related to
process parameters, in order to make the operation more intuitional; the specific method is to configure
the system with csv file;
➢
CSV is an Excel format. Please create a configuration datasheet in the following format in Excel, save as
CSV file, name the file as SYSTABLE.CSV, and save it in directory ADT. Select [Parameter >
Management > Import CSV system configuration], and the system will automatically check whether the
file exists; if yes, the system menus will be configured with this file.
➢
The configuration of CSV macro variable user parameters follows:
Содержание CNC9640
Страница 1: ...ADTECH9 Series CNC Programming Manual ...
Страница 21: ...ADTECH9 Series CNC Programming Manual Workpiece Coordinate System Diagram ...
Страница 44: ...ADTECH9 Series CNC Programming Manual 2 Occasions that inner corner rotates ...
Страница 45: ...ADTECH9 Series CNC Programming Manual ...
Страница 57: ...ADTECH9 Series CNC Programming Manual G18 plane G19 plane 4 If I J is specified in the segment without motion ...
Страница 62: ...ADTECH9 Series CNC Programming Manual Manual insertion ...
Страница 65: ...ADTECH9 Series CNC Programming Manual Tool radius compensation start and axis Z cut in action ...
Страница 117: ...ADTECH9 Series CNC Programming Manual ...
Страница 118: ...ADTECH9 Series CNC Programming Manual ...
Страница 142: ...ADTECH9 Series CNC Programming Manual ...
Страница 143: ...ADTECH9 Series CNC Programming Manual ...
Страница 144: ...ADTECH9 Series CNC Programming Manual ...