8 CF-ADP Applied Instructions Explanation
8.3 FNC 300 - FLCRT / File create•check
50
FX3U-CF-ADP User's Manual
Caution
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.
Program Example
This program creates a file whose ID is "1" and file name is "TEST_01" when X000 turns ON.
The time stamp setting, data type, maximum Index value, and processing when the maximum Index value is
reached are as shown below.
The channel number 1 is used.
Time stamp setting.
The time stamp format "yyyy/
mm/dd hh:mm:ss" is set.
D11K2
D12K1000
FNC 12
MOV
Data type setting.
The file type is set to 16-bit
decimal.
Processing when the maximum
line value is reached.
The processing is set to "Stops
execution".
A file is created.
Maximum line value setting.
The maximum line value is
set to "1000".
D0"TEST_01"
FNC209
$MOV
M8405
CF card is
mounted
M0 M8404
CF-ADP
unit ready
File name.
The file name is set to
"TEST_01".
FNC 12
MOV
D10K1
FNC 12
MOV
D13K0
FNC 12
MOV
K1D10D0
FNC300
FLCRT
K1
D100D8418
D101D8417
FNC 12
MOV
The error code is stored.
The error code details are
stored.
FNC 12
MOV
M0RST
M0RST
M8029
M8329
M0SET
X000
Execution
completion
Abnormal
end