When the tool touches a limit switch along an axis during automatic operation, the tool is decelerated and stopped along all axes and an overtravel alarm is displayed.
In manual operation, the tool is decelerated and stopped only along the axis for which the tool has touched a limit switch. The tool still moves along the other axes.
Press the reset button to reset the alarm after moving the tool to the safety direction by manual operation. For details on operation, refer to the operator’s manual of the machine tool builder.
If an overtravel alarm is issued, either of the following alarm messages appears:
Alarm No. Message Description
506 Overtravel: +n The tool has exceeded the hardware–specified overtravel limit along the positive nth axis (n: 1 to 4).
507 Overtravel: –n The tool has exceeded the hardware–specified overtravel limit along the negative nth axis (n: 1 to 4).
6.2 OVERTRAVEL
Explanation
� Overtravel during automatic operation
� Overtravel during manual operation
� Releasing overtravel
Alarm
OPERATION6. SAFETY FUNCTIONS B–64124EN/01
524
Three areas which the tool cannot enter can be specified with stored stroke check 1, stored stroke check 2, and stored stroke check 3.
ÇÇÇÇÇÇÇÇÇÇÇÇÇÇ ÇÇÇÇÇÇÇÇÇÇÇÇÇÇ ÇÇÇÇÇÇÇÇÇÇÇÇÇÇ ÇÇÇÇÇÇÇÇÇÇÇÇÇÇ ÇÇÇÇÇÇÇÇÇÇÇÇÇÇ ÇÇÇÇÇÇÇÇÇÇÇÇÇÇ
(I,J,K)
(I,J,K)
(X,Y,Z)
ÇÇ : Forbidden area for the tool
ÇÇÇÇÇÇÇÇ ÇÇÇÇÇÇÇÇ ÇÇÇÇÇÇÇÇ ÇÇÇÇÇÇÇÇ
(X,Y,Z)
ÇÇÇÇÇÇÇÇ ÇÇÇÇÇÇÇÇ ÇÇÇÇÇÇÇÇ
(1)Forbidden area is inside.
(2)Forbidden area is outside
ÇÇÇÇÇÇÇÇÇ ÇÇÇÇÇÇÇÇÇ ÇÇÇÇÇÇÇÇÇ ÇÇÇÇÇÇÇÇÇ ÇÇÇÇÇÇÇ ÇÇÇÇÇÇÇÇÇ
Ç
Fig. 6.3 (a) Stroke check
When the tool exceeds a stored stroke limit, an alarm is displayed and the tool is decelerated and stopped. When the tool enters a forbidden area and an alarm is generated, the tool can be moved in the reverse direction from which the tool came.
Parameters (Nos. 1320, 1321 or Nos. 1326, 1327) set boundary. Outside the area of the set limits is a forbidden area. The machine tool builder usually sets this area as the maximum stroke.
Parameters (Nos. 1322, 1323) or commands set these boundaries. Inside or outside the area of the limit can be set as the forbidden area. Parameter OUT (No. 1300#0) selects either inside or outside as the forbidden area.
In case of program command a G22 command forbids the tool to enter the forbidden area, and a G23 command permits the tool to enter the forbidden area. Each of G22; and G23; should be commanded independently of another commands in a block. The command below creates or changes the forbidden area:
6.3 STORED STROKE CHECK
Explanation
� Stored stroke check 1
� Stored stroke check 2 (G22, G23)
OPERATIONB–64124EN/01 6. SAFETY FUNCTIONS
525
(I,J,K)
ÇÇÇÇÇÇÇÇ ÇÇÇÇÇÇÇÇ ÇÇÇÇÇÇÇÇ ÇÇÇÇÇÇÇÇ
(X,Y,Z)
X>I, Y>J, Z>K X–I >ζ (In least command increment) Y–J >ζ (In least command increment) Z–K >ζ ((In least command increment)
G 22X_Y_Z_I_J_K_;
ζ (mm)= 7500
F
F=Rapid traverse speed (mm/min)
Fig. 6.3 (b) Creating or changing the forbidden area using a program
When setting the area by parameters, points A and B in the figure below must be set.
B (I,J,K)
ÇÇÇÇÇÇÇÇ ÇÇÇÇÇÇÇÇ ÇÇÇÇÇÇÇÇ ÇÇÇÇÇÇÇÇ
A (X,Y,Z)
X>I, Y>J, Z>K X–I >ζ (In least command increment) Y–J >ζ (In least command increment) Z–K >ζ ((In least command increment)
ζ (mm)= 7500
F
F=Rapid traverse speed (mm/min)
Fig. 6.3 (c) Creating or changing the forbidden area using a parameters
In stored stroke check 2, even if you mistake the order of the coordinate value of the two points, a rectangular, with the two points being the apexes, will be set as the area. When you set the forbidden area through parameters (Nos. 1322, 1323), the data should be specified by the distance from the machine coordinate system in the least command increment. (Output increment) If it is set by a G22 command, specify the data by the distance from the machine coordinate system in the least input increment (Input increment.) The programmed data are then converted into the numerical values in the least command increment, and the values are set as the parameters.
Confirm the checking position (the top of the tool or the tool chuck) before programming the forbidden area. If point A (The top of the tool) is checked in Fig. 6.3 (d) , the distance “a” should be set as the data for the stored stroke limit function. If point B (The tool chuck) is checked, the distance “b” must be set. When checking the tool tip (like point A), and if the tool length varies for each tool, setting the forbidden area for the longest tool requires no re–setting and results in safe operation.
� Checkpoint for the forbidden area
OPERATION6. SAFETY FUNCTIONS B–64124EN/01
526
ÇÇÇÇÇÇÇÇÇÇÇÇÇÇ ÇÇÇÇÇÇÇÇÇÇÇÇÇÇ
A
B
a
b
�)� &��' '� �� )�
��� �� �� ������ ��
&��' '� �� (�
���� ��( %��F
Fig. 6.3 (d) Setting the forbidden area
Area can be set in piles.
ÇÇÇÇÇÇÇÇÇÇ ÇÇÇÇÇÇÇÇÇÇ ÇÇÇÇÇÇÇÇÇÇ ÇÇÇÇÇÇÇÇÇÇ ÇÇÇÇÇÇÇÇÇÇ ÇÇÇÇÇÇÇÇÇÇ
ÇÇÇÇÇÇ ÇÇÇÇÇÇ
Fig. 6.3 (e) Setting the forbidden area over lapping
Unnecessary limits should be set beyond the machine stroke.
If the maximum rapid traverse rate is F (mm/min), the maximum overrun amount, L (mm), of the stored stroke limit is obtained from the following expression:
L (mm) = F/7500 The tool enters the specified inhibited area by up to L (mm). Bit 7 (BFA) of parameter No. 1300 can be used to stop the tool when it reaches a point L mm short of the specified area. In this case, the tool will not enter the inhibited area.
Each limit becomes effective after the power is turned on and manual reference position return or automatic reference position return by G28 has been performed. After the power is turned on, if the reference position is in the forbidden area of each limit, an alarm is generated immediately. (Only in G22 mode for stored stroke limit 2).
If the enters a forbidden area and an alarm is generated, the tool can be moved only in the backward direction. To cancel the alarm, move the tool backward until it is outside the forbidden area and reset the system. When the alarm is canceled, the tool can be moved both backward and forward.
� Forbidden area over lapping
� Overrun amount of stored stroke limit
� Effective time for a forbidden area
� Releasing the alarms
OPERATIONB–64124EN/01 6. SAFETY FUNCTIONS
527
When G23 is switched to G22 in the forbidden area, the following results.
(1)When the forbidden area is inside, an alarm is informed in the next move.
(2)When the forbidden area is outside, an alarm is informed immediately.
Parameter BFA (bit 7 of No. 1300) selects whether an alarm is displayed immediately before the tool enters the forbidden area or immediately after the tool has entered the forbidden area.
Alarm Number Message Contents
500 OVER TRAVEL: +n Exceeded the n–th axis (1–4) + side stored stroke limit I.
501 OVER TRAVEL: –n Exceeded the n–th axis (1–4) � side stored stroke limit I.
502 OVER TRAVEL: +n Exceeded the n–th axis (1–4) + side stored stroke limit II.
503 OVER TRAVEL: –n Exceeded the n–th axis (1–4) � side stored stroke limit II.
� Change from G23 to G22 in a forbidden area
� Timing for displaying an alarm
Alarms
OPERATION6. SAFETY FUNCTIONS B–64124EN/01
528
During automatic operation, before the movement specified by a given block is started, whether the tool enters the inhibited area defined by stored stroke limit 1 or 2 is checked by determining the position of the end point from the current position of the machine and a specified amount of travel. If the tool is found to enter the inhibited area defined by a stored stroke limit, the tool is stopped immediately upon the start of movement for that block, and an alarm is displayed.
WARNING Whether the coordinates of the end point, reached as a result of traversing the distance specified in each block, are in a inhibited area is checked. In this case, the path followed by a move command is not checked. However, if the tool enters the inhibited area defined by stored stroke limit 1 or 2, an alarm is issued. (See the examples below.)
Example 1)
a
Inhibited area defined by stored stroke limit 1 or 2
Start point End point
The tool is stopped at point a according to stored stroke limit 1 or 2.
Immediately upon movement commencing from the start point, the tool is stopped to enable a stroke limit check to be performed before movement.
Inhibited area defined by stored stroke limit 1 or 2
End point
6.4 STROKE LIMIT CHECK PRIOR TO PERFORMING MOVEMENT
OPERATIONB–64124EN/01 6. SAFETY FUNCTIONS
529
Example 2)
Start point
End point
The tool is stopped at point a according to stored stroke limit 1 or 2.
Immediately upon movement commencing from the start point, the tool is stopped to enable a stroke limit check to be performed before movement.
a
Inhibited area defined by stored stroke limit 2
Inhibited area defined by stored stroke limit 2 End point
When a stroke limit check prior to movement is performed, whether to check the movement performed by a G31 (skip) block and G37 (automatic tool length measurement) block can be determined using NPC (bit 2 of parameter No. 1301).
If machine lock is applied at the start of movement, no stroke limit check made before movement is performed.
When stored stroke limit 2 is disabled (G23 mode), no check is made to determine whether the tool enters the inhibited area defined by stored stroke limit 2.
When a program is restarted, an alarm is issued if the restart position is within a inhibited area.
When the execution of a block is restarted after manual intervention following a feed hold stop, no alarm is issued even if the end point following a manual intervention is within a inhibited area.
If a block consisting of multiple operations (such as a canned cycle) is executed, an alarm is issued at the start point of any operation whose end point falls within a inhibited area.
Explanations
Limitations
� Machine lock
� G23
� Program restart
� Manual intervention following a feed hold stop
� A block consisting of multiple operations
OPERATION6. SAFETY FUNCTIONS B–64124EN/01
530
In cylindrical interpolation mode, no check is made.
When the angulalr axis control option is selected, no check is made.

No check is performed while drawing is being performed as part of dynamic graphic display (only drawing (no machining) is being performed).
No check is made for a movement based on PMC axis control.
Number Message Contents
510 OVER TRAVEL : +n
The pre–movement stroke limit check re- veals that the block end point enters the prohibited area for the positive stroke limit along the n axis. Correct the program.
511 OVER TRAVEL : –n
The pre–movement stroke limit check re- veals that the block end point enters the prohibited area for the negative stroke limit along the n axis. Correct the program.
� Cyrindrical interpolation mode
� Angular axis control
� Simple synchronous control
� Drawing
� PMC axis control
Alarm
OPERATIONB–64124EN/01 7. ALARM AND SELF–DIAGNOSIS
FUNCTIONS
531
7 ALARM AND SELF–DIAGNOSIS FUNCTIONS When an alarm occurs, the corresponding alarm screen appears to indicate the cause of the alarm. The causes of alarms are classified by alarm numbers. Up to 50 previous alarms can be stored and displayed on the screen (alarm history display). The system may sometimes seem to be at a halt, although no alarm is displayed. In this case, the system may be performing some processing. The state of the system can be checked using the self–diagnostic function.
OPERATION 7. ALARM AND SELF–DIAGNOSIS FUNCTIONS B–64124EN/01
532
When an alarm occurs, the alarm screen appears.
ARALM
ALARM MESSAGE
MDI * * * * * * * * * * 18 : 52 : 05
0000 00000
100 PARAMETER WRITE ENABLE 510 OVER TR1AVEL :+X 417 SERVO ALARM :X AXIS DGTL PARAM 417 SERVO ALARM :X AXIS DGTL PARAM
MSG HISTRY
S 0 T0000 ALM
In some cases, the alarm screen does not appear, but an ALM is displayed at the bottom of the screen.
INPUT+INPUTOFF:0ON:1NO.SRH
ALM
PARAMETER (AXIS/UNIT) O1000 N00010
MEM * * * * * * * * * * 08 : 41 : 27 S 0 T0000
1001 INM 0 0 0 0 0 0 0 0
1002 XIK DLZ JAX 0 0 0 0 0 0 0 0
1003 0 0 0 0 0 0 0 0
1004 IPR ISC ISA 0 0 0 0 0 0 0 0
>_
In this case, display the alarm screen as follows:
1. Press the function key MESSAGE .
2. Press the chapter selection soft key [ALARM].
7.1 ALARM DISPLAY
Explanations
� Alarm screen
� Another method for alarm displays
OPERATIONB–64124EN/01 7. ALARM AND SELF–DIAGNOSIS
FUNCTIONS
533
Alarm numbers and messages indicate the cause of an alarm. To recover from an alarm, eliminate the cause and press the reset key.
The error codes are classified as follows: No. 000 to 255 : P/S alarm (Program errors) (*) No. 300 to 349 : Absolute pulse coder (APC) alarms No. 350 to 399 : Serial pulse coder (SPC) alarms No. 400 to 499 : Servo alarms (1/2) No. 500 to 599 : Overtravel alarms No. 600 to 699 : Servo alarms (2/2) No. 700 to 739 : Overheat alarms No. 740 to 748 : Rigid tapping alarms No. 749 to 799 : Spindle alarms No. 900 to 999 : System alarms No. 5000 to later : P/S alarm (Program errors)
* For an alarm (No. 000 to 255) that occurs in association with background operation, the indication “xxxBP/S alarm” is provided (where xxx is an alarm number). Only a BP/S alarm is provided for No. 140. See the alarm list in the appendix G for details of the alarms.
� Reset of the alarm
� Alarm numbers
OPERATION 7. ALARM AND SELF–DIAGNOSIS FUNCTIONS B–64124EN/01
534
Up to 50 of the most recent CNC alarms are stored and displayed on the screen. Display the alarm history as follows:
Procedure for Alarm History Display
1 Press the function key MESSAGE .
2 Press the chapter selection soft key [HISTRY]. The alarm history appears. The following information items are displayed. (1) The date the alarm was issued (2) Alarm No. (3) Alarm message (some contains no message) (4) Page No.
3 Change the page by the 1–page change key.
4 To delete the recorded information, press the softkey [(OPRT)] then the [DELETE] key.
ALARM HISTORY O0100 N00001
MEM * * * * * * * * * * 19 : 47 : 45
(1)97.02.14 16:43:48 (2)010 (3)MPROPER G–CODE
97.02.13 8:22:21 506 OVER TRAVEL : +1 97.02.12 20:15:43 417 SERVO ALARM : X AXIS DGTL PARAM
ALARM MSG HISTRY (OPRT)
PAGE=1 (4)
7.2 ALARM HISTORY DISPLAY
Procedure
OPERATIONB–64124EN/01 7. ALARM AND SELF–DIAGNOSIS
FUNCTIONS
535
The system may sometimes seem to be at a halt, although no alarm has occurred. In this case, the system may be performing some processing. The state of the system can be checked by displaying the self–diagnostic screen.
Procedure for Diagnois
1 Press the function key SYSTEM .
2 Press the chapter select key [DGNOS].
3 The diagnostic screen has more than 1 pages. Select the screen by the following operation. (1) Change the page by the 1–page change key. (2) Method by soft key – Key input the number of the diagnostic data to be displayed. – Press [N SRCH].
DGNOS
DIAGNOSTIC (GENERAL) O0000 N0000
EDIT * * * * * * * * * * 14 : 51 : 55
000 WAITING FOR FIN SIGNAL :0 001 MOTION :0 002 DWELL :0 003 IN–POSITION CHECK :0 004 FEEDRATE OVERRIDE 0% :0 005 INTERLOCK/START–LOCK :0 006 SPINDLE SPEED ARRIVAL CHECK :0
PARAM PMC SYSTEM (OPRT)
>_
7.3 CHECKING BY SELF–DIAGNOSTIC SCREEN
*��������
OPERATION 7. ALARM AND SELF–DIAGNOSIS FUNCTIONS B–64124EN/01
536
Diagnostic numbers 000 to 015 indicate states when a command is being specified but appears as if it were not being executed. The table below lists the internal states when 1 is displayed at the right end of each line on the screen.
Table 7.3 (a) Alarm displays when a command is specified but appears as if it were not being executed
No. Display Internal status when 1 is displayed
000 WAITING FOR FIN SIGNAL M, S. T function being executed
001 MOTION Move command in automatic operation being executed
002 DWELL Dwell being executed
003 IN–POSITION CHECK In–position check being executed
004 FEEDRATE OVERRIDE 0% Cutting feed override 0%
005 INTERLOCK/START–LOCK Interlock ON
006 SPINDLE SPEED ARRIVAL CHECK Waiting for spindle speed arrival signal to turn on
010 PUNCHING Data being output via reader puncher interface
011 READING Data being input via reader puncher interface
012 WAITING FOR (UN) CLAMP Waiting for index table clamp/unclamp before B axis in- dex table indexing start/after B axis index table indexing end to complete
013 JOG FEEDRATE OVERRIDE 0% Jog override 0%
014 WAITING FOR RESET.ESP.RRW.OFF Emergency stop, external reset, reset & rewind, or MDI panel reset key on
015 EXTERNAL PROGRAM NUMBER SEARCH
External program number searching
Table 7.3 (b) Alarm displays when an automatic operation is stopped or paused.
No.  It is set in the fol- lowing cases. (1) External reset turned on. (2) Reset & rewind turned on. (3) Emergency stop turned on. (4) Feed hold turned on. (5) The MDI panel reset key turned on. (6) Switched to the manual mode(JOG/HANDLE/INC). (7) Other alarm occurred.
(There is also alarm which is not set.)
Explanations
OPERATIONB–64124EN/01 7. ALARM AND SELF–DIAGNOSIS
FUNCTIONS
537
The table below shows the signals and states which are enabled when each diagnostic data item is 1. Each combination of the values of the diagnostic data indicates a unique state.
020
021
022
023
024
025
1
1
1
1
1
1
1
1
1
1 1 1
1
1
0
0
0
0
0
0
0
0
0 0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
Emergency stop signal input
External reset signal input
MDI reset button turned on
Reset & rewind input
Servo alarm generation
Changed to another mode or feed hold
Single block stop
CUT SPEED UP/DOWN
RESET BUTTON ON
RESET AND REWIND ON
EMERGENCY STOP ON
RESET ON
STOP MOTION OR DWELL
Diagnostic numbers 030 and 031 indicate TH alarm states.
No. Display Meaning of data
030 CHARACTER NUMBER TH DATA The position of the character which caused TH alarm is displayed by the number of characters from the begin- ning of the block at TH alarm
031 TH DATA Read code of character which caused TH alarm
OPERATION8. DATA INPUT/OUTPUT B–64124EN/01
538
8 DATA INPUT/OUTPUT NC data is transferred between the NC and external input/output devices such as the Handy File. The memory card interface located to the left of the display can be used to read information on a memory card in the CNC or write it to the card. The following types of data can be entered and output :
1.Program 2.Offset data 3.Parameter 4.Pitch error compensation data 5.Custom macro common variable
Before an input/output device can be used, the input/output related parameters must be set. For how to set parameters, see III–2 “OPERATIONAL DEVICES”.
FANUC Handy File
�;>��
' ������
�;���;�
' ������
RS–232–C or RS–422 interface (Punch panel etc...)
��+��F ���%
' ������
!$E �� �� :MD %�3'��"
��+��F ���%
OPERATIONB–64124EN/01 8. DATA INPUT/OUTPUT
539
Of the external input/output devices, the FANUC Handy File use floppy disks as their input/output medium. In this manual, these input/output medium is generally referred to as a floppy. Unlike an NC tape, a floppy allows the user to freely choose from several types of data stored on one medium on a file–by–file basis. Input/output is possible with data extending over more than one floppy disk.
The unit of data, which is input/output between the floppy and the CNC by one input/output operation (pressing the VREADW or VPUNCHW key), is called a HfileI. When inputting CNC programs from, or outputting them to the floppy, for example, one or all programs within the CNC memory are handled as one file. Files are assigned automatically file numbers 1,2,3,4 and so on, with the lead file as 1.
File 1 File n BlankFile 2 File 3
When one file has been entered over two floppies, LEDs on the adaptor flash alternately on completion of data input/output between the first floppy and the CNC, prompting floppy replacement. In this case, take the first floppy out of the adaptor and insert a second floppy in its place. Then, data input/output will continue automatically. Floppy replacement is prompted when the second floppy and later is required during file search–out, data input/output between the CNC and the floppy, or file deletion. Floppy 1
File 1 File 2 File 3 File (k–1) File k
Floppy 2
Continuation of file k File (k+1) File n Blank
Since floppy replacement is processed by the input/output device, no special operation is required. The CNC will interrupt data input/output operation until the next floppy is inserted into the adaptor. When reset operation is applied to the CNC during a request for floppy replacement, the CNC is not reset at once, but reset after the floppy has been replaced.
8.1 FILES
Explanations
� $� � �� ����
� ��B���� ��� �����!
���� �� ���
OPERATION8. DATA INPUT/OUTPUT B–64124EN/01
540
The floppy is provided with the write protect switch. Set the switch to the write enable state. Then, start output operation.
(2) Write–enabled (Reading, writing, and deletion are possible.)
Write protect switch of a cassette
(1) Write–protected (Only reading is possible.)
Fig. 8.1 Protect swtich
Once written in the cassette or card, data can subsequently be read out by correspondence between the data contents and file numbers. This correspondence cannot be verified, unless the data contents and file numbers are output to the CNC and displayed. The data contents can be displayed with display function for directory of floppy disk (See Section III–8.8). To display the contents,write the file numbers and the contents on the memo column which is the back of floppy.
(Entry example on MEMO) File 1 NC parameters File 2 Offset data File 3 NC program O0100
⋅ ⋅ ⋅ ⋅ ⋅ ⋅
File (n–1) NC program O0500 File n NC program O0600
� *������ �3����
� $�����" � �
OPERATIONB–64124EN/01 8. DATA INPUT/OUTPUT
541
When the program is input from the floppy, the file to be input first must be searched. For this purpose, proceed as follows:
File 1
File searching of the file n
File n BlankFile 2 File 3
File heading
1 Press the EDIT or MEMORY switch on the machine operator’s panel.
2 Press function key PROG , then the program contents display screen or
program check screen appears.
3 Press soft key [(OPRT)].
4 Press the rightmost soft key (next–menu key).
5 Enter address N.
6 Enter the number of the file to search for. ⋅ N0
The beginning of the cassette or card is searched. ⋅ One of N1 to N9999
Of the file Nos. 1 to 9999, a designated file is searched. ⋅ N–9999
The file next to that accessed just before is searched. ⋅ N–9998
When N–9998 is designated, N–9999 is automatically inserted each time a file is input or output. This condition is reset by the designation of N0,N1 to 9999, or N�9999 or reset.
7 Press soft keys [F SRH] and [EXEC]. The specified file is searched for.
The same result is obtained both by sequentially searching the files by specifying Nos. N1 to N9999 and by first searching one of N1 to N9999 and then using the N–9999 searching method. The searching time is shorter in the latter case.
8.2 FILE SEARCH
*��������
Explanation
� ���� �� ��� �! 81,,,,
OPERATION8. DATA INPUT/OUTPUT B–64124EN/01
542
Alarm No. Description
86
The ready signal (DR) of an input/output device is off.
An alarm is not immediately indicated in the CNC even when an alarm occurs during head searching (when a file is not found, or the like).
An alarm is given when the input/output operation is performed after that. This alarm is also raised when N1 is specified for writ- ing data to an empty floppy. (In this case, specify No.)
�� �
OPERATIONB–64124EN/01 8. DATA INPUT/OUTPUT
543
Files stored on a floppy can be deleted file by file as required.
File deletion
1 Insert the floppy into the input/output device so that it is ready for writing.
2 Press the EDIT switch on the machine operator’s panel.
3 Press function key PROG , then the program contents display screen
appears.
4 Press soft key [(OPRT)]
5 Press the rightmost soft key (next–menu key).
6 Enter address N.
7 Enter the number (from 1 to 9999) of the file to delete.
8 Press soft key [DELETE] and then press soft key [DELETE]. The file specified in step 7 is deleted.
When a file is deleted, the file numbers after the deleted file are each decremented by one. Suppose that a file numbered k was deleted. In this case, files are renumbered as follows:
Before deletion after deletion 1 to (k>1) 1 to (k>1) k Deleted (k+1) to n k to (n>1)
Set the write protect switch to the write enable state to delete the files.
8.3 FILE DELETION
*��������
Explanations
� ���� �� ��� ���� ��� ����
�� �������
� *������ �3����
OPERATION8. DATA INPUT/OUTPUT B–64124EN/01
544
This section describes how to load a program into the CNC from a floppy or NC tape.
Inputting a program
1 Make sure the input device is ready for reading.
2 Press the EDIT switch on the machine operator’s panel.
3 When using a floppy, search for the required file according to the procedure in III–8.2.
4 Press function key PROG , then the program contents display screen or
program directory screen appears.
5 Press soft key [(OPRT)].
6 Press the rightmost soft key (next–menu key).
7 After entering address O, specify a program number to be assigned to the program. When no program number is specified here, the program number used on the floppy or NC tape is assigned.
8 Press soft keys [READ] and [EXEC] The program is input and the program number specified in step 7 is assigned to the program.
If a program is input while the data protect key on the machine operator’s panel turns ON, the program loaded into the memory is verified against the contents of the floppy or NC tape. If a mismatch is found during collation, the collation is terminated with an alarm (P/S No. 079). If the operation above is performed with the data protection key turns OFF, collation is not performed, but programs are registered in memory.
When a tape holds multiple programs, the tape is read up to ER (or %).
O1111 M02; ER(%)O2222 M30; O3333 M02;
8.4 PROGRAM INPUT/OUTPUT
8.4.1 Inputting a Program
*��������
Explanations
� ��� ����
� 6�������" �������
���"� � ��� � 8
� ��
OPERATIONB–64124EN/01 8. DATA INPUT/OUTPUT
545
• When a program is entered without specifying a program number. ⋅ The O–number of the program on the NC tape is assigned to the
program. If the program has no O–number, the N–number in the first block is assigned to the program.
⋅ When the program has neither an O–number nor N–number, the previous program number is incremented by one and the result is assigned to the program.
⋅ When the program does not have an O–number but has a five–digit sequence number at the start of the program, the lower four digits of the sequence number are used as the program number. If the lower four digits are zeros, the previously registered program number is incremented by one and the result is assigned to the program.
• When a program is entered with a program number The O–number on the NC tape is ignored and the specified number is assigned to the program. When the program is followed by additional programs, the first additional program is given the program number. Additional program numbers are calculated by adding one to the last program.
The method of registration operation is the same as the method of foreground operation. However, this operation registers a program in the background editing area. As with edit operation, the operations described below are required at the end to register a program in foreground program memory.
[(OPRT)] [BG–END]
You can input a program to be appended to the end of a registered program.
Registered program Input program Program after input �1234 ; �5678 ; �1234 ; ������� ; ������� ; ������� ; ����� ; ����� ; ����� ; ���� ; ���� ; ���� ; ��� ; ��� ; ��� ; % % %
�5678 ; ������� ; ����� ; ���� ; ��� ; %
In the above example, all lines of program O5678 are appended to the end of program O1234. In this case, program number O5678 is not registered. When inputting a program to be appended to a registered program, press the [READ] soft key without specifying a program number in step 8. Then, press the [CHAIN] and [EXEC] soft keys.
In entire program input, all lines of a program are appended, except for its O number.
When canceling additional input mode, press the reset key or the [CAN] or [STOP] soft key.
� *��"� �� ���� ��
8 � ��
� *��"� ��"���� ���� ��
��� � �%"�����
� Additional program input
OPERATION8. DATA INPUT/OUTPUT B–64124EN/01
546
Pressing the [CHAIN] soft key positions the cursor to the end of the registered program. Once a program has been input, the cursor is positioned to the start of the new program.
Additional input is possible only when a program has already been registered.
If an attempt has been made to register a program having the same number as that of a previously registered program, P/S alarm 073 is issued and the program cannot be registered.
Alarm No. Description
70 The size of memory is not sufficient to store the input pro- grams
73 An attempt was made to store a program with an existing pro- gram number.
79 The verification operation found a mismatch between a pro- gram loaded into memory and the contents of the program on the floppy or NC tape.
� Defining the same program number as that of an existing program
�� �
OPERATIONB–64124EN/01 8. DATA INPUT/OUTPUT
547
A program stored in the memory of the CNC unit is output to a floppy or NC tape.
Outputting a program
1 Make sure the output device is ready for output.
2 To output to an NC tape, specify the punch code system (ISO or EIA) using a parameter.
3 Press the EDIT switch on the machine operator’s panel.
4 Press function key PROG , then the program contents display screen or
program directory screen appears.
5 Press soft key [(OPRT)].
6 Press the rightmost soft key (next–menu key).
7 Enter address O.
8 Enter a program number. If –9999 is entered, all programs stored in memory are output. To output multiple programs at one time, enter a range as follows : O∆∆∆∆,O���� Programs No.∆∆∆∆ to No.���� are output. The program directory screen displays program numbers in ascending order when bit 4 (SOR) of parameter No. 3107 is set to 1.
9 Press soft keys [PUNCH] and [EXEC] The specified program or programs are output.
When output is conducted to the floppy, the program is output as the new file after the files existing in the floppy. New files are to be written from the beginning with making the old files invalid, use the above output operation after the N0 head searching.
When P/S alarm (No. 86) occurs during program output, the floppy is restored to the condition before the output.
When program output is conducted after N1 to N9999 head searching, the new file is output as the designated n–th position. In this case, 1 to n–1 files are effective, but the files after the old n–th one are deleted. If an alarm occurs during output, only the 1 to n–1 files are restored.
To efficiently use the memory in the cassette or card, output the program by setting parameter NFD (No. 0101#7,No. 0111#7 or 0121#7) to 1. This parameter makes the feed is not output, utilizing the memory efficiently.
Head searching with a file No. is necessary when a file output from the CNC to the floppy is again input to the CNC memory or compared with the content of the CNC memory. Therefore, immediately after a file is output from the CNC to the floppy, record the file No. on the memo.
8.4.2 Outputting a Program
*��������
Explanations (Output to a floppy)
� ���� ������ ��� ����
� �� � � 3����
���"� �� ������
� 0��������" ���"�
���� ���� �� ���"
� �������� ��� �� � ��!
� 0� ��� � � ������
OPERATION8. DATA INPUT/OUTPUT B–64124EN/01
548
Punch operation can be performed in the same way as in the foreground. This function alone can punch out a program selected for foreground operation. <O> (Program No.) [PUNCH] [EXEC]: Punches out a specified program. <O> H–9999I [PUNCH] [EXEC]: Punches out all programs.
A program is output to paper tape in the following format:
ER (%)
Program
Feed of 3 feet Feed of 3 feet
ER (%)
If three–feet feeding is too long, press the CAN key during feed
punching to cancel the subsequent feed punching.
A space code for TV check is automatically punched.
When a program is punched in ISO code, two CR codes are punched after an LF code.
LF CR CR
By setting NCR (bit 3 of parameter No. 0100), CRs can be omitted so that each LF appears without a CR.
Press the RESET key to stop punch operation.
All programs are output to paper tape in the following format.
Program Program Program
Feed of 1–feet Feed of 3–feet
ER (%)
ER (%)
The sequence of the programs punched is undefined.
� *������" ���"� � ��
��� � �%"�����
Explanations (Output to an NC tape)
� ��� �
� #? ����%
� 6-0 ����
� -������" ��� �����
� *������" �� ���"� �
OPERATIONB–64124EN/01 8. DATA INPUT/OUTPUT
549
Offset data is loaded into the memory of the CNC from a floppy or NC tape. The input format is the same as for offset value output. See III– 8.5.2. When an offset value is loaded which has the same offset number as an offset number already registered in the memory, the loaded offset data replaces existing data.
Inputting offset data
1 Make sure the input device is ready for reading.
2 Press the EDIT switch on the machine operator’s panel.
3 When using a floppy, search for the required file according to the procedure in III–8.2.
4 Press function key OFFSETSETTING , then the tool compensation screen appears.
5 Press soft keys [(OPRT)].
6 Press rightmost soft key (next menu key).
7 Press soft keys [READ] and [EXEC].
8 The input offset data will be displayed on the screen after completion of input operation.
8.5 OFFSET DATA INPUT AND OUTPUT
8.5.1 Inputting Offset Data
*��������
OPERATION8. DATA INPUT/OUTPUT B–64124EN/01
550
All offset data is output in a output format from the memory of the CNC to a floppy or NC tape.
D( &( ' * ����� %� �
1 Make sure the output device is ready for output.
2 Specify the punch code system (ISO or EIA) using a parameter.
3 Press the EDIT switch on the machine operator’s panel.
4 Press function key OFFSETSETTING , then the tool compensation screen appears.
5 Press soft key [(OPRT)].
6 Press the rightmost soft key (next–menu key)
7 Press soft keys [PUNCH] and [EXEC]. Offset data is output in the output format described below.
Output format is as follows:
Format
Setting/changing the geometric compensation amount for H code G10 L10 P_R_; Setting/changing the geometric compensation amount for D code G10 L12 P_R_; Setting/changing the wear compensation amount for H code G10 L11 P_R_; Setting/changing the wear compensation amount for D code G10 L13 P_R_;
The L1 command may be used instead of L11 for format compatibility of the conventional CNC.
When the floppy disk directory display function is used, the name of the output file is OFFSET.
8.5.2 Outputting Offset Data
*��������
Explanations
� 0����� ��� �
� 0����� ���� � �
OPERATIONB–64124EN/01 8. DATA INPUT/OUTPUT
551
Parameters and pitch error compensation data are input and output from different screens, respectively. This chapter describes how to enter them.
Parameters are loaded into the memory of the CNC unit from a floppy or NC tape. The input format is the same as the output format. See III–8.6.2. When a parameter is loaded which has the same data number as a parameter already registered in the memory, the loaded parameter replaces the existing parameter.
Inputting parameters
1 Make sure the input device is ready for reading.
2 When using a floppy, search for the required file according to the procedure in III–8.2.
3 Press the EMERGENCY STOP button on the machine operator’s panel.
4 Press function key OFFSETSETTING .
5 Press the soft key [SETING] for chapter selection, then the setting screen appears.
6 Enter 1 in response to the prompt for “PARAMETER WRITE (PWE)” in setting data. Alarm P/S100 (indicating that parameters can be written) appears.
7 Press soft key SYSTEM .
8 Press chapter selection soft key [PARAM], then the parameter screen appears.
9 Press soft key [(OPRT)].
10 Press the rightmost soft key (next–menu key).
11 Press soft keys [READ] and [EXEC]. Parameters are read into memory. Upon completion of input, the “INPUT” indicator at the lower–right corner of the screen disappears.
12 Press function key OFFSETSETTING .
13 Press soft key [SETING] for chapter selection.
14 Enter 0 in response to the prompt for “PARAMETER WRITE (PWE)” in setting data.
8.6 INPUTTING AND OUTPUTTING PARAMETERS AND PITCH ERROR COMPENSATION DATA
8.6.1 Inputting Parameters
*��������
OPERATION8. DATA INPUT/OUTPUT B–64124EN/01
552
15 Turn the power to the CNC back on.
16 Release the EMERGENCY STOP button on the machine operator’s panel.
All parameters are output in the defined format from the memory of the CNC to a floppy or NC tape.
Outputting parameters
1 Make sure the output device is ready for output.
2 Specify the punch code system (ISO or EIA) using a parameter.
3 Press the EDIT switch on the machine operator’s panel.
4 Press function key SYSTEM , then the parameter screen appears.
5 Press chapter selection soft key [PARAM].
6 Press soft key [(OPRT)].
7 Press rightmost soft key (next–menu key).
8 Press soft keys [PUNCH].
9 To output all parameters, press the [ALL] soft key. To output only parameters which are set to other than 0, press the [NON–0] soft key.
10 Press soft key [EXEC]. All parameters are output in the defined format.
Output format is as follows: N P ;. . . . . . .
N : Parameter No.. . . A : Axis No.(n is the number of control axis). . . P : Parameter setting value .. . .
When the floppy disk directory display function is used, the name of the output file is PARAMETER. Once all parameters have been output, the output file is named ALL PARAMETER. Once only parameters which are set to other than 0 have been output, the output file is named NON–0. PARAMETER.
To suppress the output of the following parameters, press the [PUNCH] soft key then [NON–0] soft key.
Other than axis type Axis type
Bit type Parameter for which all bits are set to 0
Parameter for an axis for which all bits are set to 0.
Value type Paramter whose value is 0. Parameter for an axis for which the value is 0.
8.6.2 Outputting Parameters
*��������
Explanations � 0����� ��� �
� 0����� ���� � �
� Suppressing output of parameters set to 0
OPERATIONB–64124EN/01 8. DATA INPUT/OUTPUT
553
Pitch error compensation data are loaded into the memory of the CNC from a floppy or NC tape. The input format is the same as the output format. See III–8.6.4. When a pitch error compensation data is loaded which has the corresponding data number as a pitch error compensation data already registered in the memory, the loaded data replaces the existing data.
Pitch error compensation data
1 Make sure the input device is ready for reading.
2 When using a floppy, search for the required file according to the procedure in III–8.2.
3 Press the EMERGENCY STOP button on the machine operator’s panel.
4 Press function key OFFSETSETTING .
5 Press the soft key [SETING] for chapter selection.
6 Enter 1 in response to the prompt for writing parameters (PWE). Alarm P/S100 (indicating that parameters can be written) appears.
7 Press soft key SYSTEM .
8 Press the rightmost soft key (next–menu key)and press chapter selection soft key [PITCH].
9 Press soft key [(OPRT)].
10 Press the rightmost soft key (next–menu key).
11 Press soft keys [READ] and [EXEC]. Parameters are read into memory. Upon completion of input, the “INPUT” indicator at the lower–right corner of the screen disappears.
12 Press function key OFFSETSETTING .
13 Press soft key [SETING] for chapter selection.
14 Enter 0 in response to the prompt for “PARAMETER WRITE (PWE)” in setting data.
15 Turn the power to the CNC back on.
16 Release the EMERGENCY STOP button on the machine operator’s panel.
Parameters 3620 to 3624 and pitch error compensation data must be set correctly to apply pitch error compensation correctly (See III–11.5.2).
8.6.3 Inputting Pitch Error Compensation Data
*��������
Explanations
� Pitch error compensation
OPERATION8. DATA INPUT/OUTPUT B–64124EN/01
554
All pitch error compensation data are output in the defined format from the memory of the CNC to a floppy or NC tape.
Outputting Pitch Error Compensation Data
1 Make sure the output device is ready for output. For the two–path control, select the tool post for which pitch error compensation data to be input is used with the tool post selection switch.
2 Specify the punch code system (ISO or EIA) using a parameter.
3 Press the EDIT switch on the machine operator’s panel.
4 Press function key SYSTEM .
5 Press the rightmost soft key (next–menu key) and press chapter selection soft key [PITCH].
6 Press soft key [(OPRT)].
7 Press rightmost soft key (next–menu key).
8 Press soft keys [PUNCH] and [EXEC]. All parameters are output in the defined format.
Output format is as follows: N 10000 P ;. . .  N : Pitch error compensation point No. +10000. . . P : Pitch error compensation data. . .
When bi–directional pitch error compensation is used, output format is as follows : N20000 P.... ; N21023 P.... ; N23000 P.... ; N24023 P.... ;
N : Pitch error compensation point + 20000 P : Pitch error compensation data
When the floppy disk directory display function is used, the name of the output file is “PITCH ERROR”.
8.6.4 Outputting Pitch Error Compensation Data
*��������
Explanations
� 0����� ��� �
� 0����� ���� � �
OPERATIONB–64124EN/01 8. DATA INPUT/OUTPUT
555
The value of a custom macro common variable (#500 to #999) is loaded into the memory of the CNC from a floppy or NC tape. The same format used to output custom macro common variables is used for input. See III–8.7.2. For a custom macro common variable to be valid, the input data must be executed by pressing the cycle start button after data is input. When the value of a common variable is loaded into memory, this value replaces the value of the same common variable already existing (if any) in memory.
Inputting custom macro common variables
1 Register the program which has been output, as described in Section III–8.7.2, in memory according to the program input procedure described in Section III–8.4.1.
2 Press the MEMORY switch on the machine operator’s panel upon completing input.
3 Press the cycle start button to execute the loaded program.
4 Display the macro vriable screen to chek whether the values of the common variables have been set correctly.
Display of the macro variable screen
⋅ Press function key OFFSETSETTING .
⋅ Press the rightmost soft key (next–menu key). ⋅ Press soft key [MACRO]. ⋅ Select a variable with the page keys or numeric keys and soft key [NO.SRH].
The common variables (#500 to #999) can be input and output. #100 to #199 can be input and output when bit 3 (PU5) of parameter No. 6001 is set to 1.
8.7 INPUTTING/OUTPUT- TING CUSTOM MACRO COMMON VARIABLES
8.7.1 Inputting Custom Macro Common Variables
*��������
Explanations
� � �� � �� ����
OPERATION8. DATA INPUT/OUTPUT B–64124EN/01
556
Custom macro common variables (#500 to #999) stored in the memory of the CNC can be output in the defined output format to a floppy or NC tape.
Outputting custom macro common variable
1 Make sure the output device is ready for output.
2 Specify the punch code system (ISO or EIA) using a parameter.
3 Press the EDIT switch on the machine operator’s panel.
4 Press function key OFFSETSETTING .
5 Press the rightmost soft key (next–menu key), then press soft key [MACRO].
6 Press soft key [(OPRT)].
7 Press the rightmost soft key (next–menu key).
8 Press soft keys [PUNCH] and [EXEC]. Common variables are output in the defined format.

M02; %
(1)The precision of a variable is maintained by outputting the value of the variable as <expression>.
(2)Undefined variable (3)When the value of a variable is 0
The name of the output file is “MACRO VAR”.
The common variables (#500 to #999) can be input and output. #100 to #199 can be input and output when bit 3 (PU5) of parameter No. 6001 is set to 1.
8.7.2 Outputting Custom Macro Common Variable
*��������
Explanations
� 0����� ��� �
� 0����� ���� � �
� � �� � �� ���
OPERATIONB–64124EN/01 8. DATA INPUT/OUTPUT
557
On the floppy directory display screen, in a directory of the files stored in an external input/output device (such as FANUC Handy File) in floppy format, files can be input, output, and deleted.
O0001 N00000 (METER) VOL
EDIT * * * * * * * * * * 11 : 51 : 12
PRGRM (OPRT)DIR
DIRECTORY (FLOPPY) NO. FILE NAME
0001 PARAMETER 0002 O0001 0003 O0002 0004 O0010 0005 O0040 0006 O0050 0007 O0100 0008 O1000 0009 O9500
58.5 1.9 1.9 1.3 1.3 1.9 1.9 1.9 1.6
8.8 DISPLAYING DIRECTORY OF FLOPPY CASSETTE
OPERATION8. DATA INPUT/OUTPUT B–64124EN/01
558
Displaying the directory of floppy cassette files
Use the following procedure to display a directory of all the files stored in a floppy:
1 Press the EDIT switch on the machine operator’s panel.
2 Press function key PROG .
3 Press the rightmost soft key (next–menu key).
4 Press soft key [FLOPPY].
5 Press page key PAGE
or PAGE
.
6 The screen below appears.
O0001 N00000 (METER) VOL
EDIT * * * * * * * * * * 11 : 53 : 04
0001 PARAMETER 0002 O0001 0003 O0002 0004 O0010 0005 O0040 0006 O0050 0007 O0100 0008 O1000 0009 O9500
58.5 1.9 1.9 1.3 1.3 1.9 1.9 1.9 1.6
DIRECTORY (FLOPPY) NO. FILE NAME
READ PUNCH DELETEF SRH
Fig. 8.8.1 (a)
7 Press a page key again to display another page of the directory.
8.8.1 Displaying the Directory
*�������� �
OPERATIONB–64124EN/01 8. DATA INPUT/OUTPUT
559
Use the following procedure to display a directory of files starting with a specified file number :
1 Press the EDIT switch on the machine operator’s panel.
2 Press function key PROG .
3 Press the rightmost soft key (next–menu key).
4 Press soft key [FLOPPY].
5 Press soft key [(OPRT)].
6 Press soft key [F SRH].
7 Enter a file number.
8 Press soft keys [F SET] and [EXEC].
9 Press a page key to display another page of the directory.
10 Press soft key [CAN] to return to the soft key display shown in the screen of Fig 8.8.1 (a).
EDIT * * * * * * * * * * 11 : 54 : 19
SEARCH FILE NO. = >_
O0001 N00000 (METER) VOL
DIRECTORY (FLOPPY) NO. FILE NAME
CANF SET EXEC
Fig. 8.8.1 (b)
0005 O0040 0006 O0050 0007 O0100 0008 O1000 0009 O9500
1.3 1.9 1.9 1.9 1.6
*�������� &
OPERATION8. DATA INPUT/OUTPUT B–64124EN/01
560
NO:Displays the file number FILE NAME: Displays the file name. (METER) : Converts and prints out the file capacity to paper tape
length.You can also produce H (FEET) I by setting the INPUT UNIT to INCH of the setting data. VOL. : When the file is multi–volume, that state is displayed.
C01
C02 L03
C(number)means CONTINUE L(number)means LAST number number of floppies or cards
(Ex.) Floppy or card A
Floppy or card B Floppy or card C
Explanations
� -����� ������ �� �����
� ���"�
OPERATIONB–64124EN/01 8. DATA INPUT/OUTPUT
561
The contents of the specified file number are read to the memory of NC.
Reading files
1 Press the EDIT switch on the machine operator’s panel.
2 Press function key PROG .
3 Press the rightmost soft key (next–menu key).
4 Press soft key [FLOPPY].
5 Press soft key [(OPRT)].
6 Press soft key [READ].
* * * * * * * * * * 11 : 55 : 04
READ FILE NO. = >_
$?:�
O0001 N00000 (METER) VOL
DIRECTORY (FLOPPY) NO. FILE NAME
CANF SET EXEC
PROGRAM NO. =
O SET STOP
0001 PARAMETER 0002 O0001 0003 O0002 0004 O0010 0005 O0040 0006 O0050 0007 O0100 0008 O1000 0009 O9500
58.5 1.9 1.9 1.3 1.3 1.9 1.9 1.9 1.6
7 Enter a file number.
8 Press soft key [F SET].
9 To modify the program number, enter the program number, then press soft key [O SET].
10 Press soft key [EXEC]. The file number indicated in the lower–left corner of the screen is automatically incremented by one.
11 Press soft key [CAN] to return to the soft key display shown in the screen of Fig. 8.8.1.(a).
8.8.2 Reading Files
*��������
OPERATION8. DATA INPUT/OUTPUT B–64124EN/01
562
Any program in the memory of the CNC unit can be output to a floppy as a file.
Outputting programs
1 Press the EDIT switch on the machine operator’s panel.
2 Press function key PROG .
3 Press the rightmost soft key (next–menu key).
4 Press soft key [FLOPPY].
5 Press soft key [(OPRT)].
6 Press soft key [PUNCH].
EDIT * * * * * * * * * * 11 : 55 : 26
PUNCH FILE NO. = >_
O0002 N01000 (METER) VOL
DIRECTORY (FLOPPY) NO. FILE NAME
CANF SET EXEC
PROGRAM NO. =
O SET STOP
0001 PARAMETER 0002 O0001 0003 O0002 0004 O0010 0005 O0040 0006 O0050 0007 O0100 0008 O1000 0009 O9500
58.5 1.9 1.9 1.3 1.3 1.9 1.9 1.9 1.6
7 Enter a program number. To write all programs into a single file, enter –9999 in the program number field. In this case, the file name “ALL.PROGRAM” is registered.
8 Press soft key [O SET].
9 Press soft key [EXEC]. The program or programs specified in step 7 are written after the last file on the floppy. To output the program after deleting files starting with an existing file number, key in the file number, then press soft key [F SET] followed by soft key [EXEC].
10 Press soft key [CAN] to return to the soft key display shown in the screen of Fig.8.8.1(a).
8.8.3 Outputting Programs
*��������
OPERATIONB–64124EN/01 8. DATA INPUT/OUTPUT
563
The file with the specified file number is deleted.
Deleting files
1 Press the EDIT switch on the machine operator’s panel.
2 Press function key PROG .
3 Press the rightmost soft key (next–menu key).
4 Press soft key [FLOPPY].
5 Press soft key [(OPRT)].
6 Press soft key [DELETE].
EDIT * * * * * * * * * * 11 : 55 : 51
DELETE FILE NO. = >_
O0001 N00000 (METER) VOL
DIRECTORY (FLOPPY) NO. FILE NAME
CANF SET EXECF NAME
NAME=
0001 PARAMETER 0002 O0001 0003 O0002 0004 O0010 0005 O0040 0006 O0050 0007 O0100 0008 O1000 0009 O9500
58.5 1.9 1.9 1.3 1.3 1.9 1.9 1.9 1.6
7 Specify the file to be deleted. When specifying the file with a file number, type the number and press soft key [F SET]. When specifying the file with a file name, type the name and press soft key [F NAME].
8 Press soft key [EXEC]. The file specified in the file number field is deleted. When a file is deleted, the file numbers after the deleted file are each decremented by one.
9 Press soft key [CAN] to return to the soft key display shown in the screen of Fig. 8.8.1 (a).
8.8.4 Deleting Files
*��������
OPERATION8. DATA INPUT/OUTPUT B–64124EN/01
564
If [F SET] or [O SET] is pressed without key inputting file number and program number, file number or program number shows blank. When 0 is entered for file numbers or program numbers, 1 is displayed.
To use channel 0 ,set a device number in parameter (No. 102). Set the I/O device number to parameter (No. 112) when cannel 1 is used. Set it to (No. 0122) when channel 2 is used.
For the numeral input in the data input area with FILE No. and PROGRAM No., only lower 4 digits become valid.
When the data protection key on the machine operator’s panel is ON, no programs are read from the floppy. They are verified against the contents of the memory of the CNC instead.
Alarm No. Contents
71 An invalid file number or program number was entered. (Specified program number is not found.)
79 Verification operation found a mismatch between a program loaded into memory and the contents of the floppy
86
The dataset–ready signal (DR) for the input/output device is turned off. (The no file error or duplicate file error occurred on the input/output device because an invalid file number, pro- gram number, or file name was entered.
������������
� Inputting file numbers and program numbers with keys
� I/O devices
� Significant digits
� Collation
�;��.
OPERATIONB–64124EN/01 8. DATA INPUT/OUTPUT
565
CNC programs stored in memory can be grouped according to their names, thus enabling the output of CNC programs in group units. Section III–11.3.2 explains the display of a program listing for a specified group.
Procedure for Outputting a Program List for a Specified Group
1 Display the program list screen for a group of programs, as described in Section III–11.3.2.
PROGRAM DIRECTORY (GROUP) O0001 N00010
EDIT * * * * * * * * * * * * * 16 : 52 : 13
PRGRM DIR (OPRT)
PROGRAM (NUM.) MEMORY (CHAR.) USED: 60 3321 FREE: 2 429
O0020 (GEAR–1000 MAIN ) O0040 (GEAR–1000 SUB–1 ) O0200 (GEAR–1000 SUB–2 ) O2000 (GEAR–1000 SUB–3 )
>_
2 Press the [(OPRT)] operation soft key.
3 Press the right–most soft key (continuous menu key).
4 Press the [PUNCH] operation soft key.
5 Press the [AL–GRP] operation soft key.
The CNC programs in the group for which a search is made are output. When these programs are output to a floppy disk, they are output to a file named GROUP.PROGRAM.
8.9 OUTPUTTING A PROGRAM LIST FOR A SPECIFIED GROUP
*��������
BG–EDT O–SRH GROUP
PUNCHREAD
AL–GRP STOP EXECCAN
OPERATION8. DATA INPUT/OUTPUT B–64124EN/01
566
To input/output a particular type of data, the corresponding screen is usually selected. For example, the parameter screen is used for parameter input from or output to an external input/output unit, while the program screen is used for program input or output. However, programs, parameters, offset data, and macro variables can all be input and output using a single common screen, that is, the ALL IO screen.
 DATA INPUT/OUTPUT
567
Input/output–related parameters can be set on the ALL IO screen. Parameters can be set, regardless of the mode.
Setting input/output–related parameters
1 Press function key SYSTEM .
2 Press the rightmost soft key (next–menu key) several times.
3 Press soft key [ALL IO] to display the ALL IO screen.
NOTE 1 If program or floppy is selected in EDIT mode, the program
directory or floppy screen is displayed. 2 When the power is first turned on, program is selected by
default.
READ/PUNCH (PROGRAM) O1234 N12345
MDI * * * * * * * * * * * * * 12:34:56
I/O CHANNEL 1 TV CHECK OFF DEVICE NUM. 0 PUNCH CODE ISO BAUDRATE 4800 INPUT CODE ASCII STOP BIT 2 FEED OUTPUT FEED NULL INPUT (EIA) NO EOB OUTPUT (ISO) CR TV CHECK (NOTES) ON
(0:EIA 1:ISO)>1_
READ PUNCH
4 Select the soft key corresponding to the desired type of data (program, parameter, and so forth).
5 Set the parameters corresponding to the type of input/output unit to be used. (Parameter setting is possible regardless of the mode.)
8.10.1 Setting Input/Output–Related Parameters
*��������
OPERATION8. DATA INPUT/OUTPUT B–64124EN/01
568
A program can be input and output using the ALL IO screen. When entering a program using a cassette, the user must specify the input file containing the program (file search).
File search
1 Press soft key [PRGRM] on the ALL IO screen, described in Section III–8.10.1.
2 Select EDIT mode. A program directory is displayed.
3 Press soft key [(OPRT)]. The screen and soft keys change as shown below.
⋅ A program directory is displayed only in EDIT mode. In all other modes, the ALL IO screen is displayed.
O0001 N00010
EDIT * * * * * * * * * * * * * 14:46:09
F SRH READ PUNCH (OPRT)
>_
PROGRAM (NUM.) MEMORY (CHAR.) USED : 60 3321 FREE : 2 429
O0010 O0001 O0003 O0002 O0555 O0999 O0062 O0004 O0005 O1111 O0969 O6666 O0021 O1234 O0588 O0020 O0040
DELETE
4 Enter address N.
5 Enter the number of the file to be found.
⋅ N0 The first floppy file is found.
⋅ One of N1 to N9999 Among the files numbered from 1 to 9999, a specified file is found.
⋅ N–9999 The file immediately after that used most recently is found.
⋅ N–9998 When –9998 is specified, the next file is found. Then, each time a file input/output operation is performed, N–9999 is automatically inserted. This means that subsequent files can be sequentially found automatically.
This state is canceled by specifying N0, N1 to N9999, or N–9999, or upon a reset.
8.10.2 Inputting and Outputting Programs
*��������
OPERATIONB–64124EN/01 8. DATA INPUT/OUTPUT
569
6 Press soft keys [F SRH] and [EXEC]. The specified file is found.
When a file already exists in a cassette, specifying N0 or N1 has the same effect. If N1 is specified when there is no file on the cassette or card, an alarm is issued because the first file cannot be found. Specifying N0 places the head at the start of the cassette, regardless of whether the cassette/card already contains files. So, no alarm is issued in this case. N0 can be used, for example, when a program is written into a new cassette, or when a previously used cassette is used once all the files it contains have been erased.
If an alarm (file search failure, for example) is generated during file search, the CNC does not issue an alarm immediately. However, a P/S alarm (No. 086) is issued if input/output is subsequently performed on that file.
Instead of sequentially searching for files by specifying actual file numbers every time, the user can specify the first file number, then find the subsequent files by specifying N–9999. When N–9999 is specified, the time required for file search can be reduced.
EXECCAN
Explanations
� Difference between N0 and N1
� Alarm issue during file search
� File search using N–9999
OPERATION8. DATA INPUT/OUTPUT B–64124EN/01
570
Inputting a program
1 Press soft key [PRGRM] on the ALL IO screen, described in Section III–8.10.1.
2 Select EDIT mode. A program directory is displayed.
3 Press soft key [(OPRT)]. The screen and soft keys change as shown below.
⋅ A program directory is displayed only in EDIT mode. In all other modes, the ALL IO screen is displayed.
O0001 N00010
EDIT * * * * * * * * * * * * * 14:46:09
F SRH READ PUNCH (OPRT)
>_
PROGRAM (NUM.) MEMORY (CHAR.) USED : 60 3321 FREE : 2 429
O0010 O0001 O0003 O0002 O0555 O0999 O0062 O0004 O0005 O1111 O0969 O6666 O0021 O1234 O0588 O0020 O0040
DELETE
4 To specify a program number to be assigned to an input program, enter address O, followed by the desired program number. If no program number is specified, the program number in the file or on the NC tape is assigned as is.
5 Press soft key [READ], then [EXEC]. The program is input with the program number specified in step 4 assigned. To cancel input, press soft key [CAN]. To stop input prior to its completion, press soft key [STOP].
*��������
EXECCANSTOP
OPERATIONB–64124EN/01 8. DATA INPUT/OUTPUT
571
Outputting programs
1 Press soft key [PRGRM] on the ALL IO screen, described in Section III–8.10.1.
2 Select EDIT mode. A program directory is displayed.
3 Press soft key [(OPRT)]. The screen and soft keys change as shown below.
⋅ A program directory is displayed only in EDIT mode. In all other modes, the ALL IO screen is displayed.
O0001 N00010
EDIT * * * * * * * * * * * * * 14:46:09
F SRH READ PUNCH (OPRT)
>_
PROGRAM (NUM.) MEMORY (CHAR.) USED : 60 3321 FREE : 2 429
O0010 O0001 O0003 O0002 O0555 O0999 O0062 O0004 O0005 O1111 O0969 O6666 O0021 O1234 O0588 O0020 O0040
DELETE
4 Enter address O.
5 Enter a desired program number. If –9999 is entered, all programs in memory are output. To output a range of programs, enter O∆∆∆∆, O����.. The programs numbered from ∆∆∆∆ to ���� are output. When bit 4 (SOR) of parameter No. 3107 for sorted display is set to 1 on the program directory screen, programs are output in order, starting from those having the smallest program numbers.
6 Press soft key [PUNCH], then [EXEC]. The specified program or programs are output. If steps 4 and 5 are omitted, the currently selected program is output. To cancel output, press soft key [CAN]. To stop output prior to its completion, press soft key [STOP].
*��������
EXECCANSTOP
OPERATION8. DATA INPUT/OUTPUT B–64124EN/01
572
Deleting files
1 Press soft key [PRGRM] on the ALL IO screen, described in Section III–8.10.1.
2 Select EDIT mode. A program directory is displayed.
3 Press soft key [(OPRT)]. The screen and soft keys change as shown below.
⋅ A program directory is displayed only in EDIT mode. In all other modes, the ALL IO screen is displayed.
O0001 N00010
EDIT * * * * * * * * * * * * * 14:46:09
F SRH READ PUNCH (OPRT)
>_
PROGRAM (NUM.) MEMORY (CHAR.) USED : 60 3321 FREE : 2 429
O0010 O0001 O0003 O0002 O0555 O0999 O0062 O0004 O0005 O1111 O0969 O6666 O0021 O1234 O0588 O0020 O0040
DELETE
4 Press soft key [DELETE].
5 Enter a file number, from 1 to 9999, to indicate the file to be deleted.
6 Press soft key [EXEC]. The k–th file, specified in step 5, is deleted.
After deletion of the k–th file, the previous file numbers (k+1) to n are decremented by 1 to k to (n–1).
Before deletion After deletion 1 to (k–1) 1 to (k–1)
K Delete (k+1) to n k to (n–1)
Before a file can be deleted, the write protect switch of the cassette must be set to make the cassette writable.
*��������
EXECCAN
Explanations
� File numbers after deletion
� Write protect
OPERATIONB–64124EN/01 8. DATA INPUT/OUTPUT
573
Parameters can be input and output using the ALL IO screen.
Inputting parameters
1 Press soft key [PARAM] on the ALL IO screen, described in Section III–8.10.1.
2 Select EDIT mode.
3 Press soft key [(OPRT)]. The screen and soft keys change as shown below.
READ/PUNCH (PARAMETER) O1234 N12345
MDI
* * * * * * * * * * * * * 12:34:56
READ PUNCH
I/O CHANNEL 1 TV CHECK OFF DEVICE NUM. 0 PUNCH CODE ISO BAUDRATE 4800 INPUT CODE ASCII STOP BIT 2 FEED OUTPUT FEED NULL INPUT (EIA) NO EOB OUTPUT (ISO) CR TV CHECK (NOTES) ON
(0:EIA 1:ISO)>1_
4 Press soft key [READ], then [EXEC]. The parameters are read, and the �INPUT” indicator blinks at the lower–right corner of the screen. Upon the completion of input, the �INPUT” indicator is cleared from the screen. To cancel input, press soft key [CAN].
8.10.3 Inputting and Outputting Parameters
*��������
EXECCAN
OPERATION8. DATA INPUT/OUTPUT B–64124EN/01
574
Outputting parameters
1 Press soft key [PARAM] on the ALL IO screen, described in Section III–8.10.1.
2 Select EDIT mode.
3 Press soft key [(OPRT)]. The screen and soft keys change as shown below.
READ/PUNCH (PARAMETER) O1234 N12345
MDI
* * * * * * * * * * * * * 12:34:56
READ PUNCH
I/O CHANNEL 1 TV CHECK OFF DEVICE NUM. 0 PUNCH CODE ISO BAUDRATE 4800 INPUT CODE ASCII STOP BIT 2 FEED OUTPUT FEED NULL INPUT (EIA) NO EOB OUTPUT (ISO) CR TV CHECK (NOTES) ON
(0:EIA 1:ISO)>1_
4 Press soft key [PUNCH], then [EXEC]. The parameters are output, and the �OUTPUT” indicator blinks at the lower–right corner of the screen. Upon the completion of output, the �OUTPUT” indicator is cleared from the screen. To cancel output, press soft key [CAN].
*��������
EXECCAN
OPERATIONB–64124EN/01 8. DATA INPUT/OUTPUT
575
Offset data can be input and output using the ALL IO screen.
Inputting offset data
1 Press soft key [OFFSET] on the ALL IO screen, described in Section III–8.10.1.
2 Select EDIT mode.
3 Press soft key [(OPRT)]. The screen and soft keys change as shown below.
READ/PUNCH (OFFSET) O1234 N12345
MDI
* * * * * * * * * * * * * 12:34:56
READ PUNCH
I/O CHANNEL 1 TV CHECK OFF DEVICE NUM. 0 PUNCH CODE ISO BAUDRATE 4800 INPUT CODE ASCII STOP BIT 2 FEED OUTPUT FEED NULL INPUT (EIA) NO EOB OUTPUT (ISO) CR TV CHECK (NOTES) ON
(0:EIA 1:ISO)>1_
4 Press soft key [READ], then [EXEC]. The offset data is read, and the �INPUT” indicator blinks at the lower–right corner of the screen. Upon the completion of input, the �INPUT” indicator is cleared from the screen. To cancel input, press soft key [CAN].
8.10.4 Inputting and Outputting Offset Data
*��������
EXECCAN
OPERATION8. DATA INPUT/OUTPUT B–64124EN/01
576
Outputting offset data
1 Press soft key [OFFSET] on the ALL IO screen, described in Section III–8.10.1.
2 Select EDIT mode.
3 Press soft key [(OPRT)]. The screen and soft keys change as shown below.
READ/PUNCH (OFFSET) O1234 N12345
MDI
* * * * * * * * * * * * * 12:34:56
READ PUNCH
I/O CHANNEL 1 TV CHECK OFF DEVICE NUM. 0 PUNCH CODE ISO BAUDRATE 4800 INPUT CODE ASCII STOP BIT 2 FEED OUTPUT FEED NULL INPUT (EIA) NO EOB OUTPUT (ISO) CR TV CHECK (NOTES) ON
(0:EIA 1:ISO)>1_
4 Press soft key [PUNCH], then [EXEC]. The offset data is output, and the �OUTPUT” indicator blinks at the lower–right corner of the screen. Upon the completion of output, the �OUTPUT” indicator is cleared from the screen. To cancel output, press soft key [CAN].
*��������
EXECCAN
OPERATIONB–64124EN/01 8. DATA INPUT/OUTPUT
577
Custom macro common variables can be output using the ALL IO screen.
Outputting custom macro common variables
1 Press soft key [MACRO] on the ALL IO screen, described in Section III–8.10.1.
2 Select EDIT mode.
3 Press soft key [(OPRT)]. The screen and soft keys change as shown below.
READ/PUNCH (MACRO) O1234 N12345
MDI
* * * * * * * * * * * * * 12:34:56
READ PUNCH
I/O CHANNEL 1 TV CHECK OFF DEVICE NUM. 0 PUNCH CODE ISO BAUDRATE 4800 INPUT CODE ASCII STOP BIT 2 FEED OUTPUT FEED NULL INPUT (EIA) NO EOB OUTPUT (ISO) CR TV CHECK (NOTES) ON
(0:EIA 1:ISO)>1_
4 Press soft key [PUNCH], then [EXEC]. The custom macro common variables are output, and the �OUTPUT” indicator blinks at the lower–right corner of the screen. Upon the completion of output, the �OUTPUT” indicator is cleared from the screen. To cancel output, press soft key [CAN].
NOTE To input a macro variable, read the desired custom macro statement as a program, then execute the program.
8.10.5 Outputting Custom Macro Common Variables
*��������
EXECCAN
OPERATION8. DATA INPUT/OUTPUT B–64124EN/01
578
The ALL IO screen supports the display of a directory of floppy files, as well as the input and output of floppy files.
Displaying a file directory
1 Press the rightmost soft key (next–menu key) on the ALL IO screen, described in Section III–8.10.1.
2 Press soft key [FLOPPY].
3 Select EDIT mode. The floppy screen is displayed.
4 Press soft key [(OPRT)]. The screen and soft keys change as shown below.
⋅ The floppy screen is displayed only in EDIT mode. In all other modes, the ALL IO screen is displayed.
READ/PUNCH (FLOPPY) O1234 N12345
MDI
* * * * * * * * * * * * * 12:34:56
F SRH READ PUNCH
>
DELETE
5 Press soft key [F SRH].
6 Enter the number of the desired file, then press soft key [F SET].
7 Press soft key [EXEC]. A directory is displayed, with the specified file uppermost. Subsequent files in the directory can be displayed by pressing the page key.
8.10.6 Inputting and Outputting Floppy Files
*��������
EXECCANF SET
OPERATIONB–64124EN/01 8. DATA INPUT/OUTPUT
579
READ/PUNCH (FLOPPY) No. FILE NAME
O1234 N12345 (Meter) VOL
EDIT
* * * * * * * * * * * * * 12:34:56
F SRH EXEC
0001 PARAMETER 0002 ALL.PROGRAM 0003 O0001 0004 O0002 0005 O0003 0006 O0004 0007 O0005 0008 O0010 0009 O0020
F SRH File No.=2
>2_
CAN
46.1 12.3 11.9 11.9 11.9 11.9 11.9 11.9 11.9
A directory in which the first file is uppermost can be displayed simply by pressing the page key. (Soft key [F SRH] need not be pressed.)
OPERATION8. DATA INPUT/OUTPUT B–64124EN/01
580
Inputting a file
1 Press the rightmost soft key (next–menu key) on the ALL IO screen, described in Section III–8.10.1.
2 Press soft key [FLOPPY].
3 Select EDIT mode. The floppy screen is displayed.
4 Press soft key [(OPRT)]. The screen and soft keys change as shown below. The floppy screen is displayed only in EDIT mode. In all other modes, the ALL IO screen is displayed.
READ/PUNCH (FLOPPY) O1234 N12345
MDI
* * * * * * * * * * * * * 12:34:56
F SRH READ PUNCH
>
DELETE
5 Press soft key [READ].
6 Enter the number of a file or program to be input.
⋅ Setting a file number: Enter the number of the desired file, then press soft key [F SET].
⋅ Setting a program number: Enter the number of the desired program, then press soft key [O SET].
7 Press soft key [EXEC]. The specified file or program is read, and the �INPUT” indicator blinks at the lower–right corner of the screen. Upon the completion of input, the �INPUT” indicator is cleared from the screen.
*��������
EXECCANF SET O SET STOP
OPERATIONB–64124EN/01 8. DATA INPUT/OUTPUT
581
Outputting a file
1 Press the rightmost soft key (next–menu key) on the ALL IO screen, described in Section III–8.10.1.
2 Press soft key [FLOPPY].
3 Select EDIT mode. The floppy screen is displayed.
4 Press soft key [(OPRT)]. The screen and soft keys change as shown below. The floppy screen is displayed only in EDIT mode. In all other modes, the ALL IO screen is displayed.
READ/PUNCH (FLOPPY) O1234 N12345
MDI
* * * * * * * * * * * * * 12:34:56
F SRH READ PUNCH
>
DELETE
5 Press soft key [PUNCH].
6 Enter the number of the program to be output, together with a desired output file number.
⋅ Setting a file number: Enter the number of the desired file, then press soft key [F SET].
⋅ Setting a program number: Enter the number of the desired program, then press soft key [O SET].
7 Press soft key [EXEC]. The specified program is output, and the �OUTPUT” indicator blinks at the lower–right corner of the screen. Upon the completion of output, the �OUTPUT” indicator is cleared from the screen. If no file number is specified, the program is written at the end of the currently registered files.
*��������
EXECCANF SET O SET STOP
OPERATION8. DATA INPUT/OUTPUT B–64124EN/01
582
Deleting a file
1 Press the rightmost soft key (next–menu key) on the ALL IO screen, described in Section III–8.10.1.
2 Press soft key [FLOPPY].
3 Select EDIT mode. The floppy screen is displayed.
4 Press soft key [(OPRT)]. The screen and soft keys change as shown below. The floppy screen is displayed only in EDIT mode. In all other modes, the ALL IO screen is displayed.
READ/PUNCH (FLOPPY) O1234 N12345
MDI
* * * * * * * * * * * * * 12:34:56
F SRH READ PUNCH
>
DELETE
5 Press soft key [DELETE].
6 Enter the number of the desired file, then press soft key [F SET].
7 Press soft key [EXEC]. The specified file is deleted. After the file has been deleted, the subsequent files are shifted up.
*��������
EXECCANF SET
OPERATIONB–64124EN/01 8. DATA INPUT/OUTPUT
583
By setting the I/O channel (parameter No. 0020) to 4, files on a memory card inserted into the memory card interface located to the left of the display can be referenced. Different types of data such as part programs, parameters, and offset data on a memory card can also be input and output in text file format. The major functions are listed below.
⋅ Displaying a directory of stored files The files stored on a memory card can be displayed on the directory screen.
⋅ Searching for a file A search is made for a file on a memory card and, if found, it is displayed on the directory screen.
⋅ Reading a file Text–format files can be read from a memory card.
⋅ Writing a file Data such as part programs can be stored to a memory card in text file format.
⋅ Deleting a file A file can be selected and deleted from a memory card.
���
Writing a file
Reading a file
Displaying a directory
Searching for a file
Deleting a file
Memory card
8.11 DATA INPUT/OUTPUT USING A MEMORY CARD
OPERATION8. DATA INPUT/OUTPUT B–64124EN/01
584
Displaying a directory of stored files
1 Press the EDIT switch on the machine operator’s panel.
2 Press function key PROG .
3 Press the rightmost soft key (next–menu key).
4 Press soft key [CARD]. The screen shown below is displayed. Using
page keys and , the screen can be scrolled.
PROG (OPRT)DIR +
DIRECTORY (M–CARD) No. FILE NAME SIZE DATE
O0034 N00045
0001 O1000 123456 96/07/10 0002 O1001 118458 96/07/30 0003 O0002 113250 96/07/30 0004 O2000 173456 96/07/31 0005 O2001 113444 96/07/31 0006 O3001 118483 96/08/02 0007 O3300 111406 96/08/05 0008 O3400 112420 96/07/31 0009 O3500 117460 96/07/31
~ ~
5 Comments relating to each file can be displayed by pressing soft key [DIR+].
PROG (OPRT)DIR +
DIRECTORY (M–CARD) No. FILE NAME COMMENT
O0034 N00045
0001 O1000 (COMMENT ) 0002 O1001 (SUB PROGRAM ) 0003 O0002 (12345678 ) 0004 O2000 ( ) 0005 O2001 ( ) 0006 O3001 (SKIP–K ) 0007 O3300 (HI–SPEED ) 0008 O3400 ( ) 0009 O3500 (TEST PROGRAM)
~ ~
6 Repeatedly pressing soft key [DIR+] toggles the screen between the display of comments and the display of sizes and dates. The comment area displays a comment following the O number in each file. Up to 18 characters can be displayed on the screen.
*��������
OPERATIONB–64124EN/01 8. DATA INPUT/OUTPUT
585
Searching for a file
1 Press the EDIT switch on the machine operator’s panel.
2 Press function key PROG .
3 Press the rightmost soft key (next–menu key).
4 Press soft key [CARD]. The screen shown below is displayed.
PROG (OPRT)DIR +
DIRECTORY (M–CARD) No. FILE NAME SIZE DATE
O0034 N00045
0001 O1000 123456 96/07/10 0002 O1001 118458 96/07/30 0003 O0002 113250 96/07/30 0004 O2000 173456 96/07/31 0005 O2001 113444 96/07/31 0006 O3001 118483 96/08/02 0007 O3300 111406 96/08/05 0008 O3400 112420 96/07/31 0009 O3500 117460 96/07/31
~ ~
5 Press soft key [(OPRT)].
6 Set the number of the desired file number with soft key [F SRH]. Then, start the search by pressing soft key [EXEC]. If found, the file is displayed at the top of the directory screen.
DIRECTORY (M–CARD) No. FILE NAME COMMENT
O0034 N00045
0019 O1000 (MAIN PROGRAM) 0020 O1010 (SUBPROGRAM–1) 0021 O1020 (COMMENT ) 0022 O1030 (COMMENT )
~ ~
When a search is made for file number 19
*��������
DELETEPUNCHF SRH F READ N READ
OPERATION8. DATA INPUT/OUTPUT B–64124EN/01
586
Reading a file
1 Press the EDIT switch on the machine operator’s panel.
2 Press function key PROG.
3 Press the rightmost soft key (next–menu key).
4 Press soft key [CARD]. Then, the screen shown below is displayed.
PROG (OPRT)DIR +
DIRECTORY (M–CARD) No. FILE NAME SIZE DATE
O0034 N00045
0001 O1000 123456 96/07/10 0002 O1001 118458 96/07/30 0003 O0002 113250 96/07/30 0004 O2000 173456 96/07/31 0005 O2001 113444 96/07/31 0006 O3001 118483 96/08/02 0007 O3300 111406 96/08/05 0008 O3400 112420 96/07/31 0009 O3500 117460 96/07/31
~ ~
5 Press soft key [(OPRT)].
6 To specify a file number, press soft key [F READ]. The screen shown below is displayed.
F NAME EXECSTOPO SET CAN
DIRECTORY (M–CARD) No. FILE NAME COMMENT
O0001 N00010
0019 O1000 (MAIN PROGRAM) 0020 O1010 (SUBPROGRAM–1) 0021 O1030 (COMMENT )
~ ~
READ FILE NAME=20 PROGRAM No.=120
>
EDIT 15:40:21* * * * * * * * * * * * * *
7 Enter file number 20 from the MDI panel, then set the file number by pressing soft key [F SET]. Next, enter program number 120, then set the program number by pressing soft key [O SET]. Then, press soft key [EXEC].
⋅ File number 20 is registered as O0120 in the CNC. ⋅ Set a program number to register a read file with a separate O
number. If no program number is set, the O number in the file name column is registered.
*��������
DELETEPUNCHF SRH F READ N READ
OPERATIONB–64124EN/01 8. DATA INPUT/OUTPUT
587
8 To specify a file with its file name, press soft key [N READ] in step 6 above. The screen shown below is displayed.
F NAME EXECSTOPO SET CAN
DIRECTORY (M–CARD) No. FILE NAME COMMENT
O0001 N00010
0012 O0050 (MAIN PROGRAM) 0013 TESTPRO (SUB PROGRAM–1) 0014 O0060 (MACRO PROGRAM)
~ ~
READ FILE NAME =TESTPRO PROGRAM No. =1230
>
EDIT 15:40:21* * * * * * * * * * * * * *
9 To register file name TESTPRO as O1230, enter file name TESTPRO from the MDI panel, then set the file name with soft key [F NAME]. Next, enter program number 1230, then set the program number with soft key [O SET]. Then, press soft key [EXEC].
OPERATION8. DATA INPUT/OUTPUT B–64124EN/01
588
Writing a file
1 Press the EDIT switch on the machine operator’s panel.
2 Press function key PROG .
3 Press the rightmost soft key (next–menu key).
4 Press soft key [CARD]. The screen shown below is displayed.
PROG (OPRT)DIR +
DIRECTORY (M–CARD) No. FILE NAME SIZE DATE
O0034 N00045
0001 O1000 123456 96/07/10 0002 O1001 118458 96/07/30 0003 O0002 113250 96/07/30 0004 O2000 173456 96/07/31 0005 O2001 113444 96/07/31 0006 O3001 118483 96/08/02 0007 O3300 111406 96/08/05 0008 O3400 112420 96/07/31 0009 O3500 117460 96/07/31
~ ~
5 Press soft key [(OPRT)].
6 Press soft key [PUNCH].
7 Enter a desired O number from the MDI panel, then set the program number with soft key [O SET]. When soft key [EXEC] is pressed after the setting shown below has been made, for example, the file is written under program number O1230.
F NAME EXECSTOPO SET CAN
EDIT
* * * * * * * * * * * * * * 15:40:21
PUNCH FILE NAME = PROGRAM No. =1230
>
~ ~
8 In the same way as for O number setting, enter a desired file name from the MDI panel, then set the file name with soft key [F SET]. When soft key [EXEC] is pressed after the setting shown below has been made, for example, the file is written under program number O1230 and file name ABCD12.
F NAME EXECSTOPO SET CAN
EDIT
* * * * * * * * * * * * * * 15:40:21
PUNCH FILE NAME =ABCD12 PROGRAM No. =1230
>
~ ~
*��������
DELETEPUNCHF SRH F READ N READ
OPERATIONB–64124EN/01 8. DATA INPUT/OUTPUT
589
When a file is output to the memory card, another file having the same name may already exist in the memory card. Bit 6 (OWM) of parameter No. 0138 can be used to select whether to overwrite the existing file unconditionally or display a message confirming the overwriting. A message appears when OWM is 0; overwriting occurs unconditionally when OWM is 1. Even when OWM is 0, however, file overwriting occurs unconditionally if the overwriting is specified by the screen hardcopy function or an operation on the maintenance information screen or PMC screen.
To write all programs, set program number = –9999. If no file name is specified in this case, file name PROGRAM.ALL is used for registration.
The following restrictions are imposed on file name setting:
<File name setting> �������� . ��� � �
Not longer than 8 characters
Extension not longer than 3 characters
Explanations
� Registering the same file name
� Writing all programs
� File name restrictions
OPERATION8. DATA INPUT/OUTPUT B–64124EN/01
590
Deleting a file
1 Press the EDIT switch on the machine operator’s panel.
2 Press function key PROG .
3 Press the rightmost soft key (next–menu key).
4 Press soft key [CARD]. The screen shown below is displayed.
PROG (OPRT)DIR +
DIRECTORY (M–CARD) No. FILE NAME SIZE DATE
O0034 N00045
0001 O1000 123456 96/07/10 0002 O1001 118458 96/07/30 0003 O0002 113250 96/07/30 0004 O2000 173456 96/07/31 0005 O2001 113444 96/07/31 0006 O3001 118483 96/08/02 0007 O3300 111406 96/08/05 0008 O3400 112420 96/07/31 0009 O3500 117460 96/07/31
~ ~
5 Press soft key [(OPRT)].
6 Set the number of the desired file with soft key [DELETE], then press soft key [EXEC]. The file is deleted, and the directory screen is displayed again.
DIRECTORY (M–CARD) No. FILE NAME COMMENT
O0034 N00045
0019 O1000 (MAIN PROGRAM) 0020 O1010 (SUBPROGRAM–1) 0021 O1020 (COMMENT ) 0022 O1030 (COMMENT )
~ ~ File name O1020 is deleted.
When file number 21 is deleted
DIRECTORY (M–CARD) No. FILE NAME COMMENT
O0034 N00045
0019 O1000 (MAIN PROGRAM) 0020 O1010 (SUBPROGRAM–1) 0021 O1020 (COMMENT ) 0022 O1030 (COMMENT )
~ ~
File number 21 is assigned to the next file name.
*��������
DELETEPUNCHF SRH F READ N READ
OPERATIONB–64124EN/01 8. DATA INPUT/OUTPUT
591
Batch input/output with a memory card
On the ALL IO screen, different types of data including part programs, parameters, offset data, pitch error data, custom macros, and workpiece coordinate system data can be input and output using a memory card; the screen for each type of data need not be displayed for input/output.
Memory card ALL IO screen�
�
Data item name
Part program Parameter Offset data Pitch error data Custom macro Workpiece coordinate system data (additional coordinate systems)
1 Press the EDIT switch on the machine operator’s panel.
2 Press function key SYSTEM .
3 Press the rightmost soft key (next–menu key) several times.
4 Press soft key [ALL IO]. The screen shown below is displayed.
PROG (OPRT)OFFSETPARAM
READ/PUNCH (PROGRAM) No. FILE NAME SIZE DATE
O0001 N00001
*0001 O0222 332010 96–04–06 *0002 O1003 334450 96–05–04 *0003 MACROVAR.DAT 653400 96–05–12 *0004 O0002 341205 96–05–13
[PROGRAM] *O0001 O0002 O0003 O0005 O0100 O0020 *O0006 O0004 O0110 O0200 O2200 O0441 *O0330 > EDIT 10:07:37* * * * * * * * * * * * * *
Upper part : Directory of files on the memory card Lower part : Directory of registered programs
5 With cursor keys and , the user can choose between upper
part scrolling and lower part scrolling. (An asterisk (*) displayed at the left edge indicates the part for which scrolling is possible.)
: Used for memory card file directory scrolling.
: Used for program directory scrolling.
6 With page keys PAGE
and PAGE
, scroll through the file directory or
program directory.
*��������
OPERATION8. DATA INPUT/OUTPUT B–64124EN/01
592
When this screen is displayed, the program data item is selected. Select other items by pressing the soft keys that appear when the user presses next–menu key .
MACRO (OPRT)WORKPITCH
When a data item other than program is selected, the screen displays only a file directory. A data item is indicated, in parentheses, on the title line.
READ/PUNCH (PARAMETER) No. FILE NAME SIZE DATE
O0001 N00001
0001 O0222 332010 96/04/06 0002 O1003 334450 96/05/04 0003 MACROVAR.DAT 653400 96/05/12 0004 O0003 334610 96/05/04 0005 O0001 334254 96/06/04 0006 O0002 333750 96/06/04 0007 CNCPARAM.DAT 334453 96/06/04
~ ~
Program directory display does not match bit 0 (NAM) of parameter No. 3107, or bit 4 (SOR) of parameter No. 3107.
Display the following soft keys with soft key [(OPRT)].
F SRH DELETEN READF READ PUNCH
The operation of each function is the same as on the directory (memory card) screen. Soft key [O SET], used for program number setting, and the ”PROGRAM NUMBER =” indication are not displayed for data items other than program.
[F SRH] : Finds a specified file number. [F READ] : Reads a specified file number. [PUNCH] : Writes a file. [N READ] : Reads a file under a specified file name. [DELETE] : Deletes a specified file number.
NOTE With a memory card, RMT mode operation and the subprogram call function (based on the M198 command) cannot be used.
Explanations
� Each data item
� Program directory display
� Using each function
OPERATIONB–64124EN/01 8. DATA INPUT/OUTPUT
593
File format and error messages
All files that are read from and written to a memory card are of text format. The format is described below. A file starts with % or LF, followed by the actual data. A file always ends with %. In a read operation, data between the first % and the next LF is skipped. Each block ends with an LF, not a semicolon (;).
⋅ LF: 0A (hexadecimal) of ASCII code ⋅ When a file containing lowercase letters, kana characters, and several
special characters (such as $, \, and !) is read, those letters and characters are ignored. Example:
% O0001(MEMORY CARD SAMPLE FILE) G17 G49 G97 G92 X–11.3 Y2.33
⋅ ⋅
M30 %
⋅ ASCII code is used for input/output, regardless of the setting parameter (ISO/EIA).
⋅ Bit 3 of parameter No. 0100 can be used to specify whether the end of block code (EOB) is output as ”LF” only, or as ”LF, CR, CR.”
If an error occurs during memory card input/output, a corresponding error message is displayed.
EDIT
* * * * * * * * * * * * * * 15:40:21
M–CARD ERROR ���� FILE No. = 1 PROGRAM No. =13
>_
0028 O0003 777382 01–06–14
F SET EXECSTOPO SET CAN
~ ~
���� represents a memory card error code.
Format
Error messages
OPERATION8. DATA INPUT/OUTPUT B–64124EN/01
594
Code Meaning
99 A part preceding the FAT area on the memory card is destroyed.
102 The memory card does not have sufficient free space.
105 No memory card is mounted.
106 A memory card is already mounted.
110 The specified directory cannot be found.
111 There are too many files under the root directory to allow a directory to be added.
114 The specified file cannot be found.
115 The specified file is protected.
117 The file has not yet been opened.
118 The file is already open.
119 The file is locked.
121 The memory card does not have sufficient free space.
122 The specified file name is invalid.
124 The extension of the specified file is invalid.
129 A non–corresponding function was specified.
130 The specification of a device is invalid.
131 The specification of a pathname is invalid.
133 Multiple files are open at the same time.
135 The device is not formatted.
140 The file has the read/write disabled attribute.
Memory Card Error Codes
OPERATIONB–64124EN/01 9. EDITING PROGRAMS
595
9 EDITING PROGRAMS This chapter describes how to edit programs registered in the CNC. Editing includes the insertion, modification, deletion, and replacement of words. Editing also includes deletion of the entire program and automatic insertion of sequence numbers. The extended part program editing function can copy, move, and merge programs. This chapter also describes program number search, sequence number search, word search, and address search, which are performed before editing the program.

1) Inserting, altering, and deleting a word: See III–9.1.3 to 9.1.5.. . . .   4) Copying, moving, and merging programs: See III–9.6.1 and 9.6.5.
Search for part of program to be edited
Inserting, altering, and deleting programs
Registration
Editing
Output Execution
General
OPERATION9. EDITING PROGRAMS B–64124EN/01
596
This section outlines the procedure for inserting, modifying, and deleting a word in a program registered in memory.
Procedure for inserting, altering and deleting a word
1 Select EDIT mode.
2 Press PROG .
3 Select a program to be edited. If a program to be edited is selected, perform the operation 4. If a program to be edited is not selected, search for the program number.
4 Search for a word to be modified. ⋅ Scan method ⋅ Word search method
5 Perform an operation such as altering, inserting, or deleting a word.
A word is an address followed by a number. With a custom macro, the concept of word is ambiguous. So the editing unit is considered here. The editing unit is a unit subject to alteration or deletion in one operation. In one scan operation, the cursor indicates the start of an editing unit. An insertion is made after an editing unit. Definition of editing unit
(i) Program portion from an address to immediately before the next address
(ii)An address is an alphabet, IF, WHILE, GOTO, END, DO=,or ; (EOB). According to this definition, a word is an editing unit.
The word “word,” when used in the description of editing, means an editing unit according to the precise definition.
WARNING The user cannot continue program execution after altering, inserting, or deleting data of the program by suspending machining in progress by means of an operation such as a single block stop or feed hold operation during program execution. If such a modification is made, the program may not be executed exactly according to the contents of the program displayed on the screen after machining is resumed. So, when the contents of memory are to be modified by part program editing, be sure to enter the reset state or reset the system upon completion of editing before executing the program.
9.1 INSERTING, ALTERING AND DELETING A WORD
Explanation
� Concept of word and editing unit
OPERATIONB–64124EN/01 9. EDITING PROGRAMS
597
A word can be searched for by merely moving the cursor through the text (scanning), by word search, or by address search.
Procedure for scanning a program
1 Press the cursor key .
The cursor moves forward word by word on the screen; the cursor is displayed at a selected word.
2 Press the cursor key .
The cursor moves backward word by word on the screen; the cursor is displayed at a selected word.
Example) When Z1250.0 is scanned
Program O0050 N01234 O0050 ; N01234 X100.0 S12 ; N56789 M03 ; M02 ; %
;Z1250.0
3 Holding down the cursor key or scans words
continuously.
4 The first word of the next block is searched for when the cursor key
is pressed.
5 The first word of the previous block is searched for when the cursor
key is pressed.
6 Holding down the cursor key or moves the cursor to the
head of a block continuously.
7 Pressing the page key PAGE
displays the next page and searches for
the first word of the page.
8 Pressing the page key PAGE
displays the previous page and searches
for the first word of the page.
9 Holding down the page key PAGE
or PAGE
displays one page after
another.
9.1.1 $��� -� ���
OPERATION9. EDITING PROGRAMS B–64124EN/01
598
Procedure for searching a word
Example) of Searching for S12
PROGRAM O0050 N01234 O0050 ;
X100.0 Z1250.0 ; S12 ; N56789 M03 ; M02 ; %
N01234
N01234 is being searched for/ scanned currently. S12 is searched for.
1 Key in address S .
2 Key in 1 2 .
⋅ S12 cannot be searched for if only S1 is keyed in. ⋅ S09 cannot be searched for by keying in only S9. To search for S09, be sure to key in S09.
3 Pressing the [SRH↓] key starts search operation. Upon completion of search operation, the cursor is displayed at S12. Pressing the [SRH↑] key rather than the [SRH↓] key performs search operation in the reverse direction.
Procedure for searching an address
Example) of Searching for M03
PROGRAM O0050 N01234 O0050 ;
X100.0 Z1250.0 ; S12 ; N56789 M03 ; M02 ; %
N01234
N01234 is being searched for/ scanned currently.
M03 is searched for.
1 Key in address M .
2 Press the [SRH↓] key. Upon completion of search operation, the cursor is displayed at M03. Pressing the [SRH↑] key rather than the [SRH↓] key performs search operation in the reverse direction.
�� � �� ��� �����������
7� The word or address being searched for was not found.
�� �
OPERATIONB–64124EN/01 9. EDITING PROGRAMS
599
The cursor can be jumped to the top of a program. This function is called heading the program pointer. This section describes the three methods for heading the program pointer.
Procedure for Heading a Program
1 Press RESET when the program screen is selected in EDIT mode.
When the cursor has returned to the start of the program, the contents of the program are displayed from its start on the screen.
Search for the program number.
1 Press address O ,when a program screen is selected in the
MEMORY or EDIT mode.
2 Input a program number.
3 Press the soft key [O SRH].
1 Select [MEMORY] or [EDIT] mode.
2 Press PROG .
3 Press the [(OPRT)] key.
4 Press the [REWIND] key.
9.1.2 A� ���" *��"�
Method 1
Method 2
Method 3
OPERATION9. EDITING PROGRAMS B–64124EN/01
600
Procedure for inserting a word
1 Search for or scan the word immediately before a word to be inserted.
2 Key in an address to be inserted.
3 Key in data.
4 Press the INSERT key.
Example of Inserting T15
1 Search for or scan Z1250.
Program O0050 N01234 O0050 ; N01234 X100.0 S12 ; N56789 M03 ; M02 ; %
Z1250.0 ; Z1250.0 is searched for/ scanned.
2 Key in T 1 5 .
3 Press the INSERT key.
Program O0050 N01234 O0050 ; N01234 X100.0 Z1250.0 T15 ; S12 ; N56789 M03 ; M02 ; %
T15 is inserted.
9.1.3 Inserting a Word
Procedure
OPERATIONB–64124EN/01 9. EDITING PROGRAMS
601
Procedure for altering a word
1 Search for or scan a word to be altered.
2 Key in an address to be inserted.
3 Key in data.
4 Press the ALTER key.
Example of changing T15 to M15
1 Search for or scan T15.
Program O0050 N01234 O0050 ; N01234 X100.0 Z1250.0 S12 ; N56789 M03 ; M02 ; %
T15 ; T15 is searched for/scanned.
2 Key in M 1 5 .
3 Press the ALTER key.
Program O0050 N01234 O0050 ; N1234 X100.0 Z1250.0 M15 ; S12 ; N5678 M03 ; M02 ; %
T15 is changed to M15.
9.1.4 Altering a Word
Procedure
OPERATION9. EDITING PROGRAMS B–64124EN/01
602
Procedure for deleting a word
1 Search for or scan a word to be deleted.
2 Press the DELETE key.
Example of deleting X100.0
1 Search for or scan X100.0.
Program O0050 N01234 O0050 ; N01234 S12 ; N56789 M03 ; M02 ; %
X100.0 X100.0 is searched for/ scanned.
Z1250.0 M15 ;
2 Press the DELETE key.
Program O0050 N01234 O0050 ; N01234 Z1250.0 M15 ; S12 ; N56789 M03 ; M02 ; %
X100.0 is deleted.
9.1.5 Deleting a Word
Procedure
OPERATIONB–64124EN/01 9. EDITING PROGRAMS
603
A block or blocks can be deleted in a program.
The procedure below deletes a block up to its EOB code; the cursor advances to the next word.
Procedure for deleting a block
1 Search for or scan address N for a block to be deleted.
2 Key in EOB .
3 Press the DELETE .
Example of deleting a block of N01234
1 Search for or scan N01234.
Program O0050 N01234 O0050 ;
Z1250.0 M15 ; S12 ; N56789 M03 ; M02 ; %
N01234 N01234 is searched for/ scanned.
2 Key in EOB .
3 Press the DELETE key.
Program O0050 N01234 O0050 ; S12 ; N56789 M03 ; M02 ; %
Block containing N01234 has been deleted.
9.2 DELETING BLOCKS
9.2.1 Deleting a Block
Procedure
OPERATION9. EDITING PROGRAMS B–64124EN/01
604
The blocks from the currently displayed word to the block with a specified sequence number can be deleted.
Procedure for deleting multiple blocks
1 Search for or scan a word in the first block of a portion to be deleted.
2 Key in address N .
3 Key in the sequence number for the last block of the portion to be deleted.
4 Press the DELETE key.
Example of deleting blocks from a block containing N01234 to a block containing N56789
1 Search for or scan N01234.
Program O0050 N01234 O0050 ;
Z1250.0 M15 ; S12 ; N56789 M03 ; M02 ; %
N01234 N01234 is searched for/ scanned.
2 Key in N 5 6 7 8 9 .
Program O0050 N01234 O0050 ;
Z1250.0 M15 ; S12 ; N56789 M03 ; M02 ; %
N01234 Underlined part is de- leted.
3 Press the DELETE key.
Program O0050 N01234 O0050 ; M02 ; %
Blocks from block containing N01234 to block containing N56789 have been deleted.
9.2.2 Deleting Multiple Blocks
Procedure
OPERATIONB–64124EN/01 9. EDITING PROGRAMS
605
When memory holds multiple programs, a program can be searched for. There are three methods as follows.
Procedure for program number search
1 Select EDIT or MEMORY mode.
2 Press PROG to display the program screen.
3 Key in address O .
4 Key in a program number to be searched for.
5 Press the [O SRH] key.
6 Upon completion of search operation, the program number searched for is displayed in the upper–right corner of the screen If the program is not found , P/S alarm No. 71 occurs.
1 Select EDIT or MEMORY mode.
2 Press PROG to display the program screen.
3 Press the [O SRH] key. In this case, the next program in the memory is searched for .
This method searches for the program number (0001 to 0015) corresponding to a signal on the machine tool side to start automatic operation. Refer to the relevant manual prepared by the machine tool builder for detailed information on operation.
1 Select MEMORY mode.
2 Set the reset state(*1)
⋅ The reset state is the state where the LED for indicating that automatic operation is in progress is off. (Refer to the relevant manual of the machine tool builder.)
3 Set the program number selection signal on the machine tool side to a number from 01 to 15.
⋅ If the program corresponding to a signal on the machine tool side is not registered, P/S alarm (No. 059) is raised.
4 Press the cycle start button.
⋅ When the signal on the machine tool side represents 00, program number search operation is not performed.
No. Contents
59 The program with the selected number cannot be searched during external program number search.
71 The specified program number was not found during program number search.
9.3 PROGRAM NUMBER SEARCH
Method 1
Method 2
Method 3
Alarm
OPERATION9. EDITING PROGRAMS B–64124EN/01
606
Sequence number search operation is usually used to search for a sequence number in the middle of a program so that execution can be started or restarted at the block of the sequence number.
Example) Sequence number 02346 in a program (O0002) is searched for.
Program
O0001 ; N01234 X100.0 Z100.0 ; S12 ; : O0002 ; N02345 X20.0 Z20.0 ; N02346 X10.0 Y10.0 ; : O0003 ; :
Selected program
Target sequence number is found.
This section is searched starting at the beginning. (Search operation is performed only within a program.)
Procedure for sequence number search
1 Select MEMORY mode.
2 Press PROG .
3 ⋅ If the program contains a sequence number to be searchedfor, perform the operations 4 to 7 below.
⋅ If the program does not contain a sequence number to be searched for,select the program number of the program that contains the sequence number to be searched for.
4 Key in address N .
5 Key in a sequence number to be searched for.
6 Press the [N SRH] key.
7 Upon completion of search operation, the sequence number searched for is displayed in the upper–right corner of the screen. If the specified sequence number is not found in the program currently selected, P/S alarm No. 060 occurs.
9.4 SEQUENCE NUMBER SEARCH
OPERATIONB–64124EN/01 9. EDITING PROGRAMS
607
Those blocks that are skipped do not affect the CNC. This means that the data in the skipped blocks such as coordinates and M, S, and T codes does not alter the CNC coordinates and modal values. So, in the first block where execution is to be started or restarted by using a sequence number search command, be sure to enter required M, S, and T codes and coordinates. A block searched for by sequence number search usually represents a point of shifting from one process to another. When a block in the middle of a process must be searched for to restart execution at the block, specify M, S, and T codes, G codes, coordinates, and so forth as required from the MDI after closely checking the machine tool and NC states at that point.
During search operation, the following checks are made: ⋅ Optional block skip
During sequence number search operation, M98Pxxxx (subprogram call) is not executed. So a P/S alarm (No.060) is raised if an attempt is made to search for a sequence number in a subprogram called by the program currently selected.
O1234 : : M98 P5678 ; : :
Main program Subprogram
O5678 : N88888 : M99 ; :
If an attempt is made to search for N8888 in the example above, an alarm is raised.
Number Contents
60 Command sequence number was not found in the se- quence number search.
Explanations
� Operation during Search
� Checking during search
Limitations
� Searching in sub–program
Alarm
OPERATION9. EDITING PROGRAMS B–64124EN/01
608
Programs registered in memory can be deleted,either one program by one program or all at once. Also, More than one program can be deleted by specifying a range.
A program registered in memory can be deleted.
Procedure for deleting one program
1 Select the EDIT mode.
2 Press PROG to display the program screen.
3 Key in address O .
4 Key in a desired program number.
5 Press the DELETE key.
The program with the entered program number is deleted.
All programs registered in memory can be deleted.
Procedure for deleting all programs
1 Select the EDIT mode.
2 Press PROG to display the program screen.
3 Key in address O .
4 Key in –9999.
5 Press edit key DELETE to delete all programs.
9.5 DELETING PROGRAMS
9.5.1 Deleting One Program
9.5.2 Deleting All Programs
OPERATIONB–64124EN/01 9. EDITING PROGRAMS
609
Programs within a specified range in memory are deleted.
Procedure for deleting more than one program by specifying a range
1 Select the EDIT mode.
2 Press PROG to display the program screen.
3 Enter the range of program numbers to be deleted with address and numeric keys in the following format: OXXXX,OYYYY where XXXX is the starting number of the programs to be deleted and YYYY is the ending number of the programs to be deleted.
4 Press edit key DELETE to delete programs No. XXXX to No. YYYY.
9.5.3 Deleting More Than One Program by Specifying a Range
OPERATION9. EDITING PROGRAMS B–64124EN/01
610
With the extended part program editing function, the operations described below can be performed using soft keys for programs that have been registered in memory. Following editing operations are available : ⋅ All or part of a program can be copied or moved to another program. ⋅ One program can be merged at free position into other programs. ⋅ A specified word or address in a program can be replaced with another
word or address.
9.6 EXTENDED PART PROGRAM EDITING FUNCTION
OPERATIONB–64124EN/01 9. EDITING PROGRAMS
611
A new program can be created by copying a program.
A
Oxxxx
A
Oxxxx
After copy
A
Oyyyy
Copy
Before copy
Fig. 9.6.1 Copying an entire program
In Fig. 9.6.1, the program with program number xxxx is copied to a newly created program with program number yyyy. The program created by copy operation is the same as the original program except the program number.
Procedure of copying an entire program
1 Enter the EDIT mode.
2 Press function key PROG .
3 Press soft key [(OPRT)].
4 Press the continuous menu key.
5 Press soft key [EX–EDT].
6 Check that the screen for the program to be copied is selected and press soft key [COPY].
7 Press soft key [ALL].
8 Enter the number of the new program (with only numeric keys ) and
press the INPUT key.
9 Press soft key [EXEC].
9.6.1 Copying an Entire Program
Continuous menu key
0 9Numeric keys
(OPRT)
(EX–EDT)
COPY
ALL
EXEC
�
OPERATION9. EDITING PROGRAMS B–64124EN/01
612
A new program can be created by copying part of a program.
B
Oxxxx Oxxxx
After copy
B
Oyyyy
Copy
Before copy
Fig. 9.6.2 Copying part of a program
A
C
B
A
C
In Fig. 9.6.2, part B of the program with program number xxxx is copied to a newly created program with program number yyyy. The program for which an editing range is specified remains unchanged after copy operation.
Procedure for copying part of a program
1 Perform steps 1 to 6 in III–9.6.1.
2 Move the cursor to the start of the range to be copied and press soft key [CRSR�].
3 Move the cursor to the end of the range to be copied and press soft key [�CRSR] or [�BTTM] (in the latter case, the range to the end of the program is copied regardless of the position of the cursor).
4 Enter the number of the new program (with only numeric keys) and
press the INPUT key.
5 Press soft key [EXEC].
9.6.2 Copying Part of a Program
CRSR�
0 9
�CRSR �BTTM
EXEC
Numeric keys �
OPERATIONB–64124EN/01 9. EDITING PROGRAMS
613
A new program can be created by moving part of a program.
B
Oxxxx Oxxxx
After copy
B
Oyyyy
Copy
Before copy
Fig. 9.6.3 Moving part of a program
A
C
A
C
In Fig. 9.6.3, part B of the program with program number xxxx is moved to a newly created program with program number yyyy; part B is deleted from the program with program number xxxx.
Procedure for moving part of a program
1 Perform steps 1 to 5 in III–9.6.1.
2 Check that the screen for the program to be moved is selected and press soft key [MOVE].
3 Move the cursor to the start of the range to be moved and press soft key [CRSR�].
4 Move the cursor to the end of the range to be moved and press soft key [�CRSR] or [�BTTM](in the latter case, the range to the end of the program is copied regardless of the position of the cursor).
5 Enter the number of the new program (with only numeric keys) and
press the INPUT key.
6 Press soft key [EXEC].
9.6.3 Moving Part of a Program
CRSR�
EXEC
0 9Numeric keys
�CRSR �BTTM
MOVE
�
OPERATION9. EDITING PROGRAMS B–64124EN/01
614
Another program can be inserted at an arbitrary position in the current program.
Oxxxx
Before merge
B
Oyyyy
Merge
Fig. 9.6.4 Merging a program at a specified location
A
Oxxxx
After merge
B
Oyyyy
B
A
C
C
Merge location
In Fig. 9.6.4, the program with program number XXXX is merged with the program with program number YYYY. The OYYYY program remains unchanged after merge operation.
Procedure for merging a program
1 Perform steps 1 to 5 in III–9.6.1.
2 Check that the screen for the program to be edited is selected and press soft key [MERGE].
3 Move the cursor to the position at which another program is to be inserted and press soft key [�’CRSR] or [�BTTM’](in the latter case, the end of the current program is displayed).
4 Enter the number of the program to be inserted (with only numeric
keys) and press the INPUT key.
5 Press soft key [EXEC]. The program with the number specified in step 4 is inserted before the cursor positioned in step 3.
9.6.4 Merging a Program
EXEC
0 9
�’CRSR �BTTM’
MERGE
Numeric keys �
OPERATIONB–64124EN/01 9. EDITING PROGRAMS
615
The setting of an editing range start point with [CRSR�] can be changed freely until an editing range end point is set with [�CRSR] or [�BTTM]. If an editing range start point is set after an editing range end point, the editing range must be reset starting with a start point. The setting of an editing range start point and end point remains valid until an operation is performed to invalidate the setting. One of the following operations invalidates a setting:
⋅ An edit operation other than address search, word search/scan, and search for the start of a program is performed after a start point or end point is set.
⋅ Processing is returned to operation selection after a start point or end point is set.
In copying program and moving program, if [EXEC] is pressed without specifying a program number after an editing range end point is set, a program with program number O0000 is registered as a work program. This O0000 program has the following features: ⋅ The program can be edited in the same way as a general program.
(Do not run the program.)
⋅ If a copy or move operation is newly performed, the previous information is deleted at execution time, and newly set information (all or part of the program) is reregistered. (In merge operation, the previous information is not deleted.) However, the program, when selected for foreground operation, cannot be reregistered in the background. (A BP/S alarm No. 140 is raised.) When the program is reregistered, a free area is produced. Delete such a free area with the
RESET key.
⋅ When the program becomes unnecessary, delete the program by a normal editing operation.
When the system is waiting for a program number to be entered, no edit operation can be performed.
If a program number is specified by 5 or more digits, a format error is generated.
9.6.5 Supplementary Explanation for Copying, Moving and Merging
Explanations
� Setting an editing range
� Without specifying a program number
� Editing when the system waiting for a program number to be entered
Limitations
� 8� ��� �� ��"��� ���
���"� �� ���
OPERATION9. EDITING PROGRAMS B–64124EN/01
616
�� � ��< �������
7�
���
��+��F ����+� ' �(��'�'� 1)'�� ��&F' * �� ' ��� ' *
� &��*��+� ��&F �� ' ��� '� '� ��+' � �%�
�)� &�1�� 1�� ' ���(& �% %(�' * ��&F' *0 +�3' *0 ��
' ��� ' * � &��*��+ � % +�+��F (��% ��� �%' ' * +(�
�� ������%� 2)� )'� ����+ ���(��0 &���� )� ��F
1)'�� &����' * �( � '� ��F � D �F )� &��*��+ ��' * �%' �% '� %��� �%�
PROG
RESET
Alarm
OPERATIONB–64124EN/01 9. EDITING PROGRAMS
617
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 hange of words or addresses
1 Perform steps 1 to 5 in III–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 adress 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] Y 2 0 0 [AFTER][EXEC]
[CHANGE] X 1 0 0 Y 2 0 0 [BEFORE]
X 3 0 [AFTER][EXEC]
[CHANGE] I F [BEFORE] W H I L E [AFTER]
[EXEC]
[CHANGE] X [BEFORE] , C 1 0 [AFTER][EXEC]
9.6.6 Replacement of Words and Addresses
EXEC
BEFORE
CHANGE
AFTER
1–EXECSKIP
Examples
� Replace X100 with Y200
� Replace X100Y200 with X30
� Replace IF with WHILE
� Replace X with ,C10
OPERATION9. EDITING PROGRAMS B–64124EN/01
618
The following custom macro words are replaceable: IF, WHILE, GOTO, END, DO, BPRNT, DPRINT, 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.
Up to 15 characters can be specified for words before or after replacement. (Sixteen or more characters cannot be specified.)
Words before or after replacement must start with a character representing an address.(A format error occurs.)
Explanation
� Replacing custom macros
Restrictions
� The number of characters for replacement
� The characters for replacement
OPERATIONB–64124EN/01 9. EDITING PROGRAMS
619
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–10.1 for the comments of a program.
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 CRT 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 ;
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 EXP → EX THEN → TH POPEN → PO BPRNT → BP DPRNT → DP PCLOS → PC (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.
9.7 EDITING OF CUSTOM MACROS
Explanations
� Editing unit
� Abbreviations of custom macro word
OPERATION9. EDITING PROGRAMS B–64124EN/01
620
Editing a program while executing another program is called background editing. The method of editing is the same as for ordinary editing (foreground editing). A program edited in the background should be registered in foreground program memory by performing the following operation: During background editing, all programs cannot be deleted at once.
Procedure for background editing
1 Enter EDIT or MEMORY mode. Memory mode is allowed even while the program is being executed.
2 Press function key PROG .
3 Press soft key [(OPRT)], then press soft key [BG–EDT]. The background editing screen is displayed (PROGRAM (BG–EDIT) is displayed at the top left of the screen).
4 Edit a program on the background editing screen in the same way as for ordinary program editing.
5 After editing is completed, press soft key [(OPRT)], then press soft key [BG–EDT]. The edited program is registered in foreground program memory.
Alarms that may occur during background editing do not affect foreground operation. Conversely, alarms that may occur during foreground operation do not affect background editing. In background editing, if an attempt is made to edit a program selected for foreground operation, a BP/S alarm (No. 140) is raised. On the other hand, if an attempt is made to select a program subjected to background editing during foreground operation (by means of subprogram calling or program number search operation using an external signal), a P/S alarm (Nos. 059, 078) is raised in foreground operation. As with foreground program editing, P/S alarms occur in background editing. However, to distinguish these alarms from foreground alarms, BP/S is displayed in the data input line on the background editing screen.
9.8 BACKGROUND EDITING
Explanation
� Alarms during background editing
OPERATIONB–64124EN/01 9. EDITING PROGRAMS
621
The password function (bit 4 (NE9) of parameter No. 3202) can be locked using parameter No. 3210 (PASSWD) and parameter No. 3211 (KEYWD) to protect program Nos. 9000 to 9999. In the locked state, parameter NE9 cannot be set to 0. In this state, program Nos. 9000 to 9999 cannot be modified unless the 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
1 Set the MDI mode.
2 Enable parameter writing. At this time, P/S alarm No. 100 is issued on the CNC.
3 Set parameter No. 3210 (PASSWD). At this time, the locked state is set.
4 Disable parameter writing.
5 Press the RESET key to release the alarm state.
1 Set the MDI mode.
2 Enable parameter writing. At this time, P/S alarm No. 100 is issued on the CNC.
3 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.
4 Set bit 4 (NE9) of parameter No. 3202 to 0.
5 Disable parameter writing.
6 Press the RESET key to release the alarm state.
7 Subprograms from program Nos. 9000 to 9999 can now be edited.
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.
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.
9.9 PASSWORD FUNCTION
;��%��"
9����%��"
Explanations � Setting parameter
PASSWD
� Changing parameter PASSWD
OPERATION9. EDITING PROGRAMS B–64124EN/01
622
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.
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 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.
� Setting 0 in parameter PASSWD
� Re–locking
OPERATIONB–64124EN/01 10. CREATING PROGRAMS
623
10 CREATING PROGRAMS Programs can be created using any of the following methods:
⋅ CREATING PROGRAMS USING THE MDI PANEL ⋅ PROGRAMMING IN TEACH IN MODE ⋅ CONVERSATIONAL AUTOMATIC PROGRAMMING FUNCTION ⋅ MANUAL GUIDE 0i ⋅ AUTOMATIC PROGRAM PREPARATION DEVICE (FANUC
SYSTEM P)
This chapter describes creating programs using the MDI panel, Teach IN mode, and conversational programming with graphic function. This chapter also describes the automatic insertion of sequence numbers.
OPERATION10. CREATING PROGRAMS B–64124EN/01
624
Programs can be created in the EDIT mode using the program editing functions described in III–9.
Procedure for Creating Programs Using the MDI Panel
1 Enter the EDIT mode.
2 Press the PROG key.
3 Press address key O and enter the program number.
4 Press the INSERT key.
5 Create a program using the program editing functions described in III–9.
Comments can be written in a program using the control in/out codes.
Example) O0001 (FANUC SERIES 16) ; M08 (COOLANT ON) ;
When the INSERT key is pressed after the control–out code “(”,
comments, and control–in code “)” have been typed, the typed comments are registered.
When the INSERT key is pressed midway through comments, to enter
the rest of comments later, the data typed before the INSERT 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.
Note the following to enter a comment:
Control–in code “)” cannot be registered by itself.
Comments entered after the INSERT key is pressed must not begin with
a number, space, or address O.
If an abbreviation for a macro is entered, the abbreviation is converted into a macro word and registered (see Section 9.7).
Address O and subsequent numbers, or a space can be entered but are omitted when registered.
10.1 CREATING PROGRAMS USING THE MDI PANEL
Procedure
Explanation
� Comments in a program
OPERATIONB–64124EN/01 10. CREATING PROGRAMS
625
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 3216.
Procedure for automatic insertion of sequence numbers
1 Set 1 for SEQUENCE NO. (see III–11.4.3).
2 Enter the EDIT mode.
3 Press PROG to display the program screen.
4 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 INSERT key, sequence numbers are automatically inserted starting
with 0. Change the initial value, if required, according to step 10, then skip to step 7.
5 Press address key N and enter the initial value of N.
6 Press INSERT .
7 Enter each word of a block.
8 Press EOB .
10.2 AUTOMATIC INSERTION OF SEQUENCE NUMBERS
Procedure
OPERATION10. CREATING PROGRAMS B–64124EN/01
626
9 Press INSERT . 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.
EDIT * * * * * * * * * * 13 : 18 : 08
PROGRAM O0040 N00012
O0040 ; N10 G92 X0 Y0 Z0 ;
%
LIB C.A.P (OPRT)
_
N12
PRGRM
10 In the example above, if N12 is not necessary in the next block,
pressing the DELETE key after N12 is displayed deletes N12.
To insert N100 in the next block instead of N12, enter N100 and
press ALTER after N12 is displayed. N100 is registered and initial
value is changed to 100.
OPERATIONB–64124EN/01 10. CREATING PROGRAMS
627
The TEACH IN JOG mode and TEACH IN HANDLE mode are added. In these modes, a machine position along the X, Y, and Z axes obtained by manual operation is stored in memory as a program position to create a program. The words other than X, Y, and Z, which include O, N, G, R, F, C, M, S, T, P, Q, and EOB, can be stored in memory in the same way as in EDIT mode.
Procedure for Creating Programs in TEACH IN Mode
The procedure described below can be used to store a machine position along the X, Y, and Z axes.
1 Select the TEACH IN JOG mode or TEACH IN HANDLE mode.
2 Move the tool to the desired position with jog or handle.
3 Press PROG 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 machine position along each axis is to be registered (inserted).
4 Key in address X .
5 Press the INSERT key. Then a machine position along the X axis is
stored in memory.
(Example) X10.521 Absolute positon (for mm input) X10521 Data stored in memory
6 Similarly, key in Y , then press the INSERT key. Then a machine
position along the Y axis is stored in memory. Further, key in Z ,
then press the INSERT key. Then a machine position along the Z axis is
stored in memory.
All coordinates stored using this method are absolute coordinates.
O1234 ; N1 G92 X10000 Y0 Z10000 ; N2 G00 G90 X3025 Y23723 ; N3 G01 Z–325 F300 ; N4 M02 ;
X
Z
Y
P0
(10.0, 0, 10.0)
P1
P2
(3.025, 23.723, 10.0)
(3.025, 23.723, –0.325)
10.3 CREATING PROGRAMS IN TEACH IN MODE (PLAYBACK)
*��������
Examples
OPERATION10. CREATING PROGRAMS B–64124EN/01
628
1 Set the setting data SEQUENCE NO. to 1 (on). (The incremental value parameter (No. 3216) is assumed to be “1”.)
2 Select the TEACH IN HANDLE mode.
3 Make positioning at position P0 by the manual pulse generator.
4 Select the program screen.
5 Enter program number O1234 as follows:
O 1 2 3 4 INSERT
This operation registers program number O1234 in memory. Next, press the following keys:
EOB INSERT
An EOB (;) is entered after program number O1234. Because no number is specified after N, sequence numbers are automatically inserted for N0 and the first block (N1) is registered in memory.
6 Enter the P0 machine position for data of the first block as follows:
G 9 2 INSERT X INSERT Y INSERT Z
INSERT EOB INSERT
This operation registers G92X10000Y0Z10000; in memory. The automatic sequence number insertion function registers N2 of the second block in memory.
7 Position the tool at P1 with the manual pulse generator.
8 Enter the P1 machine position for data of the second block as follows:
G 0 0 INSERT G 9 0 X INSERT Y
INSERT EOB INSERT
This operation registers G00G90X3025Z23723; in memory. The automatic sequence number insertion function registers N3 of the third block in memory.
9 Position the tool at P2 with the manual pulse generator.
10 Enter the P2 machine position for data of the third block as follows:
G 0 1 INSERT Z INSERT F 3 0 0
INSERT EOB INSERT
This operation registers G01Z –325F300; in memory. The automatic sequence number insertion function registers N4 of the fourth block in memory.
11 Register M02; in memory as follows:
M 0 2 INSERT EOB INSERT
N5 indicating the fifth block is stored in memory using the automatic
sequence number insertion function. Press the DELETE key to delete it.
This completes the registration of the sample program.
OPERATIONB–64124EN/01 10. CREATING PROGRAMS
629
The contents of memory can be checked in the TEACH IN mode by using the same procedure as in EDIT mode.
PROGRAM O1234 N00004
(RELATIVE) (ABSOLUTE) X –6.975 X 3.025 Y 23.723 Y 23.723 Z –10.325 Z –0.325
O1234 ; N1 G92 X10000 Y0 Z10000 ; N2 G00 G90 X3025 Y23723 ; N3 G01 Z–325 F300 ; N4 M02 %
THND * * * * * * * * * * 14 : 17 : 27
LIB (OPRT)
;
_
PRGRM
When a value is keyed in after keying in address X , Y , or Z ,
then the INSERT key is pressed, the value keyed in for a machine position
is added for registration. This operation is useful to correct a machine position by key–in operation.
Commands to be entered before and after a machine position must be entered before and after the machine position is registered, by using the same operation as program editing in EDIT mode.
Explanations
� Checking contents of the memory
� Registering a position with compensation
� Registering commands other than position commands
OPERATION10. CREATING PROGRAMS B–64124EN/01
630
Programs can be created block after block on the conversational screen while displaying the G code menu. Blocks in a program can be modified, inserted, or deleted using the G code menu and conversational screen.
Procedure for Conversational Programming with Graphic Function
1 Enter the EDIT mode.
2 Press PROG . If no program is registered, the following screen is
displayed. If a program is registered, the program currently selected is displayed.
PROGRAM O0000 N0000
EDIT * * * * * * * * * * 11 : 59 : 46
DIR C.A.P (OPRT)
_
PRGRM
3 Key in the program number of a program to be registered after keying
in address O, then press INSERT . For example, when a program with
program number 10 is to be registered, key in O 1 0 , then
press INSERT . This registers a new program O0010.
10.4 CONVERSATIONAL PROGRAMMING WITH GRAPHIC FUNCTION
Procedure 1 Creating a program
OPERATIONB–64124EN/01 10. CREATING PROGRAMS
631
4 Press the [C.A.P] soft key. The following G code menu is displayed on the screen. If soft keys different from those shown in step 2 are displayed, press the menu return key to display the correct soft keys.
PROGRAM O1234 N00004 G00 : POSITIONING G01 : LINEAR IPL G02 : CIRCULAR IPL. CW G03 : CIRCULAR IPL. CCW G04 : DWELL G09 : EXACT STOP CHECK G10 : OFFSET&TLC VALUE SETTING (0) G17 : XY PLANE G18 : ZX PLANE G19 : YZ PLANE G20 : INCH G21 : METRIC
_ EDIT * * * * * * * * * * 14 : 26 : 15
BLOCKG.MENUPRGRM
5 Key in the G code corresponding to a function to be programmed. When the positioning function is desired, for example, the G code menu lists the function with the G code G00. So key in G00. If the screen does not indicate a function to be programmed, press the page
key PAGE
to display the next G code menu screen. Repeat this
operation until a desired function appears. If a desired function is not a G code, key in no data.
6 Press the soft key [BLOCK] to display a detailed screen for a keyed in G code. The figure below shows an example of detailed screen for G00.
* * * * * * * * * *
PROGRAM G00 : POSITIONING
O1234 N00000
G00 G G G X 100. Y 50.0 Z (X, Y, Z, ) H OFFSET NO. M S T B :
EDIT 14 : 32 : 57
(OPRT)PRGRM G.MENU BLOCK
OPERATION10. CREATING PROGRAMS B–64124EN/01
632
When no keys are pressed, the standard details screen is displayed.
* * * * * * * * * *
O0010 N00000PROGRAM
G G G G X Y Z H F R M S T B I J K P Q L :
EDIT 14 : 41 : 10
(OPRT)PRGRM G.MENU BLOCK
7 Move the cursor to the block to be modified on the program screen. At this time, a data address with the cursor blinks.
8 Enter numeric data by pressing the numeric keys and press the
[INPUT] soft key or INPUT key. This completes the input of one data
item.
9 Repeat this operation until all data required for the entered G code is entered.
10 Press the INSERT key. This completes the registration of data of one
block in program memory. On the screen, the G code menu screen is displayed, allowing the user to enter data for another block. Repeat the procedure starting with 5 as required.
11 After registering all programs, press the [PRGRM] soft key. The registered programs are converted to the converssational format and displayed.
12 Press the RESET key to return to the program head.
1 Move the cursor to the block to be modified on the program screen and press the [C.A.P] soft key. Or, press the [C.A.P] soft key first to
display the conversational screen, then press the PAGE
or PAGE
page
key until the block to be modified is displayed.
2 When data other than a G code is to be altered, just move the cursor to the data and key in a desired value, then press the [INPUT] soft key or
INPUT key.
3 When a G code is to be altered, press the menu return key and the soft key [G.MENU]. Then the G code menu appears. Select a desired G code, then key in the value. For example, to specify a cutting feed, since the G code menu indicates G01, key in G01. Then press the soft key [BLOCK]. The detailed screen of the G code is displayed, so enter the data.
Procedure & .����!��" a block
OPERATIONB–64124EN/01 10. CREATING PROGRAMS
633
4 After data is changed completely, press the ALTER key. This operation
replaces an entire block of a program.
1 On the conversational screen, display the block immediately before a new block is to be inserted, by using the page keys. On the program screen, move the cursor with the page keys and cursor keys to immediately before the point where a new block is to be inserted.
2 Press the soft key [G.MENU] to display the G code menu. Then enter new block data.
3 When input of one block of data is completed in step 2, press the INSERT
key. This operation inserts a block of data.
1 On the conversational screen, display the contents of a block to be
deleted, then press the DELETE key.
2 The contents of the block displayed are deleted from program memory. Then the contents of the next block are displayed on the conversational screen.
Procedure ( Inserting a block
Procedure + Deleting a block
OPERATION11. SETTING AND DISPLAYING DATA B–64124EN/01
634
11 SETTING AND DISPLAYING DATA To operate a CNC machine tool, various data must be set on the MDI panel for the CNC. The operator can monitor the state of operation with data displayed during operation. This chapter describes how to display and set data for each function.
The screen transition for when each function key on the MDI panel is pressed is shown below. The subsections referenced for each screen are also shown. See the appropriate subsection for details of each screen and the setting procedure on the screen. See other chapters for screens not described in this chapter.
See Chapter 7 for the screen that appears when function key MESSAGE is
pressed. See Chapter 12 for the screen that appears when function key
GRAPH CUSTOM is pressed. See Chapter 13 for the screen that appears when function
key HELP is pressed. Refer to the manual issued by the machine tool
builder for the screen that appears when function key GRAPHCUSTOM is pressed.
The machine may have a data protection key to protect part programs, tool compensation values, setting data, and custom macro variables. Refer to the manual issued by the machine tool builder for where the data protection key is located and how to use it.
General
Explanations
MESSAGE
PROG
SYSTEM
OFFSET SETTINGPOSHELP