# FANUC Series 16/18/160/180-Model C for Lathe Operator Manual

PROGRAMMING
B–62754EN/01
22. PATTERN DATA INPUT
FUNCTION
397
1
C
2
C
3
C
4
C
5
C
6
C
7
C
8
C
9
C
10
C
11
C
12
C
1
,C
2,
,
C
12
:
Characters in the menu title (12 characters)
Macro instruction
G65 H92 P
n
Q
q
R
r
I
i
J
j
K
k
;
H92 : Specifies the pattern name
p : Assume a
1
and a
2
to be the codes of characters C
1
and C
2
. Then,
p=a
1
10
3
+a
2
See 17.3 for character codes.
q : Assume a
3
and a
4
to be the codes of characters C
3
and C
4
. Then,
q=a
3
10
3
+a
4
r : Assume a
5
and a
6
to be the codes of characters C
5
and C
6
. Then,
r=a
5
10
3
+a
6
i : Assume a
7
and a
8
to be the codes of characters C
7
and C
8.
Then,
i=a
7
10
3
+a
8
j : Assume a
9
and a
10
to be the codes of characters C
9
and C
10
. Then,
j=a
9
10
3
+a
10
k : Assume a
11
and a
12
to be the codes of characters C
11
and C
12
. Then,
k=a
11
10
3
+
a
12
Example)
Assume that the pattern data title is “BOLT HOLE.”The macro
instruction is given as follows:
G65 H92 P066079
Q076084 R032072 I079076 J069032;
BO LT H OL E
Variable name : C
1
C
2
C
3
C
4
C
5
C
6
C
7
C
8
C
9
C
10
C
1,
C
2,
,
C
10
:
Characters in the variable name (10 characters)
Macro instruction
G65 H93 P
n
Q
q
R
r
I
i
J
j
K
k
;
H93 : Specifies the variable name
n : Specifies the menu No. of the variable name
n=1 to 10
q : Assume a
1
and a
2
to be the codes of characters C
1
and C
2
. Then,
q=a
1
10
3
+a
2
r : Assume a
3
and a
4
to be the codes of characters C
3
and C
4
. Then,
r=a
3
10
3
+a
4
i : Assume a
5
and a
6
to be the codes of characters C
5
and C
6
. Then,
i=a
5
10
3
+a
6
j : Assume a
7
and a
8
to be the codes of characters C
7
and C
8
. Then,
j=a
7
10
3
+a
8
k : Assume a
9
and a
10
to be the codes of characters C
9
and C
10
. Then,
k=a
9
10
3
a+a
10
Example)
Assume that the variable name of the variable No. 503 is “RADIUS.”
The macro instruction is given as follows:
G65 H93 P503 Q082065
R068073 I085083 ;
RA DI US
NOTE
Variable names can be assigned to 32 common variables
#500 to #531, which are not cleared when the power is
turned off.
D Macro instruction
specifying the pattern
data title