Mitsubishi Electronics Mitsubishi Digital Electronics Video Gaming Accessories FX3G ユーザーズマニュアル

ページ / 936
737
FX
3G
/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
FN
C
275
-F
N
C
27
9
Da
ta
 
Trans
fe
r 3
32
FN
C
280-
FN
C
289
H
igh Speed 
Pr
ocessing 2
33
FN
C
290-
FN
C
299
E
xtension Fi
le 
R
egister
34
FN
C
300-
FN
C
30
5
FX
3U
-C
F-A
D
P
35
SFC•
STL
Pr
ogr
am
m
ing
36
In
ter
rupt
 
Funct
ion
37
S
pecial
 D
evice
38
Er
ro
r C
ode
A
Ve
rs
ion U
In
fo
rm
atio
n
B
Executi
on
 T
im
es
34.1
FNC 300 – FLCRT / File create
check
Outline
The FLCRT instruction creates a file inside the CompactFlash
TM
 card mounted in the FX
3U
-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
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
3 3
3
3 3
3 3
3
3
3 3
3
n
3 3
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 parameter
File name
  
S
1
  
S
1