Mitsubishi Electronics FXCPU Video Game Controller User Manual


 
34 Applied Instructions (FX3U-CF-ADP)
34.4 FLRD / Data read
786
FXCPU Structured Programming Manual
[Basic & Applied Instruction]
Detailed explanation of setting data
Details of the setting data in the FLRD instruction are as shown below.
Cautions
1) The FLRD instruction is completed abnormally if a CompactFlash
TM
card is not mounted.
2) 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.
3) 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.
4) 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.
5) 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.
6) It is not permitted to use an "FLCRT, FLDEL, FLWR, FLRD, FLCMD or FLSTRD" instruction and a
following instruction for the same port:
- "RS or RS2" instruction
- "ADPRW" instruction
- "IVCK, IVDR, IVRD, IVWR, IVBWR or IVMC" instruction
7) The instruction is provided in the FX
3U and FX3UC PLCs Ver. 2.61 or later.
Setting items Description Data Type
File ID
K0 to K63
ANY16
Data read parameter
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
K7 : Character string (512 half-width/full-width characters maximum)
ARRAY [0..3]
OF ANY16
+1
Specify the line position from which data is read.
Line position : K1 to specified maximum number of lines
+2
Specify the column position from which data is read.
Column position : K1 to K254
+3
Read points
K1 to K254
Channel number used by the CF-ADP
K1 : ch1
K2 : ch2
ANY16
Device which stores the read data
Specify the head of devices which store the data read from the CompactFlash
TM
card.
ANY_SIMPLE
Number of data points existing in the specified line
K1 to K254
K0 : No data
ANY16