Mitsubishi Electronics FX3U-CF-ADP ユーザーズマニュアル

ページ / 124
9 Program Examples
9.2 Program Example 1
84
FX
3U
-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.
M1
SET
M21
RST
M0
SET
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
D100
D8418
D101
D8417
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.
M20
RST
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
M2
SET
M22
RST
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
M3
SET
M23
RST
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
K1
D170
H100
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
M20
SET
M60
SET
M0
RST
M0
RST
M8029
M8329
Execution
completion
Abnormal
end
D170.1
D170.1
To next page
To next page