Mitsubishi Electronics FX3U-CF-ADP Manual Do Utilizador

Página de 124
8 CF-ADP Applied Instructions Explanation
8.3 FNC 300 - FLCRT / File create•check
50
FX
3U
-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.
D11
K2
D12
K1000
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
D10
K1
FNC 12
 MOV
D13
K0
FNC 12
 MOV
K1
D10
D0
FNC300
FLCRT
K1
D100
D8418
D101
D8417
FNC 12
 MOV
The error code is stored.
The error code details are
stored.
FNC 12
 MOV
M0
RST
M0
RST
M8029
M8329
M0
SET
X000
Execution
completion
Abnormal
end