Mitsubishi Electronics FX3G User Manual

Page of 964
743
FX
3S
/FX
3G
/FX
3GC
/FX
3U
/FX
3UC
 Series
Programming Manual - Basic & Applied Instruction Edition
34 FX3U-CF-ADP Applied Instructions – FNC300 to FNC305
34.1 FNC300 – FLCRT / File create
check
31
FNC277
-F
NC2
79
Da
ta
 
Trans
fer 3
32
FNC28
0-F
NC
289
H
igh-Speed 
Process
ing 2
33
FNC2
90-
FNC299
Ex
tensi
on Fi
le
 
Register C
ontrol
34
FN
C300-
FNC30
5
FX
3U
-C
F-
AD
P
35
SFC
•STL
Programming
36
Interrupt 
Function
37
Sp
ec
ia
l D
evi
ce
38
E
rror Code
A
Ve
rsi
on U
Inform
ati
on
B
Ex
ecuti
on
 T
imes
34.1.1 Detailed explanation of setting data
Details on the setting data in the FLCRT instruction are as shown below.
*1.
Adjust the maximum number of lines to specify the file size available in the used application software used.
Cautions
• When the file ID is "K0"
1) The CF-ADP can create up to 1000 files (within the CompactFlash
TM
 card capacity).
2) The file name is set to "FILE0000.CSV" to "FILE0999.CSV".
• When the file ID is "K1" to "K63"
1) The user can create up to 63 files (within the CompactFlash
TM
 card capacity).
2) The FLCRT instruction is completed abnormally if different file names are specified for the same file ID or if the
same file name is specified for different file IDs.
• It is not permitted to use an "RS (FNC 80)/RS2 (FNC 87)"/"ADPRW (FNC276)"/"IVCK (FNC270) to IVMC 
(FNC275)" instruction and an "FLCRT (FNC300) to FLSTRD (FNC305)" instruction for the same port.
Setting items
Description
Data Type
File ID
This ID number is associated with the file name.
The FLCRT instruction creates a file, and associates the file name with the file ID at the same
time. The user should use the file ID for specifying a file after that.
Allowable setting range : K0 to K63 ("K0" indicates "FIFO file".)
16-bit binary
File name
When 
 is "K0 (FIFO file)"
Not used (ignored)
Use an unused device. (D or R)
When 
 is "K1" to "K63"
Specify the file name in up to 8 characters until "null" or "null + null".
Half-width alphanumeric characters and half-width symbols permitted in the MS-DOS are
available.
Half-width symbols : !, #, $, %, &, ', (, ), +, -, @, ^, _, ',  ~
The extension is fixed to "CSV"
Character string
Fi
le cr
ea
tio
pa
ra
me
ter
Time stamp setting
Set whether or not the time stamp is added to the file. Specify the format when adding the time
stamp.
K0 : None (NULL)
K1 : yyyy/mm/dd hh:mm:ss
K2 : yy/mm/dd hh:mm:ss
K3 : dd/mm/yyyy hh:mm:ss
K4 : dd/mm/yy hh:mm:ss
K5 : mm/dd/yyyy hh:mm:ss
K6 : mm/dd/yy hh:mm:ss
K7 : hh:mm:ss
16-bit binary
+1
Data type
Set the data type to be saved.
K0 : No data type specification (mixed type)
K1 : Bit type
K2 : Decimal type (16-bit)
K3 : Decimal type (32-bit)
K4 : Hexadecimal type (16-bit)
K5 : Hexadecimal type (32-bit)
K6 : Real numbers (Floating point data) Exponent expression type
K7 : Character string
16-bit binary
+2
Maximum number of lines
Set the maximum number of lines.
Allowable setting range : K1 to K32767
*1
16-bit binary
+3
When 
 is "K0"
Set the CompactFlash
TM
 card use ratio.
Specify the ratio (%) out of the whole CompactFlash
TM
 card capacity to be used.
Allowable setting range : 10 to 90 (%)
16-bit binary
When 
 is "K1" to "K63"
File processing to be executed when the specified maximum number of lines is reached.
Set the file processing method to be executed when the number of lines reaches the specified
maximum value.
K0 : Stops execution. (The line position remains the specified maximum line position.)
K1 : Returns to the head (ring buffer file).
16-bit binary
n
Channel number used by the CF-ADP
K1 : ch1
K2 : ch2
16-bit binary
  
S
1
  
S
2
  
S
1
  
S
1
  
S
3
  
S
3
  
S
3
  
S
3
  
S
1
  
S
1