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

PROGRAMMING
22. PATTERN DATA INPUT
FUNCTION
B–62754EN/01
394
Pattern 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 pattern name (10 characters)
Macro instruction
G65 H91 P
n
Q
q
R
r
I
i
J
j
K
k
;
H91: Specifies the menu title
n : Specifies the menu No. of the pattern 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
10
Example)
If the pattern name of menu No. 1 is “BOLT HOLE” then the macro
instruction is as follows.
G65 H91 P1 Q066079 R076084 I032072 J079076 K069032 ;
BO LT H OL E
To select a pattern from the pattern menu screen, enter the corresponding
pattern No. The following is an example.
1
INPUT
The selected pattern No. is assigned to system variable #5900. The
custom macro of the selected pattern can be started by starting a fixed
program (external program No. search) with an external signal then
referring to the system variable #5900 in the program.
NOTE
If each characters of P, Q, R, I, J, and K are not specified in
a macro instruction, two spaces are assigned to each
omitted character.
D Macro instruction
describing the pattern
name
D Pattern No. selection

Leave a Reply

Your email address will not be published. Required fields are marked *