Mitsubishi Electronics FXCPU Video Game Controller User Manual


 
34 Applied Instructions (FX3U-CF-ADP)
34.2 FLDEL / File delete • CF card format
780
FXCPU Structured Programming Manual
[Basic & Applied Instruction]
Function and operation explanation
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.
1) Specify file deletion or file formatting using .
a) When is "K-1 (H0FFFF)", the FLDEL instruction deletes all files whose ID is 0 to 63.
b) When is "K0" to "K63", the FLDEL instruction deletes the file associated with the specified file ID.
c) When is "K512 (H200)", the FLDEL instruction formats the CompactFlash
TM
card.
2) Specify the file deletion method or format type using .
a) 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 without regard
to the setting of .
b) 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 Detailed explanation of setting data.
Detailed explanation of setting data
Details of the setting data in the FLDEL instruction are as shown below.
Cautions
1) 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.
2) The instruction is provided in the FX
3U and FX3UC PLCs Ver. 2.61 or later.
3) It is not permitted to use an "FLCRT, FLDEL, FLWR, FLRD, FLCMD or FLSTRD" instruction and a
following instruction for the same port:
- "RS or RS2" instruction
- "ADPRW" instruction
- "IVCK, IVDR, IVRD, IVWR, IVBWR or IVMC" instruction
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.
ANY16
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 .
ANY16
When is "K512 (H200)"
Specify the format type.
K256(H100) : The FLDEL instruction formats the CompactFlash
TM
card in the FAT16
format.
Channel number used by the CF-ADP
K1 : ch1
K2 : ch2
ANY16
Command input
File ID
File delete method
Used channel number
FLDEL
EN ENO
s1
s2
n