737
FX3G/
FX
3U
/FX
3UC
Series Programmable Controllers
Programming Manual - Basic & Applied Instruction Edition
34 FX3U-CF-ADP Applied Instructions – FNC300 to FNC305
34.1 FNC 300 – FLCRT / File create
•
check
31
FNC275-FNC279
Data
Transfer 3
32
FNC280-FNC289
High Speed
Processing 2
33
FNC290-FNC299
Extension File
Register
34
FNC300-FNC305
FX
3U
-CF-ADP
35
SFC•STL
Programming
36
Interrupt
Function
37
Special Device
38
Error Code
A
Version Up
Information
B
Execution Times
34.1 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 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
33 3 33
33 3 3
33 3
n 33
FNC 300
FLCRT
Mnemonic Operation Condition
16-bit Instruction
9 steps
FLCRT
Mnemonic Operation Condition
Continuous
Operation
32-bit Instruction
S
1
S
2
S
3
S
1
S
2
S
3
FNC300
FLCRT
n
Command
input
S
1
S
2
S
3
File ID
Used channel number
File creation paramete
r
File name
S
1
S
1