754
FX3S/FX3G/FX3GC/FX3U/FX3UC Series
Programming Manual - Basic & Applied Instruction Edition
34 FX3U-CF-ADP Applied Instructions – FNC300 to FNC305
34.6 FNC305 – FLSTRD / FX3U-CF-ADP status read
34.6.1 Detailed explanation of setting data
Details on the setting data in the FLSTRD instruction are as shown below.
• When is "K0" to "K63"
The FLSTRD instruction reads the final line position and final column position of each file.
• When is "K256 (H100)"
The FLSTRD instruction reads file IDs stored in the CompactFlash
TM
card. For a file ID corresponding to the read
data, refer to the file ID correspondence table shown below.
When a file exists, a bit corresponding to the file ID turns ON.
File ID correspondence table
• When is "K512 (H200)"
The FLSTRD instruction reads the data capacity, used space and free space of the CompactFlash
TM
card to the
following devices respectively.
Setting items Description Data Type
Contents of status to be read
K0 to K63 : Final line position of each file
K256(H100) : File IDs stored in the CompactFlash
TM
card
K512(H200) : Capacity of the CompactFlash
TM
card
K768(H300) : Version of the CF-ADP
K1024(H400) : Error information (error flag)
K1280(H500) : Error codes
16-bit binary
Head device to which the read status is written
The number of data points stored in varies depending on the contents of the read
status.
16-bit binary
n
Channel number used by the CF-ADP
K1 : ch1
K2 : ch2
16-bit binary
Setting items Description
Final line position
K1 to the specified maximum line position
+1
Final column position
Setting items Description
Stores the existence of file IDs.
+1
+2
+3
Setting items b15 b14 b13 b12 b11 b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 b0
1514131211109876543210
+1
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16
+2
47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 32
+3
63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 48
Setting items Description
+1,
Data capacity of the CompactFlash
TM
card
(kB) Units, If the data capacity is less than 1 kB, "1" is stored.
+3, +2
Used space of the CompactFlash
TM
card
(kB) Units, If the data size is less than 1 kB, "1" is stored.
+5, +4
Free space of the CompactFlash
TM
card
(kB) Units, If the data size is less than 1 kB, "1" is stored.
S
D D
S
D
D
S
D
D
D
D
D
D
D
D
S
D D
D D
D D