Mitsubishi Electronics FX3U-CF-ADP Video Gaming Accessories User Manual


 
8 CF-ADP Applied Instructions Explanation
8.3 FNC 300 - FLCRT / File create•check
48
FX3U-CF-ADP User's Manual
8.3 FNC 300 - FLCRT / File create•check
Outline
The FLCRT instruction creates a file inside the CompactFlash
TM
card mounted in the FX3U-CF-ADP. When
executed after creation of a new file, the FLCRT instruction checks the association with the file ID, and
evaluates it.
1. Instruction format
2. Set data
3. Applicable devices
Explanation of function and operation
1. 16-bit operation (FLCRT)
When the file ID is "K0"
When is "K0", the FLCRT instruction creates a FIFO file.
When the PLC creates two or more files for FIFO file, and executes FIFO (first in, first out) in units of files.
The PLC keeps the latest file, and deletes older files so that the total capacity of FIFO files and other files
does not exceed the specified capacity.
When the file ID is "K1" to "K63"
When is "K1" to "K63", the FLCRT instruction creates a file having the specified file name.
Sequence programs use the file ID for specifying a file. Accordingly, each file name saved in the
CompactFlash
TM
card is associated with the file ID, and controlled by the file ID table.
If a file having the specified file name already exists and is registered in the file ID table, the PLC finishes the
FLCRT instruction without executing any processing.
If a file having the specified name already exists but is not registered in the file ID table, the PLC only
registers the existing file to the file ID table.
Operand Type Description Data Type
File ID (Refer to Subsection 8.3.1) 16-bit binary
File name (Refer to Subsection 8.3.1) Character string
File creation parameter (Refer to Subsection 8.3.1) 16-bit binary
n Used channel number [contents of setting : K1 = ch1, K2 = ch2] 16-bit binary
Operand
Type
Bit Devices Word Devices Others
System User Digit Specification System User
Special
Unit
Index
Con-
stant
Real
Number
Charac-
ter String
Pointer
XYMTCS
D.b
KnX KnY KnM KnS T C D R
U\G
V Z Modify K H E
""
P
n
FNC 300
FLCRT
Mnemonic Operation Condition
16-bit Instruction
9 steps
FLCRT
Mnemonic Operation Condition
Continuous
Operation
32-bit Instruction
S1
S2
S
3
S1
S2
S
3
FNC300
FLCRT
n
Command
input
S1
S2
S3
File ID
Used channel number
File creation paramete
r
File name
S1
S1