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

 

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

 

Search            copyright infringement  

 

 

 

 

 

 

 

 

 

 

 

Content      ..     171      172      173      174     ..

 

 

 

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

 

 

8.DATA INPUT/OUTPUT

 OPERATION 

B-63944EN/03

 

 

- 1340 - 

Limitation 
  - Screens whose hard copies cannot be made 

Hard copies of the BOOT screen, the IPL screen, and the system alarm 
screen cannot be made.

 

 

  - Foreground I/O devices 

During DNC operation, for example, screen data cannot be output 
while a foreground I/O device is in use. 
 

  - Canceling the hard copy function 

If the hard copy function is canceled before a hard copy is completed, 
an incomplete bit map file of data that has been output is created. 
 

B-63944EN/03

 OPERATION 

9.CREATING PROGRAMS

 

 

- 1341 - 

CREATING PROGRAMS 

 
This chapter explains how to create programs by MDI of the CNC. 
This chapter also explains automatic insertion of sequence numbers 
and how to create programs in TEACH IN mode. 
 

 

  Creation/registration 

Program creation 

Editing 

Management 

Execution 

Output 

Creating programs using MDI panel ..................... See III-9.1 
Automatic insertion of sequence numbers ............ See III-9.2 
Creating programs in TEACH IN mode................. See III-9.3

 

Program 

registration 

Registration from external input......................... See III-8.1.1

 

 

 

9.CREATING PROGRAMS

 OPERATION 

B-63944EN/03

 

 

- 1342 - 

9.1 

CREATING PROGRAMS USING THE MDI PANEL 

 
Programs can be created in the EDIT mode using the program editing 
functions described in III-10. 
 

Procedure for Creating Programs Using the MDI Panel 

 

Enter the EDIT mode. 

2 Press 

the 

 key. 

Press address key 

 

  and enter the program number. 

4 Press 

the 

 key. 

Create a program using the program editing functions described 
in III-10. 

 

Explanation 
  - Comments in a program 

Comments can be written in a program using the control in/out codes. 
Example)  O0001 (TEST PROGRAM) ;   
 

 

M08 (COOLANT ON) ; 

 When 

the   key is pressed after the control-out code "(", 

comments, and control-in code ")" have been typed, the typed 
comments are registered. 

 When 

the   key is pressed midway through comments, to 

enter  the rest of comments later, the data typed before the 

  key is pressed may not be correctly registered (not entered, 

modified, or lost) because the data is subject to an entry check 
which is performed in normal editing. 

 

Control-out code "(" or Control-in code ")" cannot be registered 
by itself. 

 

B-63944EN/03

 OPERATION 

9.CREATING PROGRAMS

 

 

- 1343 - 

9.2 

AUTOMATIC INSERTION OF SEQUENCE NUMBERS 

 
Sequence numbers can be automatically inserted in each block when a 
program is created using the MDI keys in the EDIT mode. 
Set the increment for sequence numbers in parameter No. 3216. 
 

Procedure for automatic insertion of sequence numbers 

Procedure 

1  Enter 1 in response to the prompt for "SEQUENCE NO." in 

setting data. (see III-12.3.1). 

Enter the EDIT mode. 

3 Press 

key

 to display the program screen. 

Search for or register the number of a program to be edited and 
move the cursor to the EOB (;) of the block after which 
automatic insertion of sequence numbers is started. 

 

When a program number is registered and an EOB (;) is entered 
with the 

 key, sequence numbers are automatically 

inserted starting with 0. Change the initial value, if required, 
according to step 10, then skip to step 7. 

Press address key 

  and enter the initial value of N. 

6 Press 

 key. 

Enter each word of a block. 

8 Press 

 

 key. 

9.CREATING PROGRAMS

 OPERATION 

B-63944EN/03

 

 

- 1344 - 

9 Press 

 key. The EOB is registered in memory and 

sequence numbers are automatically inserted.  For example, if 
the initial value of N is 10 and the parameter for the increment is 
set to 2, N12 inserted and displayed below the line where a new 
block is specified. 

 

 

10  In the example above, if N12 is not necessary in the next block, 

pressing the 

  key after N12 is displayed deletes N12. 

 

If wishing to insert N100, not N12, into the next block, type 
N100 immediately after N12 is displayed, and press 

.  

This causes N100 to be registered and the initial value to be 
changed to 100. 
 

B-63944EN/03

 OPERATION 

9.CREATING PROGRAMS

 

 

- 1345 - 

