Replacing Character Strings - Mitsubishi Electric C80 Series Instruction Manual

Hide thumbs Also See for C80 Series:
Table of Contents

Advertisement

C80 Series Instruction Manual
3 Inputting a Machining Program and Defining Variables

3.6.8 Replacing Character Strings

A character string in a program can be searched for and replaced.
The following three methods can be used.
The applicable character string is searched for and replaced one by one. (To search for the next character string, press
the [INPUT] key.)
All applicable character strings in the program are replaced in a batch. (Designate "/G" when setting.)
The program character strings from the current cursor position to the last line are to be replaced in a batch. (Designate "/
E" when setting.)
Operation method
(1)
Press the menu [String replace].
(2)
Designate the search character string and the re-
place character string.
(Example) Search character string: G02
Replace character string: In the case of G03
G02/G03 [INPUT] (*1)
(3)
Press the [Y] or [INPUT] key.
Press the [N] key not to replace.
(4)
Press the [Y] or [INPUT] key again if continuing the
search/replace.
(5)
To end search/replace, press the [String replace].
(*1) When batch replacing for all the character strings in the program, add "/G" to the above setting.
Search character string/replace character string/G (Example) G02/G03/G
During batch replacement, after replacing all character strings to the end of the program, the process ends while show-
ing the last character string replaced. Note that the replacement mode is held, and the character string remains in the
input area.
Note
(1) If the program character strings from the current cursor position to the last line are to be replaced in a batch, add "/E"
to the above setting.
Search character string/replace character string/E (Example) G02/G03/E
(2) With the multi-program display type, the replacement on the side which is not being edited is not performed.
(3) "Executing" is displayed in flickering during string replace.
IB-1501453-C
The character string is searched downward from the
character after the current cursor position.
If a character string is discovered, the cursor moves to
the start of that character string, and the operation mes-
sage "Replace? (Y/N)" appears.
If any character string is not found in the program, the
cursor does not move.
The character string is replaced, and a search is per-
formed for the next applicable character string.
(If a batch replacement is performed, a search is not
made as the replace operation has been completed.)
The operation message "Designated character string
not found" appears when the end of the program is
reached.
"Editing" appears if replace is performed.
The same operation as above is performed.
The menu highlight returns to normal, and the character
string in the input area disappears.
The replacement mode is held until the menu key is
pressed.
(The character string remains in the setting area.)
70

Advertisement

Table of Contents
loading

Table of Contents