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

B–62754EN/01
9. EDITING PROGRAMS
OPERATION
605
Replace one or more specified words.
Replacement can be applied to all occurrences or just one occurrence of
specified words or addresses in the program.
Procedure for change of words or addresses
1 Perform steps 1 to 5 in subsection 9.6.1.
2 Press soft key
[CHANGE].
3 Enter the word or address to be replaced.
4 Press soft key [BEFORE].
5 Enter the new word or address.
6 Press soft key
[AFTER].
7 Press soft key
[EXEC] to replace all the specified words or addresses
after the cursor.
Press soft key
[1–EXEC] to search for and replace the first occurrence
of the specified word or address after the cursor.
Press soft key
[SKIP] to only search for the first occurrence of the
specified word or address after the cursor.
[CHANGE]
X
1
0 0
[BEFORE]
Z
2
0 0
[AFTER] [EXEC]
[CHANGE]
X
1
0 0 Z
2
0 0
[BEFORE]
X 3
0
[AFTER] [EXEC]
[CHANGE]
I
F
[BEFORE]
W
H
I
L
E
[AFTE
R] [EXEC]
[CHANGE]
X
[BEFOR]
,
C
1
0
[AFTER] [EXEC]
The following custom macro words are replaceable:
IF, WHILE, GOTO, END, DO, BPRNT, DPRNT, POPEN, PCLOS
The abbreviations of custom macro words can be specified.
When abbreviations are used, however, the screen displays the
abbreviations as they are key input, even after soft key
[BEFORE] and
[AFTER] are pressed.
9.6.6
Replacement of Words
and Addresses
EXEC
BEFORE
CHANGE
AFTER
1–EXEC
SKIP
EXAMPLES
D Replace X100 with Z200
D Replace X100Z200 with
X30
D Replace IF with WHILE
D Replace X with ,C10
Explanation
D Replacing custom
macros

Leave a Reply

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