
B–61803E–1/10
3. EXECUTION MACRO
PROGRAMMING
31
When G code system A is used in the lathe system (T/TT), whether the
axis addresses are called with an absolute or incremental command are
informed to variable 33.
Variable No. Address
#1 to #26 Usual argument address (Argument designation 1)
#27 Specified axis address (1st to 8th)
#28 Specified G code
#29 Specified G code
#30 Specified G code
#31 Specified G code
#32 Specified G code
#33 Vacant for absolute address
1.0 for incremental address
If the following are specified when a 4th-axis address is B, for example:
G91G28B1.234567X123.4567;
The settings are passed to variables as follows:
123.456 to variable #24
1.234 to variable #27
28.0 to variable #28
91.0 to variable #29
Other variables: Null
The addresses transferred as arguments specified in a block used to call
a macro make changes modal information of the CNC when calling the
macro. In the above example, the CNC model of absolute/incremental
command changes to G91 (incremental command) when a macro is
called.
In the lathe system, for G code system A, and when a 2nd-axis address is
Z (absolute) or W (incremental), the settings are passed to variables as
follows:
Variable #27 = 100.0, variable #33 = <null> for Z100.;
Variable #27 = 100.0, variable #33 = 1.0 for W100.;
NOTE
The addresses those can be used and the range of the
values specified to those addresses are the same as those
allowed to each CNC model concerned.