PROGRAMMING
16. PATTERN DATA INPUT
FUNCTION
B–64124EN/01
368
Menu title : C
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
p
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
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
For codes corresponding to these characters, refer to the
Table 16.3 (a) in II–16.3.
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
p
Q
q
R
r
I
i
J
j
K
k
;
H93 : Specifies the variable name
p : Specifies the No. of the variable
p=100 to 149 (199), 500 to 531 (999)
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 ;
RADI US
For codes corresponding to these characters, refer to the Table 16.3 (a)
in II–16.3.
Macro instruction
specifying the pattern
data title
(the menu title)
D Macro instruction
specifying the variable
name