9 Program Examples
9.2 Program Example 1
84
FX3U-CF-ADP User's Manual
9.2.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.2.1.
→ For an example of a 32-bit decimal type file in "csv" format after writing, refer to Subsection 9.2.2.
→ For device assignments, refer to Subsection 9.2.3.
M1SET
M21RST
M0SET
X000
32-bit decimal type file is being
created.
32-bit decimal type file is being
created.
Command to
create a 32-bit
decimal type file
D100D8418
D101D8417
FNC 12
MOV
The error code is stored.
32-bit decimal type file is being
created.
32-bit decimal type file is
created successfully.
Remains ON while a new 32-bit
decimal type file is being
created.
The error code details are
stored.
M20RST
32-bit decimal type file is
created successfully.
Remains ON while data is being
written to the 32-bit decimal type
file.
Turns ON when data is written
successfully to the 32-bit decimal
type file.
X001
M2SET
M22RST
Remains ON while data is being
read from the 32-bit decimal type
file.
Turns ON when data is read
successfully from the 32-bit
decimal type file.
X002
M3SET
M23RST
Remains ON while the 32-bit
decimal type file is being deleted.
Turns ON when the 32-bit
decimal type file is deleted
successfully.
X003
Command to write
data to the 32-bit
decimal type file
Command to read
data from the 32-bit
decimal type file
Command to delete
the 32-bit decimal
type file
K1D170H100
FNC305
FLSTRD
M8405
CF card is
mounted
M0 M8404
CF-ADP
unit ready
32-bit decimal
type file is
being created
File IDs existing in the
CompactFlash
TM
card are read.
FNC 12
MOV
M20SET
M60SET
M0RST
M0RST
M8029
M8329
Execution
completion
Abnormal
end
D170.1
D170.1
To next pageTo next page