Mitsubishi Electric MELSEC iQ-R Series Programming Manual page 605

Hide thumbs Also See for MELSEC iQ-R Series:
Table of Contents

Advertisement

Processing details
• This instruction reads data from the specified file. Set the execution/completion type in the control data to specify the file
read-target format.
Page 600 For RnCPU (firmware version "28" or later) and RnENCPU (firmware version "28" or later)
Page 602 For RnCPU (firmware version "27" or earlier), RnENCPU (firmware version "27" or earlier), RnPCPU, and
RnSFCPU
• The read target is the data in the SD memory card only.
• The bit device (d3) is used as the execution completion flag of the instruction. The bit automatically turns on upon execution
of the END instruction after the instruction processing completion is detected, and the bit turns off upon execution of the
END instruction in the next scan.
• If the instruction completes with an error, the bit device (d3)+1 turns on in synchronization with (d3). Therefore, the bit
device (d3)+1 can be used as the error completion flag.
• SM753 turns on while the SP.FREAD instruction is being executed.
• While SM753 is on, the instruction cannot be executed. (If executed, no processing is performed.)
• If an error is detected during the execution of the instruction, Processing Complete (d3), Error Completion (d3)+1, and
SM753 do not turn on.
• Specify data in (d1)+2, (d1)+4, (d1)+5, and (d2)+0 depending on the combination of (d1)+0 and (d1)+7.
Execution/completion type
(d1)+0
Reading binary
0000H: 16-bit binary
data
data
0001H: 32-bit binary
data
Data type
Processing unit and setting range
specification
Number of read-
(d1)+7
target data
(d1)+2
0: Word
Word (1 to 65535)
1: Byte
Word (1 to 65535)
2: Unit of the data type
Word (1 to 65535)
specified by the
execution/completion
type
0: Word
(Cannot be specified)
1: Byte
2: Unit of the data type
Double word (1 to 32767)
specified by the
execution/completion
type
File position
Number of data
(d1)+4, (d1)+5
actually read
(d2)+0
Word (00000000H to
Word
7FFFFFFFH)
Byte (00000000H to
Byte
FFFFFFFEH)
Word (00000000H to
Word
7FFFFFFFH)
Double word (00000000H
Double word
to 3FFFFFFFH)
7 APPLICATION INSTRUCTIONS
7.6 Reading/Writing Data Instructions
7
603

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents