FANUC Series 30i/300i/300is-MODEL A. Machining Center System. User's manual - page 177

 

  Index      Manuals     FANUC Series 30i/300i/300is-MODEL A. Machining Center System. User's manual (B-63944EN/03)

 

Search            copyright infringement  

 

 

 

 

 

 

 

 

 

 

 

Content      ..     175      176      177      178     ..

 

 

 

FANUC Series 30i/300i/300is-MODEL A. Machining Center System. User's manual - page 177

 

 

10.EDITING PROGRAMS

 OPERATION 

B-63944EN/03

 

 

- 1372 - 

 - Undo function 

The function for undoing operations performed in program editing 
undoes operations sequentially, starting with the one performed last. It 
can undo only those operations that update character strings. 
A single undo operation undoes a single input or deletion operation. 
If data updated with replace operations is to be undone, a single undo 
operation undoes the replacement of a single item. 
Operations of the cursor keys 

 and the page 

keys 

  cannot be undone with this function because they do 

not update character strings. 
 

  - Example of the undo function

 

1  Suppose that the following character string is present before 

modifications: 

  N110AX[#AXIS3]=100.0; 

Edit key

 

  is pressed five times. 

  X[#AXIS3]=100.0; 

Soft key [UNDO] is pressed five times.  Then, the original 
character string is restored as follows: 

  AX[#AXIS3]=100.0; 
  0AX[#AXIS3]=100.0; 
  10AX[#AXIS3]=100.0; 
  110AX[#AXIS3]=100.0; 
  N110AX[#AXIS3]=100.0;

 

 

  - Input modes for editing 

Input modes for program editing include insert mode and overwrite 
mode. 
To switch between the input modes, press soft key [INPUT MODE]. 
Initially, insert mode is set. 
 

 Insert 

mode 

 

In insert mode, an entered character is inserted between the 
current cursor position and the preceding character position. 

  1234567890 
 

When the cursor is placed at 6, and X is entered, the following 
results: 

  12345X67890 
 

 Overwrite 

mode 

 

In overwrite mode, the character at the cursor position is replaced 
by an entered character. 

  1234567890 
 

When the cursor is placed at 6, and X is entered, the following 
results: 

  12345X7890 
 

B-63944EN/03

 OPERATION 

10.EDITING PROGRAMS

 

 

- 1373 - 

  - Restrictions on editing 

O numbers and file names cannot be edited. 
EOR (%) cannot be deleted. 
 

  - Line editing and automatic saving 

When a line is edited, the line is displayed in the update color, blue 
(which can be changed with color settings), to indicate that the line 
has been edited. When the line is displayed in the update color, the 
edit has not yet been saved. 
When the cursor is moved to a line preceding or succeeding the edited 
line, the edit is automatically saved, and the line display changes from 
the update color to the normal color. 
Alternatively, pressing soft key [SAVE] enables the edit to be saved. 
 

  - Function for automatically saving an edited line vs. function for undoing editing 

operations (UNDO function) 

When an edit operation is undone, the line is displayed in the update 
color, and the edit is not saved any longer. If the cursor moves to 
another line when the operation is undone, the edit is automatically 
saved. 
 

10.EDITING PROGRAMS

 OPERATION 

B-63944EN/03

 

 

- 1374 - 

10.10.1 

Available Keys 

 
The available keys are as follows: 
 

 - Cursor keys 

Cursor keys 

, and 

  move the cursor. 

 

 - Editing key 

 

Deletes the character at the cursor position. 
 

 - Editing key 

 

Deletes the character immediately before the cursor position. 
When the cursor is at the beginning of a line, the character at the end 
of the previous line is deleted. 
 

 - Editing key 

 

Causes a line change.

 

 

  - Page change keys 

Pages are changed using page key 

 or 

 

Page key 

  moves to the next page. 

When page key 

  is pressed on the last page, the cursor moves to 

the last character position of the last line (the % position).

 

Page key 

  moves to the previous page. 

When page key 

  is pressed on the first page, the cursor moves 

to the first character position of the first line. 
 

 - Character keys 

Characters are entered using these keys. 
 

10.10.2 

Input Mode 

 
Input modes include insert mode and overwrite mode. 
 

Changing input mode 

 
To switch between the input modes, use soft key [INPUT MODE]. 
Pressing soft key [INPUT MODE] causes insert mode and overwrite 
mode to be selected alternately. 
The current mode is indicated in the lower right part of the editing 
screen. 
 

B-63944EN/03

 OPERATION 

10.EDITING PROGRAMS

 

 

- 1375 - 

10.10.3 

Line Number Display 

 
This function is used to display a program with line numbers.  
Pressing soft key [LINE NUMBER] displays a program with line 
numbers. Pressing soft key [LINE NUMBER] again causes the line 
numbers to disappear. 
 

10.10.4 

Search 

 
A program is searched for a character string. 
 

Search 

Procedure 

Press soft key [SEARCH]. 

2  A search character string input area is displayed. Enter the 

character string to search for. To cancel the search, press soft key 
[CANCEL]. 

Upward search operation 

 

Pressing soft key [UP] causes the program to be searched in the 
upward direction (toward the top), starting at the current cursor 
position. 

 

When a search character string is found, the cursor moves to the 
character string. 

 

Pressing soft key [UP] again causes the program to be searched 
for the next candidate. 

Downward search operation 

 

Pressing soft key [DOWN] causes the program to be searched in 
the downward direction (toward the bottom), starting at the 
current cursor position. 

 

When a search character string is found, the cursor moves to the 
character string. 

 

Pressing soft key [DOWN] again causes the program to be 
searched for the next candidate. 

 

10.EDITING PROGRAMS

 OPERATION 

B-63944EN/03

 

 

- 1376 - 

10.10.5 

Replacement 

 

A character string in a program is replaced with a specified character 
string. 

 

Replacement 

Procedure 

Press soft key [REPLCE]. 

2  Search and replacement character string input areas are displayed. 

Enter a search character string (character string to be replaced) 
and a replacement character string (character string to replace the 
former character string). 

 

To move between the search character string input area and the 
replacement character string input area, use the cursor keys 

 and 

 

If a search character string is input, but no replacement character 
string is input, the former character string will be deleted. 

 

To cancel the replacement, press soft key [CANCEL]. 

3 Replacement 

operations 

 

Replacement operations include an operation for searching for a 
search character string and an operation for actually replacing it. 

 

To perform an operation for searching for a search string, use 
soft key [

 SEARCH] or [

 SEARCH]. 

 

To perform an operation for actually replacing it, use [REPLCE] 
or [REPLCE ALL]. 

 

Soft key [

 SEARCH] 

   

Searches the program in the upward direction (toward the 

top), starting at the current cursor position. 

   

When a search character string is found, the cursor moves to 

the character string. 

   

Pressing soft key [

 SEARCH] again causes the program to 

be searched for the next candidate. 

 

Soft key [

 SEARCH] 

   

Searches the program in the downward direction (toward the 

bottom), starting at the current cursor position. 

   

When a search character string is found, the cursor moves to 

the character string. 

   

Pressing soft key [

 SEARCH] again causes the program to 

be searched for the next candidate. 

 

Soft key [REPLCE] 

   

Replaces the character string found with a search operation 

with a replacement character string. 

 

Soft key [REPLCE ALL] 

   

Replace all instances of the search character string in the 

program text with the replacement character string. 

   

Pressing this soft key causes message "ARE YOU SURE 

YOU WANT TO EXECUTE?" to appear and also soft key 
[YES] and soft key [NO] to appear. Pressing soft key [YES] 
causes all replacements to be executed. 

   

Pressing soft key [NO] cancels the replacement operation, 

without executing the replacements. 

B-63944EN/03

 OPERATION 

10.EDITING PROGRAMS

 

 

- 1377 - 

 

10.10.6 

Reversing Edit Operations (Undo Function) 

 
Edit operations performed on a program can be undone sequentially 
starting with the one performed last. 
 

Reversing edit operations (undo function) 

Procedure 

Pressing soft key [UNDO] once undoes a single operation. 

 

When there are no longer any operation to be undone, pressing 
this soft key has no effect. 

 

10.10.7 

Copy 

 
A selected character string can be copied to the clipboard. 
 

Copying 

Procedure 

Move the cursor to the beginning of the character string to select. 

Press soft key [SELECT]. 

Using the cursor keys 

  and the page keys 

, move the cursor to the end of the character string to 

select. 

 

At this time, the background of the selected character string is 
displayed in the selection color (cursor color). 

Press soft key [COPY] to copy the selected character string to the 
clipboard. 

 

To cancel the copying, press soft key [CANCEL]. 

 

10.10.8 

Cut 

 
A selected character string can be deleted. 
When deleted, the character string is copied to the clipboard. 
 

Cut 

Procedure 

Move the cursor to the beginning of the character string to select. 

Press soft key [SELECT]. 

Using the cursor keys 

  and the page keys 

, move the cursor to the end of the character string to 

select. 

 

At this time, the background of the selected character string is 
displayed in the selection color (cursor color). 

Press soft key [CUT] to delete the selected character string. 

 

To cancel the deletion, pres soft key [CANCEL]. 

10.EDITING PROGRAMS

 OPERATION 

B-63944EN/03

 

 

- 1378 - 

 

10.10.9 

Paste 

 
The character string stored in the clipboard can be inserted at the 
current cursor position. 
After pasted, the character string remains stored in the clipboard, so 
that the character string can be pasted as many times as necessary. 
 

Paste 

Procedure 

Move the cursor to the position at which you want to paste a 
character string. 

Press the soft key [PASTE]. 

 
 

10.10.10 

Saving 

 
Moving the cursor to a line preceding or succeeding the edited line 
causes the edit to be automatically saved, but it is possible to save the 
edit by pressing soft key [SAVE], if necessary. For a program 
consisting of only a single line, in particular, it is necessary to press 
soft key [SAVE] to save the edit. 
 

Saving 

Procedure 

Press the soft key [SAVE]. 

 

10.10.11 

Creation 

 
A new program can be created. 
 

Creation 

Procedure 

Press soft key [NEW PROGRM]. 

A program name input area appears. 

Enter the name of a program to be created. 

Press the soft key [EXECUTE].  This creates a new program 
and displays the editing screen. 

 

To cancel the creation of a new program, press soft key 
[CANCEL]. 

 

B-63944EN/03

 OPERATION 

10.EDITING PROGRAMS

 

 

- 1379 - 

10.10.12 

Line Search 

 
The cursor can be moved to a specified line. 
The cursor can be moved to a line with a specified line number, to the 
first line of the program, and to the last line of the program. 
 

Line search 

Procedure 

Movement to a line with a specified line number 

Press soft key [LINE SEARCH]. 

A line number input area appears. 

Enter a line number.    The first line is regarded as having a line 
number of 1. 

Press soft key [LINE NUMBER], and the cursor moves to the 
specified line. 

 
Movement to the first line 

Press soft key [LINE SEARCH]. 

Press soft key [TOP], and the cursor moves to the first line of the 
program. 

 
Movement to the last line 

Press soft key [LINE SEARCH]. 

Press soft key [BOTTOM], and the cursor moves to the last line 
of the program. 

 

 

 

 

 

 

 

 

Content      ..     175      176      177      178     ..