796
FX
3G
/FX
3U
/FX
3UC
Series Programmable Controllers
Programming Manual - Basic & Applied Instruction Edition
34 FX3U-CF-ADP Applied Instructions – FNC300 to FNC305
34.4 FNC 303 – FLRD / Data read
34.4.1 Detailed explanation of setting data
Details of the setting data in the FLRD instruction are as shown below.
Cautions
• The FLRD instruction is completed abnormally if a CompactFlash
TM
card is not mounted.
• The FLRD instruction may require several scans to acquire data. Use the acquired data only after
confirming completion of the FLRD instruction if data consistency is required.
• It is necessary to set the device number in a multiple of 16 when a bit device is specified in
and the
read data type is anything other than bit. When a word device is specified in
and the read data type
is bit, the FLRD instruction stores data read from the least significant bit of the specified word device.
• When the data type is anything other than character string and the number of devices which store the read
data is insufficient, the FLRD instruction does not read data from the CF-ADP. An error occurs.
When the data type is a character string, the character string length is unknown. The PLC stores as much
read data as possible. When reading is not completed even after the final device is reached, an error
occurs.
• It is not permitted to use an RS (FNC 80)/RS2 (FNC 87)/IVCK (FNC270)/IVDR (FNC271)/IVRD (FNC272)/
IVWR (FNC273)/IVBWR (FNC274) instruction and an FLCRT (FNC300)/FLDEL (FNC301)/
FLWR (FNC302)/FLRD (FNC303)/FLCMD (FNC304)/FLSTRD (FNC305) instruction for the same port.
Setting items
Description
Data Type
File ID : K0 to K63
16-bit binary
D
a
ta r
ead
pa
ra
m
ete
r
Specify the data reading type
K0 : Mixed type
K1 : Bit type
K2 : Decimal type (16-bit)
K3 : Decimal type (32-bit)
K4 : Hexadecimal type (16-bit)
K5 : Hexadecimal type (32-bit)
K6 : Real numbers(Floating point data) Exponent expression type (32-bit)
K7 : Character string (512 half-width/full-width characters maximum)
16-bit binary
+1
Specify the line position from which data is read.
Line position : K1 to specified maximum number of lines
16-bit binary
+2
Specify the column position from which data is read.
Column position : K1 to K254
16-bit binary
+3
Read points : K1 to K254
16-bit binary
Device which stores the read data
Specify the head of devices which store the data read from the CompactFlash
TM
card.
16-bit binary
Number of data points existing in the specified line
K1 to K254
K0 : No data
16-bit binary
n
Channel number used by the CF-ADP
K1 : ch1
K2 : ch2
16-bit binary
S
1
S
2
S
2
S
2
S
2
D
1
D
2
D
1
D
1