Справочник Пользователя для Mitsubishi Electronics FX3U-CF-ADP

Скачать
Страница из 124
8 CF-ADP Applied Instructions Explanation
8.4 FNC 301 - FLDEL / File delete•CF card format
52
FX
3U
-CF-ADP User's Manual
8.4.1
Detailed explanation of setting data
Details of the setting data in the FLDEL instruction are as shown below.
Cautions
When the file ID "K0 (FIFO file)" or "K-1 (all files)" is specified, it may take approximately 1 minute to delete
the files depending on the number of stored files.
Program Example
1) Program Example 1
This program deletes the file whose ID is "1" when X000 turns ON.
Channel number 1 is used.
2) Program Example 2
This program deletes all files when X000 turns ON.
Channel number 1 is used.
Setting items
Description
Data Type
File ID
K-1(H0FFFF) : The FLDEL instruction deletes all files.
K0 to K63 : The FLDEL instruction deletes a file associated with the specified file ID.
K512(H200) : The FLDEL instruction formats the CompactFlash
TM
 card.
16-bit binary
When 
 is "K-1 (H0FFFF)" or "K0" to "K63"
Specify the deletion method.
K0 : The FLDEL instruction deletes the specified file.
K1 : The FLDEL instruction deletes the association between the file name and the file ID 
         (but does not delete the file itself).
However, when the file ID specified in 
 is "0", the FLDEL instruction deletes the file
itself without regard to the setting of 
.  
16-bit binary
When 
 is "K512 (H200)"
Specify the format type.
K256(H100) : The FLDEL instruction formats the CompactFlash
TM
 card in the FAT16
format.
n
Channel number used by the CF-ADP
K1 : ch1
K2 : ch2
16-bit binary
  
S
1
  
S
2
  
S
1
  
S
1
  
S
2
  
S
1
X000
M0
SET
FNC301
FLDEL
K1
K0
K1
M0
M8029
Execution
completion
M0
RST
M8329
 Abnormal end
M0
RST
X000
M0
SET
FNC301
FLDEL
K-1
K0
K1
M0
M8029
Execution
completion
M0
RST
M8329
 Abnormal end
M0
RST