742
FX3S/FX3G/FX3GC/FX3U/FX3UC Series
Programming Manual - Basic & Applied Instruction Edition
34 FX3U-CF-ADP Applied Instructions – FNC300 to FNC305
34.1 FNC300 – FLCRT / File create
•
check
34.1 FNC300 – 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.
→ 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 (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 34.1.1) 16-bit binary
File name (Refer to Subsection 34.1.1) Character string
File creation parameter (Refer to Subsection 34.1.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
XYMTCSD
.b KnX KnY KnM KnS T C D R
U\G
V Z Modify K H E "
"P
S
S
S
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