9.3 

CREATING PROGRAMS IN TEACH IN MODE 
(PLAYBACK) 

 
In the TEACH IN JOG or TEACH IN HANDLE mode, you can create 
a program while inserting the coordinate of the current position along 
each axis in the absolute coordinate system when the tool is moved by 
manual operation into the program. 
You can input the words other than axis names in the same way as in 
the EDIT mode. 
 

Program screen in the TEACH IN JOG mode 

Displayed items 

In the TEACH IN JOG or TEACH IN HANDLE MODE, the 
following program screen is displayed. 
On the left of the screen, the coordinates of the current position in the 
absolute and relative coordinate systems are displayed; on the right of 
the screen, the contents of a program are displayed.    You can create a 
program while checking the current position by manual operation. 
 

 

Fig. 9.3 (a)    Program screen in the TEACH IN JOG mode 

 

9.CREATING PROGRAMS

 OPERATION 

B-63944EN/03

 

 

- 1346 - 

Inputting the coordinates of the current position 

You can use the following procedure to insert the coordinate of the 
current position along each axis in the absolute coordinate system: 
 
1  Select the TEACH IN JOG mode or TEACH IN HANDLE 

mode. 

2 Press 

 key to display the program screen.  Search for or 

register the number of a program to be edited and move the 
cursor to the position where the current position along each axis 
is to be inserted. 

Move the tool to the desired position with jog or handle. 

Key in the axis name of an axis along which you want to insert 
the coordinate of the current position. 

5 Press 

the 

 key.  Then, the coordinate of the current 

position along the specified axis is inserted in the program. 

(Example) X10.521  Coordinate of the current position 

X10521  Data inserted in the program 

 

Example 

 

O1234 ; 
G92 X10000 Y0 Z10000 ; 
G00 G90 X3025 Y23723 ; 
G01 Z-325 F300 ; 
M02 ; 

X

Z

P0

(10.0, 0, 10.0)

P1

 

P2

 

(

3.025, 23.723, 10.0)

(3.025, 23.723, -0.325)

 

Select the TEACH IN HANDLE mode. 

Make positioning at position P0 by the manual pulse generator. 

Select the program screen. 

Enter program number O1234 as follows: 

 

This operation input program number O1234 in memory. 
Next, press the following keys: 

 

 

An EOB (;) is entered after program number O1234.   

5  Enter the P0 machine position for data of the first block as 

follows: 

G

9

2

X

Y

 

 

Z

 

 

 

This operation registers G92X10000Y0Z10000; in program. 

Position the tool at P1 with the manual pulse generator. 

O

1

2

3

4

B-63944EN/03

 OPERATION 

9.CREATING PROGRAMS

 

 

- 1347 - 

Enter the P1 machine position for data of the second block as 
follows: 

 

G

0

0

G

9

0

 

 

X

Y

 

 

 

This operation input G00G90X3025Z23723; in program. 

Position the tool at P2 with the manual pulse generator. 

9  Enter the P2 machine position for data of the third block as 

follows: 

 

G

0

1

Z

F

3

0

0

 

 

 

 

 

This operation input G01Z -325F300; in program. 

10  Input M02; in program as follows: 

 

M

0

2

 

 

 

This completes the registration of the sample program. 

 

Explanation 
  - Registering a position with compensation 

When an axis name and a numeric value are keyed in and the 

 

key is pressed, the value keyed in is added to the absolute coordinate 
of the current position and the coordinate is inserted.    This operation 
allows insertion of a corrected value for the absolute coordinate 
position. 
When an extended axis name is used and the name ends with a 
numeric value, insert an equal sign (=) between the axis name and 
numeric value. 
 

  - Registering commands other than position commands 

Commands to be entered before and after a position command must be 
entered before and after the machine position is registered, by using 
the same operation as program editing in EDIT mode. 

 

 - Calculator-type input 

When the calculator-type input format is disabled (bit 0 (DPI) of 
parameter No. 3401 is set to 0), the coordinate of the current position 
is inserted into the program in least input increments.  When the 
calculator-type input format is enabled (the bit is set to 1), the 
coordinate is inserted with a decimal point. 
 
(Example) 
 

Coordinate of the current position 

 

X10.521 

 

At this time, the X-axis coordinate is inserted into the program as 
follows: 

 

When the calculator-type input format is disabled  X10521 

 

When the calculator-type input format is enabled 

X10.521 

 

 

 

 

 

 

 

Content      ..     171      172      173      174     ..