Mitsubishi Electric MELSEC iQ-R Series Programming Manual page 622

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

Advertisement

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
Writing
0000H: 16-bit binary data
binary
data
0001H: 32-bit binary data
7 APPLICATION INSTRUCTIONS
620
7.6 Reading/Writing Data Instructions
Data type
Processing unit and setting range
specification
Number of request
(d1)+7
write data
(s3)+0
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 written
(d1)+2
Word (00000000H to
Word
7FFFFFFFH,
FFFFFFFFH)
Byte (00000000H to
Byte
FFFFFFFFH)
Word (00000000H to
Word
7FFFFFFFH,
FFFFFFFFH)
Double word
Double word
(00000000H to
3FFFFFFFH,
FFFFFFFFH)

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents