Acu-Rite CNC 3500i Router User Manual


 
396 11 G-Code Edit, Help, & Advanced Features
11.4 Advanced Programming
User Variables
Certain variables are set aside for the programmer to use. These may
be useful when programming macros. You can read from or write to
these variables. They are divided into four categories:
Local variables: #1 to #99:These variable numbers can be used only
within the body of a sub-program (or macro). The 3500i generates
an error message if you program these variables in the main
program. Values do not hold from one sub-program to another. In
this way, the same variables can be used in separate sub-programs,
with different values.
Common (global) variables: #100 to #219. (Read/Write): These
variables can be used anywhere in the program or sub-program and
their value remains.
Read only variables: #220 to #249: These variables can only be set
in the main program. Once set, the variables can be used in
sub-programs or macros as "read only" variables.
Static (global) variables: #260 to #279. (Read/Write): These variables
can be used anywhere in the program or sub-program and their
value remains across shutdowns or software resets.
OEM and machine tool builders should use #100-#150
and #260-#269 for any custom macros. End users should
use #151-#220 and #270-#279 for your custom macros.
This avoids conflicting usage of the global variables.