Professional Documents
Culture Documents
How To Use Memory Card As Program Memory: FANUC Series 30 /31 /32 - Model B FANUC Series 0 FANUC Series 0
How To Use Memory Card As Program Memory: FANUC Series 30 /31 /32 - Model B FANUC Series 0 FANUC Series 0
1 Outline ··················································································· 3
1.1 Program storage file (“FANUCPRG.BIN”) format ·················································· 3
1.2 Text file format ································································································ 4
1.3 Function comparison ······················································································· 5
There are two formats to store the program in the memory card as follows.
The following operations are possible for programs on the program storage file like internal program memory.
The size of memory card capacity is much larger than internal program memory in CNC.
Therefore, larger programs can be handled by using the program storage file.
Programs can be transferred from PC to program storage file by program transfer tool (A08B-9510-J515).
Restrictions
There are following restrictions in case of using program storage file format.
Notes
After the power is turned on, program storage memory card is not mounted on CNC.
Therefore, program storage memory card cannot be used.
Please perform mount operation (Refer to “2.3 Select device of program storage memory
card”) before using the program in program storage file.
・About 4 GB program can be executed in case of using the memory card formatted in FAT32.
・Program file in the text format can be transferred to memory card from PC with program transfer tool
(A08B-9510-J515).
Restrictions
Table1.3 (a) Program storage file format and text file format
Procedure
In case of creating program storage file with PC, please refer to Appendix in following manuals.
・FANUC Series 30i/31i/32i -MODEL B OPERATOR’S MANUAL (Common to Lathe System / Machining
Center System) (B-64484EN)
・FANUC Series 0i -MODEL F OPERATOR’S MANUAL (Common to Lathe System / Machining Center
System) (B-64604EN)
・FANUC Series 0i -MODEL F Plus OPERATOR’S MANUAL (Common to Lathe System / Machining Center
System) (B-64694EN)
FANUC Series 30i/31i/32i-MODEL B
Title FANUC Series 0i - MODEL F
FANUC Series 0i - MODEL F Plus
How to use memory card as program memory
Instructions
Draw
No.
A-42148E-059
02 2019.09.25 S.Gomi Some contents have been corrected. K.Sato
Ed. Date Design Description FANUC CORPORATION Page 6/21
Date. 2018.10.31 Desig. T.Kato Apprv K. Sato
. 6/21
2.3 Select device of program storage memory card
Explanation
If you want to display and edit contents in program storage memory card, and select as main program, select
program storage memory card ([MEMCARD]) by device change operation of program list screen.
Procedure
1 Insert a program storage memory card into a card slot.
2 Press function key .
3 Press soft key [FOLDER].
4 Press soft key [(OPRT)].
5 Press soft key [DEVICE CHANGE].
6 Press soft key [MEMCARD].
Notes
In case of program storage memory card that number of folder/program is over 63, the option of memory
card program entry count extension is required.
Notes
It is possible to copy programs between internal program memory/data server/USB memory and program
storage memory card.
Procedure
1 Press the function key .
2 Press the soft key [FOLDER].
3 Press the soft key [(OPRT)].
4 Press the soft key [DEVICE CHANGE].
5 Press the soft key [MEMCARD].
6 Input file name that you want to create.
Program file name can have a maximum of 32 characters.
Program file name can have following characters.
Alphabet (Upper and lower case letter), numeric character,
"-"(minus), "+"(plus), "_"(under bar), "."(dot)
"." and ".." cannot be used since these are reserved for system use.
7 Press soft key [CREATE PROGRM]
Notes
1 The number of programs that can be created is the total number of files/folders in all folders.
2 The entry number specified in “2.2 Creating program storage file” is the maximum number of programs that
can be created.
3 Program file name cannot be repeated in a folder.
Example)
"O123" Program number 123
"O1" Program number 1
"O3000" Program number 3000
"O99999999" Program number 99999999
Procedure
1 Press the function key .
2 Press the soft key [FOLDER].
3 Press the soft key [(OPRT)].
4 Press the soft key [DEVICE CHANGE].
5 Press the soft key [MEMCARD].
6 Input folder name that you want to create.
Program file name can have a maximum of 32 characters.
Program file name can have following characters.
Alphabet (Upper and lower case letter), numeric character,
"-"(minus), "+"(plus), "_"(under bar), "."(dot)
"." and ".." cannot be used since these are reserved for system use.
7 Press soft key [CREATE FOLDER]
Notes
1 The number of programs that can be created is the total number of files/folders in all folders.
2 The entry number specified in “2.2 Creating program storage file” is the maximum number of programs that
can be created.
Procedure
1 Press the function key .
2 Press the soft key [FOLDER].
3 Press the soft key [(OPRT)].
4 Press the soft key [DEVICE CHANGE].
5 Press the soft key [MEMCARD].
6 With cursor keys[↑][↓], move the cursor to the position of file/folder that you want to rename.
In order to move among folders, you select the folder with cursor key [↑][↓]
and press MDI key<INPUT>.
7 Input new file/folder name.
8 Press the soft key [RENAME].
Notes
1 File/Folder name cannot be repeated in a folder.
2 Depending on the operation status, program cannot sometimes be renamed.
Procedure
1 Select EDIT mode.
2 Press function key .
3 Press soft key [FOLDER].
4 Press soft key [(OPRT)].
5 Press soft key [DEVICE CHANGE].
6 Press soft key [MEMCARD].
7 Move the cursor to file/folder that you want to deleted with the cursor key[↑] [↓].
Use the cursor keys [↑] and [↓] to move among folders. After selecting the folder, press the
<INPUT> key.
8 Press soft key [DELETE].
Notes
1 A folder cannot be deleted unless the folder is empty.
(An empty folder means that the folder contains neither folders nor files.)
2 Depending on the operation status, a program cannot sometimes be deleted.
3 O-9999 is input and press soft key [DELETE], a confirmation message “All delete(current folder path)” is
displayed, and you can do all delete.
Please refer to “III 11.13 Program and Folder Copy/Move Function” in following manuals for details.
・FANUC Series 30i/31i/32i -MODEL B OPERATOR’S MANUAL (Common to Lathe System / Machining
Center System) (B-64484EN)
You can select memory card program as main program to perform memory operation.
Procedure
- selecting as main program
Memory card program can be selected as main program of auto operation in mem mode.
- sub program(call based on M98/G72.1/G72.2)
- macro program(call based on G65/G66/G66.1/M96)
Sub program/macro program in folder that main program exists is called as follows.
Sub program call(M98)
Macro call(G65,G66,G66.1)
Macro interrupt(M96)
Figure copying(G72.1,G72.2)
Program in folder that main program exists is not found, program is searched in following folder.
Common program folder in CNC_MEM device(program storage memory of CNC)
Notes
Option is necessary for Macro call or macro interrupt or figure copying.
- sub program(call based on M code/S code/T code/particular address/second auxiliary function code)
- macro program(call based on G code/M code)
Following sub program/macro program call programs in CNC_MEM device (internal program memory of
CNC).
Sub program call based on M code/S code/T code/particular address/second auxiliary function
code.
Macro program call based on G code/M code.
CNC searches program folder in the following order, and calls a program found first.
1. The common program directory of the initial directories.
2. MTB dedicated directory 2 of the initial directories.
3. MTB dedicated directory 1 of the initial directories.
4. The system directory of the initial directories.
The parameter No.3457 is used to set a search folder.
Notes
It is possible for memory card program to command sub program call based on M code/S code/T
code/particular address/second auxiliary function or macro program call based on G code/M code, but a called
program is in CNC_MEM device (program storage memory of CNC).
Procedure
1 Press function key .
2 Press soft key [FOLDER].
3 Press soft key [(OPRT)].
4 Press soft key [DEVICE CHANGE].
5 Press soft key [UNMOUNT].
Program storage memory card is unmounted from CNC by the above operation.
Notes
1 Soft key [UNMOUNT] is displayed, after CNC recognizes “program storage memory card” by device change
operation.
2 When the main program is a memory card program, the main program becomes no selective state by the
unmount operation.
Notes
- Do not take out the program storage memory card while executing the editing of the memory card
program. There is a possibility that data in memory card is damaged.
- If the editing operation is completed, the edited content is saved even if the power supply of CNC is turned
off.
- When the program storage memory card is taken out, it is necessary to operate "Unmount". When the card
is taken out without operating "Unmount", and the access to the card is generated, it becomes the SR1964
alarm or IO1030 alarm.
When the SR1964 alarm is generated
The release of the alarm is reset after "Unmount" is operated.
When the IO1030 alarm is generated
Please turn power supply of CNC off.
- It is dangerous to exchange the memory cards without "Unmount" operation and never do, please.
- Before the power supply of CNC is turned off, please operate “Unmount”.
FANUC Series 30i/31i/32i-MODEL B
Title FANUC Series 0i - MODEL F
FANUC Series 0i - MODEL F Plus
How to use memory card as program memory
Instructions
Draw
No.
A-42148E-059
02 2019.09.25 S.Gomi Some contents have been corrected. K.Sato
Ed. Date Design Description FANUC CORPORATION Page 15/21
Date. 2018.10.31 Desig. T.Kato Apprv K. Sato
. 15/21
2.8 FOCAS2 function related to program storage memory card
Explanation
FOCAS2 functions available for program storage file are shown in following table.
It is necessary for using FOCAS2 function for program storage file to confirm program storage memory card
is mounted by cnc_mcdp_mount function.
When program storage memory card device is used by FOCAS2 function, the device name specifies
“MEMCARD".
Table 2.8 (a) FOCAS2 functions available for program storage file
Function name Content of function
cnc_dwnstart4 Beginning of output of NC data for registration (4)
cnc_download4 Output of NC data for registration (4)
cnc_dwnend4 End of output of NC data for registration (4)
cnc_upstart4 Beginning of read of NC data (4)
cnc_upload4 Read of NC data (4)
cnc_upend4 End of read of NC data (4)
cnc_exeprgname Read of program name under execution
cnc_exeprgname2 Read of program name under execution (2)
cnc_rdseqnum Read of sequence number under execution
cnc_seqsrch Search for sequence number
cnc_rewind Rewind cursor
cnc_rdblkcount Read of block counter
cnc_rdexecprog Read of program when being executing it
cnc_rdpdf_drive Read of program storage drive information
cnc_rdpdf_inf Read of program storage file information
cnc_rdpdf_curdir Read of current folder
cnc_wrpdf_curdir Setting of current folder
cnc_rdpdf_subdir Read of subfolder
cnc_rdpdf_alldir Read of folder/program list
cnc_rdpdf_subdirn Getting of number of folders and number of programs in specified folder
cnc_pdf_add Making of folder/program
cnc_pdf_del Deletion of folder program
cnc_pdf_delall Deletion of all programs
cnc_pdf_rename Renaming of folder/program
cnc_pdf_copy Copy of program (*1)
cnc_pdf_move Movement of program (*1)
cnc_pdf_rdmain Getting of main program information
cnc_pdf_slctmain Selection of the main program
cnc_rdpdf_line Reading of program of each line(for arbitrary program name)
cnc_wrpdf_line Writing of program of each line(for arbitrary program name)
cnc_pdf_delline Deletion of program of each line(for arbitrary program name)
cnc_pdf_searchword Search of character string in program (for arbitrary program name)
cnc_pdf_searchresult Getting of search result of character string in program (for arbitrary program name)
cnc_pdf_rdactpt Getting of execution pointer(for arbitrary program name)
cnc_pdf_wractpt Setting of execution pointer(for arbitrary program name)
cnc_rdpdf_line Read of program of each line(for arbitrary program name)
Procedure
1 The recognition of the program storage memory card is confirmed by the cnc_mcdp_mountchk function.
When the program storage memory card is not recognized, the installation of the program storage memory
card is recognized by the cnc_mcdp_mount function.
2 When make/edit/manage operation of the memory card program is done by the FOCAS2 function shown in
Table 2.8 (a), “MEMCARD" is specified for the device name or the drive name. As for other operations, it
is similar to the CNC_MEM device (program storage memory of CNC).
3 When exchanging program storage memory cards or using the memory card for usual usage (I/O of data
etc.), the recognition of the installation of the program storage memory card is released by the
cnc_mcdp_unmount function.
HSSB/Ethernet
Copy/Move
Carry
Fig 3.1.1(a) File transfer to memory card from PC and USB memory
- To optimize the memory card for CNC unit, perform physical format of the memory card by following
operation.
The program up to about 4GB can be operated in the case of a memory card formatted with FAT32.
You can do quick format and physical format at the following screen.
- Memory card folder screen
- NC data output screen
- I/O screen of PMC maintenance
- IPL screen
Soft key on memory card folder screen and NC data output screen is switched by bit 1 (MFT) of parameter
No.139.
Fig. 3.1.2 (a) Soft key on Memory card folder screen (10.4-inch display unit)
Fig. 3.1.2 (b) Soft key on memory card folder screen (8.4-inch display unit)
Fig. 3.1.2 (c) Soft key on memory card folder screen (10.4-inch display unit)
Fig. 3.1.2 (d) Soft key on memory card folder screen (8.4-inch display unit)
Parameter
#7 #6 #5 #4 #3 #2 #1 #0
139 MFT
Procedure
1 Move the cursor to the file for DNC operation in the list screen of the memory card, and press [DNC set] to
select the file for DNC operation.
2 Press the cycle start switch and execute the selected file.
Notes
1 Delete all schedule data when you select the DNC operation file. The DNC operation and the schedule
operation cannot be specified at the same time.
2 DNC release operation cannot be done while executing the DNC operation.
3 When you do the device change while DNC setting is completed, please operate DNC setting again after
releasing DNC setting once.