Mitsubishi Electronics FX3G User Manual

Page of 964
744
FX
3S
/FX
3G
/FX
3GC
/FX
3U
/FX
3UC
 Series
Programming Manual - Basic & Applied Instruction Edition
34 FX3U-CF-ADP Applied Instructions – FNC300 to FNC305
34.2 FNC301 – FLDEL / File delete
CF card format
34.2
FNC301 – FLDEL / File delete
CF card format
Outline
The FLDEL instruction deletes files stored in the CompactFlash
TM
 card, or formats the CompactFlash
TM 
card.
→ For explanation of the instruction, refer to the CF-ADP Manual.
1. Instruction format
2. Set data
3. Applicable devices
S: Except special data register (D)
Explanation of function and operation
1. 16-bit operation (FLDEL)
The FLDEL instruction deletes files stored in the CompactFlash
TM
 card, or formats the CompactFlash
TM
 card in the
following method.
• Specify file deletion or file formatting using 
.
- When 
 
is "K-1 (H0FFFF)", the FLDEL instruction deletes all files whose ID is 0 to 63.
- When 
 
is "K0" to "K63", the FLDEL instruction deletes the file associated with the specified file ID.
- When 
 is "K512 (H200)", the FLDEL instruction formats the CompactFlash
TM
 card.
• Specify the file deletion method or format type using 
.
- 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 regardless of the 
setting of 
.
- When 
 is "K512 (H200)", specify the format type.
K256(H100) : The FLDEL instruction formats the CompactFlash
TM
 card in FAT16 format.
For details, refer to Subsection 34.2.1.
Operand Type
Description
Data Type
File ID (Refer to Subsection 34.2.1)
16-bit binary
File delete method (Refer to Subsection 34.2.1)
16-bit binary
n
Used channel number [contents of setting : K1 = ch1, K2 = ch2]
16-bit binary
Oper-
and 
Type
Bit Devices
Word Devices
Others
System User
Digit Specification
System User
Special 
Unit
Index
Con-
stant
Real 
Number
Charac-
ter String
Pointer
X Y M T C S D .b KnX KnY KnM KnS T C D R U \G
V Z Modify K H
E
" "
P
S
S
n
FNC 301
FLDEL
Mnemonic
Operation Condition
16-bit Instruction
7 steps
FLDEL
Mnemonic
Operation Condition
Continuous
Operation
32-bit Instruction
  
S
1
  
S
2
  
S
1
  
S
2
FNC270
IVCK
n
Command
input
S
S
S
1
S
2
Command
input
FNC301
FLDEL
n
Used channel number
File delete method
File ID
  
S
1
  
S
1
  
S
1
  
S
1
  
S
2
  
S
1
  
S
2
  
S
2
  
S
1