EasyManua.ls Logo

Haas VF Series - MACRO ARGUMENTS

Haas VF Series
564 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...
36396-8000
MACROS
June 1999
MACRO A RGUMENTS
The arguments in a G65 statement are a means of sending values to and setting the local variables of a called
macro subroutine.
In Example 2 above, the arguments X and Y are passed to the macro subroutine local variables. Local variable
#24 is associated with X and is set to 0.5. Similarly, Local variable #25 is associated with Y and is set to 0.25.
The following two tables indicate the mapping of the alphabetic address variables to the numeric variables used
in a macro subroutine.
Alphabetic Addressing
:sserddA
:elbairaV
A
1
B
2
C
3
D
7
E
8
F
9
G
-
H
11
I
4
J
5
K
6
L
-
M
31
:sserddA
:elbairaV
N
-
O
-
P
-
Q
71
R
81
S
91
T
02
U
12
V
22
W
32
X
42
Y
52
Z
62
Alternate Alphabetic Addressing
:sserddA
:elbairaV
A
1
B
2
C
3
I
4
J
5
K
6
I
7
J
8
K
9
I
01
J
11
:sserddA
:elbairaV
K
21
I
31
J
41
K
51
I
61
J
71
K
81
I
91
J
02
K
12
I
22
:sserddA
:elbairaV
J
32
K
42
I
52
J
62
K
72
I
82
J
92
K
03
I
13
J
23
K
33
Arguments accept any floating point value to four decimal places. If you are in metric, the control will assume
thousandths (.000). In Example 3 below, local variable #7 will receive .0004.
If a decimal is not included in an argument value, such as:
G65 P9910 A1 B2 C3
The values are passed to macro subroutines according to the following table:
Integer Argument Passing (no decimal point)
:sserddA
:elbairaV
A
100.
B
100.
C
100.
D
.1
E
.1
F
.1
G
-
H
.1
I
1000.
J
1000.
K
1000.
L
.1
M
.1
:sserddA
:elbairaV
N
-
O
-
P
-
Q
1000.
R
1000.
S
.1
T
.1
U
1000.
V
1000.
W
1000.
X
1000.
Y
1000.
Z
1000.

Table of Contents

Other manuals for Haas VF Series

Related product manuals