Справочник Пользователя для Mitsubishi Electronics FXCPU
34 Applied Instructions (FX3U-CF-ADP)
34.6 FLSTRD / FX3U-CF-ADP status read
789
FXCPU Structured Programming Manual
[Basic & Applied Instruction]
31
Appl
ied
ied
In
stru
cti
cti
ons
(Da
ta
ta
T
rans
fer
3)
fer
3)
32
Ap
plied
Instru
ctio
ns
Instru
ctio
ns
(High S
peed
Process
ing 2)
33
App
lied Instr
lied Instr
ucti
ons
(Exte
nsion File
Regis
ter C
ontrol
ontrol
)
34
Ap
pl
ied In
struct
struct
ions
(FX
3U
-C
F-
AD
P)
P)
35
Int
errupt
Fun
cti
Fun
cti
on
and Puls
e Cat
ch
Functi
on
A
Re
lation
sh
ip
s
be
tw
ee
n de
vic
vic
es
an
d ad
dre
ss
dre
ss
es
B
Ap
plie
d
In
structio
n List
34.6
FLSTRD / FX
3U
-CF-ADP status read
Outline
The FLSTRD instruction reads the status (including the error information and file information) of the FX
3U
-
CFADP.
→ As for explanation of the instruction, see the FX
3U
-CF-ADP User's Manual.
1. Format and operation, execution form
2. Set data
3. Applicable devices
Function and operation explanation
1. 16-bit operation (FLSTRD)
The FLSTRD instruction reads the status information of the CF-ADP. The following contents can be read.
The number of data stored in
The number of data stored in
varies depending on the contents of the read status.
1) When
is "K0" to "K63" the FLSTRD instruction reads the final line number and final column position
of each file.
2) When
is "K256 (H100)" the FLSTRD instruction reads file IDs stored in the CompactFlash
TM
card.
3) When
is "K512 (H200)" the FLSTRD instruction reads the data capacity.
4) When
is "K768 (H300)" the FLSTRD instruction reads the version information of the CF-ADP.
5) When
is "K1024 (H400)" the FLSTRD instruction reads the error information (error flag) for errors
having occurred in the CF-ADP.
6) When
is "K1280 (H500)" the FLSTRD instruction reads error codes and error code details. Up to 5
of the latest error codes and error code details can be stored.
For details, refer to Detailed explanation of setting data.
FX
3U(C)
FX
3G(C)
FX
3S
FX
2N(C)
FX
1N(C)
FX
1S
FX
U
/FX
2C
FX
0N
FX
0(S)
Instruction
name
Operation
Execution
form
Expression in each language
Structured ladder/FBD
ST
FLSTRD
16 bits
Continuous
FLSTRD(EN,s,n,d);
Variable
Description
Data type
Input
variable
variable
EN
Execution condition
Bit
Contents of status to be read (Refer to Detailed explanation of setting
data)
data)
ANY16
Used channel number [contents of setting : K1 = ch1, K2 = ch2]
ANY16
Output
variable
variable
ENO
Execution state
Bit
Head device to which the read status is written (Refer to Detailed
explanation of setting data)
explanation of setting data)
ANY16
Operand
type
Bit Devices
Word Devices
Others
System user
Digit specification
System
user
Special
unit
Index
Cons
tant
Real
Number
Character
String
Pointer
X Y M T C S D
.b KnX KnY KnM KnS T C D R U
\G
V Z Modifier K H
E
"
"
P
z z
z
z z
z z
z z
z z
z
FLSTRD
EN
ENO
d
s
n
Command input
FLSTRD
EN
Contents of status to be read
Head device to which the
read status is written
read status is written
Used channel number
ENO
d
s
n