EasyManua.ls Logo

Mitsubishi Electric MELSEC iQ-R Series - Page 622

Mitsubishi Electric MELSEC iQ-R Series
2110 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
620
7 APPLICATION INSTRUCTIONS
7.6 Reading/Writing Data Instructions
Processing details
This instruction writes the specified number of data to the specified file. Set the execution/completion type in the control
data to specify the file write-target format.
Page 617 For RnCPU (firmware version "28" or later) and RnENCPU (firmware version "28" or later)
Page 619 For RnCPU (firmware version "27" or earlier), RnENCPU (firmware version "27" or earlier), RnPCPU, and
RnSFCPU
The write target is the SD memory card only.
The bit device (d2) 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 (d2)+1 turns on in synchronization with (d2). Therefore, the bit
device (d2)+1 can be used as the error completion flag.
SM753 turns on while the SP.FWRITE instruction is executed.
While SM753 is on, the SP.FWRITE instruction cannot be executed. (If executed, no processing is performed.)
Even if an error is detected during the execution of the instruction, the bit devices (d2) and (d2)+1 and SM753 do not turn
on.
Specify data in (s3)+0, (d1)+4, (d1)+5, and (d1)+2 depending on the combination of (d1)+0 and (d1)+7.
Execution/completion type
(d1)+0
Data type
specification
(d1)+7
Processing unit and setting range
Number of request
write data
(s3)+0
File position
(d1)+4, (d1)+5
Number of data
actually written
(d1)+2
Writing
binary
data
0000H: 16-bit binary data 0: Word Word (1 to 65535) Word (00000000H to
7FFFFFFFH,
FFFFFFFFH)
Word
1: Byte Word (1 to 65535) Byte (00000000H to
FFFFFFFFH)
Byte
2: Unit of the data type
specified by the
execution/completion
type
Word (1 to 65535) Word (00000000H to
7FFFFFFFH,
FFFFFFFFH)
Word
0001H: 32-bit binary data 0: Word
1: Byte
(Cannot be specified)
2: Unit of the data type
specified by the
execution/completion
type
Double word (1 to 32767) Double word
(00000000H to
3FFFFFFFH,
FFFFFFFFH)
Double word

Table of Contents

Other manuals for Mitsubishi Electric MELSEC iQ-R Series

Related product manuals