EasyManuals Logo

Adtech CNC9650 Programming Manual

Default Icon
161 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #107 background imageLoading...
Page #107 background image
ADTECH9 Series CNC Programming Manual
Between G661 and G67, every instruction segment will call the specified macro subroutine
unconditionally.
Format:
G661 P_ L_ <argument>;
P_
:subroutine
L_
: repeat times
Details:
In G661 mode, all the read codes except O, N and G codes of every segment will be used as arguments.
In G661 instruction segment, all the bit addresses are considered as the arguments of G661.
For example
G661P0002N100G01G90X100.Y200.F400R1000,
G01 instruction isn’t executed, and all bit addresses are considered as the arguments of G661.
4.4
Variable
Function and purpose:
Variable is a useful function of macro. Four types of variables are available, which are local variable, global
non-retentive variable, global retentive variable and system variable. These variables make the writing of
macro very convenient and universal.
Using multiple variables:
Macro calls variable, and the variable can be specified by multiple or expression. As below:
#110
#1020
#2030
#5#[#[#1]];
According to #1=10,#[#[#1]]=#[#10]
According to #10=20,#[#10]=#20
Therefore, #5=#20 or #5=30
#10=5
#10=20
#20=30
#5=1000
#[#[#1]]=#5
According to #1=10,#[#[#1]]=#[#10]
According to #10=20,#[#10]=#20
Therefore, #20=#5 or #20=1000
Example of specifying multiple variables:

Table of Contents

Other manuals for Adtech CNC9650

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Adtech CNC9650 and is the answer not in the manual?

Adtech CNC9650 Specifications

General IconGeneral
BrandAdtech
ModelCNC9650
CategoryControl Systems
LanguageEnglish

Related product manuals