EasyManua.ls Logo

Haas 96-8000 - Local Variables; Macro Variables

Haas 96-8000
269 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
Loading...
93
96-8000 Rev AC
May 2010
Programming
The following letters cannot be used to pass parameters to a macro subroutine:
G, L, N, O or P.
Macro Variables
There are three categories of macro variables: system, global, and local.
Macro constants are oating point values placed in a macro expression. They
can be combined with addresses A-Z or they can stand alone when used within
an expression. Examples of constants are .0001, 5.3 or -10.
Local Variables
Local variables range between #1 and #33. A set of local variables is available
at all times. When a call to a subroutine with a G65 command is executed, lo-
cal variables are saved and a new set is available for use. This is called “nest-
ing” of local variables. During a G65 call, all new local variables are cleared
to undened values and any local variables that have corresponding address
variables in the G65 line are set to G65 line values. Below is a table of the local
variables along with the address variable arguments that change them:
Variable:
Address:
Alternate:
1
A
2
B
3
C
4
I
5
J
6
K
7
D
I
8
E
J
9
F
K
10
I
11
H
J
Variable:
Address:
Alternate:
12
K
13
M
I
14
J
15
K
16
I
17
Q
J
18
R
K
10
S
I
20
T
J
21
U
K
22
V
I
Variable:
Address:
Alternate:
23
W
J
24
X
K
25
Y
I
26
Z
J
27
K
28
I
29
J
30
K
31
I
32
J
33
K
Variables 10, 12, 14-16 and 27-33 do not have corresponding address argu-
ments. They can be set if a sufcient number of I, J and K arguments are used
as indicated above in the section about arguments. Once in the macro subrou-
tine, local variables can be read and modied by referencing variable numbers
1-33.
When the L argument is used to do multiple repetitions of a macro subroutine,
the arguments are set only on the rst repetition. This means that if local vari-
ables 1-33 are modied in the rst repetition, then the next repetition will have
access only to the modied values. Local values are retained from repetition to
repetition when the L address is greater than 1.
Calling a subroutine via an M97 or M98 does not nest the local variables. Any
local variables referenced in a subroutine called by an M98 are the same vari-
ables and values that existed prior to the M97 or M98 call.

Table of Contents

Related product manuals