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

 

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

 

Search            copyright infringement  

 

 

 

 

 

 

 

 

 

 

 

Content      ..     174      175      176      177     ..

 

 

 

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

 

 

10.EDITING PROGRAMS

 OPERATION 

B-63944EN/03

 

 

- 1364 - 

10.7 

EDITING OF CUSTOM MACROS 

 
Unlike ordinary programs, custom macro programs are modified, 
inserted, or deleted based on editing units. 
Custom macro words can be entered in abbreviated form. 
Comments can be entered in a program. 
Refer to the III-9.1 for the comments of a program. 
 

Explanation 
 - Editing unit 

When editing a custom macro already entered, the user can move the 
cursor to each editing unit that starts with any of the following 
characters and symbols: 
(a) Address 
(b)  # located at the start of the left side of a substitution statement 
(c)  /, (,=, and ; 
(d)  First character of IF, WHILE, GOTO, END, DO, POPEN, 

BPRNT, DPRNT and PCLOS 

On the screen, a blank is placed before each of the above characters 
and symbols.   
Example) Head positions where the cursor is placed 
 

N001 X-#100 ; 

 

#1 =123 ; 

 

N002 /2 X[12/#3] ; 

 

N003 X-SQRT[#3/3*[#4+1]] ; 

 

N004 X-#2 Z#1 ; 

 

N005 #5 =1+2-#10 ; 

 

IF[#1NE0] GOTO10 ; 

 

WHILE[#2LE5] DO1 ; 

 

#[200+#2] =#2*10 ; 

 

#2 =#2+1 ; 

 END1 

 

  - Abbreviations of custom macro word 

When a custom macro word is altered or inserted, the first two 
characters or more can replace the entire word. 
Namely, 
WHILE 

 WH 

GOTO 

 GO    XOR 

 XO 

AND 

 AN 

SIN 

 SI   

ASIN 

 AS 

COS 

 CO   

ACOS 

 AC 

TAN 

 TA 

ATAN 

 AT 

SQRT 

 SQ 

ABS 

 AB 

BCD 

 BC 

BIN 

 BI 

FIX 

 FI 

FUP 

 FU 

ROUND 

 RO  END 

 EN 

POPEN 

 PO  BPRNT 

 BP 

DPRNT 

 DP 

PCLOS 

 PC  EXP 

 EX 

THEN 

 TH 

Example) Keying in 
 

WH [AB [#2 ] LE RO [#3 ] ] has the same effect as 

 

WHILE    [ABS    [#2 ] LE ROUND [#3 ] ] 

 

The program is also displayed in this way. 

 

B-63944EN/03

 OPERATION 

10.EDITING PROGRAMS

 

 

- 1365 - 

10.8 

CURSOR MOVEMENT LIMITATIONS ON PROGRAM 
EDITING 

 
If a program is to be edited while it is stopped or halted, limitations 
are imposed so that already executed blocks and buffered blocks 
cannot be edited. Modifiable blocks are those at and below the cursor 
position at the time the system switches to the edit mode (EDIT). In 
the remainder of this manual, the area of editable blocks is called the 
edit-enabled area, while the area of executed blocks and buffered 
blocks is called the edit-disabled area. 
These limitations are applied when the automatic operation status 
signal <F0000.7> is ON and when a single block execution of MDI 
operation is edited, and are also applied to TEACH IN HNDL or 
TEACH IN JOG mode when the playback option is enabled. 
This function is enabled when bit 3 (FPD) of parameter No. 11308 is 
1. 
 

Explanation 
  - States where cursor movement limitations are imposed 

 

EDIT mode while automatic operation is stopped or halted 

 

MDI mode and when a single block is set 

 

TEACH IN HNDL or TEACH IN JOG mode (only when the 
playback function is enabled) 

 

 - Cursor movement 

Operations that cause the cursor to move to blocks above the edit 
mode start position are ignored. 

 

 

 

 

 PAGE 

UP 

 CAN 

(

character editing

)

 

 

  - Search and replacement 

Operations that cause the cursor to move to the edit-disabled area are 
disabled. 

  Top line search: Results in a search of the top line of the 

edit-enabled block. 

  Specified-line search (character editing): Made through the 

edit-enabled area. 
If, however, an attempt is made to search through the 
edit-disabled area, warning "PROGRAM IN OPERATION" is 
issued, and the operation is disabled. 

 

Upward search: Made through the edit-enabled area. 
If attempted at the beginning of the edit-enabled block, this 
operation is ignored. 

  Upward search (replacement): Made through the edit-enabled 

area. 
If attempted at the beginning of the edit-enabled block, this 
operation is ignored. 

10.EDITING PROGRAMS

 OPERATION 

B-63944EN/03

 

 

- 1366 - 

 

Upward candidate search: Made through the edit-enabled area. 
If attempted at the beginning of the edit-enabled block, this 
operation is ignored. 

  Character string + 

 (search): Typing the character string to 

search for and pressing the 

 key searches for the character string. 

This search is made through the edit-enabled area. If attempted at 
the beginning of the edit-enabled block, this operation is ignored. 

 

Replace all: This operation is disabled. 

 

 - Reset 

The program execution status is canceled, and the cursor movement 
limitations are also canceled. 
 

 - Program search 

If an attempt is made to search for the program currently used for 
operation, warning "PROGRAM IN OPERATION" is issued, and the 
operation is disabled. 
 

 - Time insertion 

When the machining time stamp function is enabled, soft key 
[INSERT TIME] does not appear in the state in which the cursor 
movement limitations are imposed. 
 

B-63944EN/03

 OPERATION 

10.EDITING PROGRAMS

 

 

- 1367 - 

10.9 

PASSWORD FUNCTION 

 
The password function locks bit 4 (NE9) of parameter No. 3202, 
which protects programs with program Nos. O9000 to O9999 and 
programs and folders having the edit/display disable attribute, 
according to the settings in two parameters, PASSWORD (parameter 
No. 3210) and KEYWD (parameter No. 3211). In the locked state, 
parameter NE9 cannot be set to 0.  In this case, the protection of 
programs with program Nos. O9000 to O9999 and programs and 
folders having the edit/display disable attribute cannot be released 
unless a correct keyword is set. 
A locked state means that the value set in the parameter PASSWD 
differs from the value set in the parameter KEYWD. The values set in 
these parameters are not displayed. The locked state is released when 
the value already set in the parameter PASSWD is also set in 
parameter KEYWD. When 0 is displayed in parameter PASSWD, 
parameter PASSWD is not set. 
 

Procedure for locking and unlocking 

 

Locking 

Set the MDI mode. 

Enable parameter writing (III-12.3.1). At this time, alarm PS0100 
is issued on the CNC. 

Set parameter No. 3210 (PASSWD).  At this time, the locked 
state is set. 

Disable parameter writing. 

5 Press 

the 

  key to release the alarm state. 

 

Unlocking 

Set the MDI mode. 

2  Enable parameter writing (III-12.3.1). At this time, alarm 

SW0100 is issued on the CNC. 

In parameter No. 3211 (KEYWD), set the same value as set in 
parameter No. 3210 (PASSWD) for locking.    At this time, the 
locked state is released. 

Set bit 4 (NE9) of parameter No.3202 to 0. 

Disable parameter writing. 

6 Press 

the 

  key to release the alarm state. 

7  Subprograms from program Nos. 9000 to 9999 can now be 

edited. 

 

10.EDITING PROGRAMS

 OPERATION 

B-63944EN/03

 

 

- 1368 - 

Explanation 
  - Setting parameter PASSWD 

The locked state is set when a value is set in the parameter PASSWD. 
However, note that parameter PASSWD can be set only when the 
locked state is not set (when PASSWD = 0, or PASSWD = KEYWD). 
If an attempt is made to set parameter PASSWD in other cases, a 
warning is given to indicate that writing is disabled. When the locked 
state is set (when PASSWD 

 0 and PASSWD 

 KEYWD), parameter 

NE9 is automatically set to 1. If an attempt is made to set NE9 to 0, a 
warning is given to indicate that writing is disabled. 
 

  - Changing parameter PASSWD 

Parameter PASSWD can be changed when the locked state is released 
(when PASSWD = 0, or PASSWD = KEYWD).    After step 3 in the 
procedure for unlocking, a new value can be set in the parameter 
PASSWD. From that time on, this new value must be set in parameter 
KEYWD to release the locked state. 
 

  - Setting 0 in parameter PASSWD 

When 0 is set in the parameter PASSWD, the number 0 is displayed, 
and the password function is disabled.    In other words, the password 
function can be disabled by either not setting parameter PASSWD at 
all, or by setting 0 in parameter PASSWD after step 3 of the procedure 
for unlocking.  To ensure that the locked state is not entered, care 
must be taken not to set a value other than 0 in parameter PASSWD. 
 

 - Re-locking 

After the locked state has been released, it can be set again by setting a 
different value in parameter PASSWD, or by turning the power to the 
NC off then on again to reset parameter KEYWD. 
 

 CAUTION 

1  Once the locked state is set, parameter NE9 

cannot be set to 0 and parameter PASSWD cannot 
be changed until the locked state is released or the 
memory all-clear operation is performed. Special 
care must be taken in setting parameter PASSWD. 

2  The edit/display disable attribute cannot be set 

unless parameter PASSWD is set. 

3  In the locked state, programs with the edit/display 

disable attribute are treated as follows: 

  The presence of the programs is hidden.    This 

means that these programs are not displayed on 
screens such as the program folder screen.   
These programs cannot be edited either. 

  These programs cannot be selected as a main 

program.    They can be called as subprograms. 

B-63944EN/03

 OPERATION 

10.EDITING PROGRAMS

 

 

- 1369 - 

 CAUTION 

4  In the unlocked state, programs with the 

edit/display disable attribute are treated in the 
same manner as ordinary programs. 

5  The programs in a folder having the edit/display 

disable attribute are also treated as described in 
Caution 3 and 4 above. 

6  In the locked state, the folders in a folder having 

the edit/display disable attribute are treated as 
follows: 

  The presence of the folders is hidden.    This 

means that these folders are not displayed on 
screens such as the program folder screen. 

7  In the unlocked state, the folders in a folder having 

the edit/display disable attribute are treated in the 
same manner as ordinary folders. 

 

10.EDITING PROGRAMS

 OPERATION 

B-63944EN/03

 

 

- 1370 - 

10.10 

EDITING PROGRAM CHARACTERS 

 
This section describes how to edit programs registered in the CNC. 
Editing operations include character insertion, modification, deletion, 
and replacement. 
While program word editing is performed by recognizing program 
words, program character editing is performed on a 
character-by-character basis. 

 

Fig. 10.10 (a)    Character editing 

 

Explanation 
 - Edit unit 

Character editing is performed on a character-by-character basis.  
Select between character editing and word editing according to what 
to edit. 
 

 - Line 

A range delimited by an EOB is specified as a line. 
In character editing, edited data is saved on a line-by-line basis. 
When one program line contains many characters, it extends over 
multiple lines on the screen, but these lines are counted as one 
program line. 
 

B-63944EN/03

 OPERATION 

10.EDITING PROGRAMS

 

 

- 1371 - 

 - Line splitting 

When the cursor is on a line during line editing, pressing edit key 

  causes the line to be split into two, one before the cursor and 

the other after the cursor. 
Pressing edit key 

  immediately after the line is split causes the 

lines to return to a single one. 
Alternatively, moving the cursor to the EOB of the first line resulting 
from the split and pressing edit key 

  causes the lines to return to 

a single one. 
 

 - Line merging 

If the EOB of a line is deleted, the line is combined with the next line 
to form a single line. 
 

  - Maximum number of characters in one line 

One line can consist of up to 140 characters. 
 

 - Line number 

The number of lines are counted starting with the starting line of a 
program, which is counted as the first line.    Even when a line wraps 
around to the next and subsequent lines, these lines are counted as a 
single line. 
 

 - Clipboard 

The clipboard is an area to store characters when a cut or copy 
operation is performed.  The area has a capacity for holding 
approximately 4000 characters. 
The characters that are cut or copied by one cut or copy operation are 
stored.    The most recently stored character string can be used by the 
paste function. 
The information stored by the paste operation is kept unchanged until 
another cut or copy operation is performed. 
The characters stored in the clipboard are maintained until the power 
to the CNC is turned off unless the clipboard is updated again. 
 

 

 

 

 

 

 

 

Content      ..     174      175      176      177     ..