9 Program Examples
9.3 Program Example 2
91
FX
3U
-CF-ADP User's Manual
1
Introduc
tion
2
S
pecifi
cation
3
Sy
stem
Configurati
o
n
4
Ins
tal
lation
5
Wi
rin
g
6
Functi
o
n
s
7
Bef
o
re
Programm
ing
8
C
F
-AD
P
Appl
ied
Ins
tructi
ons
Explanati
o
n
9
Program
Examples
10
T
roubl
esho
oti
n
g
9.3.4
Sequence Program
This program example describes the sequence program for channel 1 (ch1).
Rewrite the channel No. with the actual system configuration to be used.
→
For explanation of operations, refer to Subsection 9.3.1.
→
For an example of a mixed type file in "csv" format after writing, refer to Subsection 9.3.2.
→
For device assignments, refer to Subsection 9.3.3.
M5
SET
M25
RST
M4
SET
X004
Remains ON while a mixed type
file is being created
Remains ON while a mixed type
file is being created
Command to
create a mixed
type file
D114
D8418
D115
D8417
FNC 12
MOV
The error code is stored.
Remains ON while a mixed type
file is being created
Remains ON while a mixed type
file is being created
Remains ON while a new mixed
type file is being created
The error code details are
stored.
M24
RST
Turns ON when a mixed type file
is created successfully or already
exists
Remains ON while data is being
written to the mixed type file
Turns ON when data is written
successfully to the mixed type file
X005
M6
SET
M26
RST
Remains ON while data is being
read from the mixed type file
Turns ON when data is read
successfully from the mixed type
file
X006
M7
SET
M27
RST
Remains ON while the mixed
type file is being deleted
Turns ON when the mixed type
file is deleted successfully
X007
Command to write
data to the mixed
type file
Command to read
data from the mixed
type file
Command to
delete the mixed
type file
K1
D180
H100
FNC305
FLSTRD
M8405
CF card
is
mounted
M4
M8404
CF-ADP
unit ready
Remains ON
while a mixed
type file is
being created
File IDs existing in the
CompactFlash
TM
card are read.
FNC 12
MOV
M24
SET
M62
SET
M4
RST
M4
RST
M8029
M8329
D180.0
D180.0
To next page
To next page
Execution
completion
Abnormal
end