8 CF-ADP Applied Instructions Explanation
8.7 FNC 304 - FLCMD / FX3U-CF-ADP command
75
FX3U-CF-ADP User's Manual
1
Introduction
2
Specification
3
System
Configuration
4
Installation
5
Wiring
6
Functions
7
Before
Programming
8
CF-ADP Applied
Instructions
Explanation
9
Program
Examples
10
Troubleshooting
8.7.1 Detailed explanation of setting data
Details of the setting data in the FLCMD instruction are as shown below.
*1. The CompactFlash
TM
card is available in the "mounted" status.
*2. The CompactFlash
TM
card is unavailable in the "unmounted" status.
Program Example
1) Program Example 1
When X000 turns ON, the data (saved in the file whose ID is "1") stored in the buffer inside the CF-ADP is
forcibly written to the CompactFlash
TM
card.
Channel number 1 is used.
2) Program Example 2
When X000 turns ON, the CompactFlash
TM
card is set to the mounted status.
Channel number 1 is used.
3) Program Example 3
When X000 turns ON, error codes stored in the CF-ADP are cleared.
Channel number 1 is used.
Setting items Description Data Type
Contents of instruction for operation
K-1 : Forcibly writes all buffered data to the CompactFlash
TM
card.
K0 to K63 : Forcibly writes the buffered data of the specified file ID to the CompactFlash
TM
card.
K256(H100) : Sets the CompactFlash
TM
card to the mounted status
*1
.
K512(H200) : Sets the CompactFlash
TM
card to the unmounted status
*2
.
K1280(H500) : Clears error codes stored in the CF-ADP.
16-bit binary
n
Channel number used by the CF-ADP
K1 : ch1
K2 : ch2
16-bit binary
S
X000
M0SET
M0
FNC304
FLCMD
K1 K1
M8329
Abnormal end
M0RST
M8029
Execution completion
M0RST
X000
M0SET
M0
FNC304
FLCMD
H100 K1
M8329
Abnormal end
M0RST
M8029
Execution completion
M0RST
X000
M0SET
M0
FNC304
FLCMD
H500 K1
M8329
Abnormal end
M0RST
M8029
Execution
completion
M0RST