8-34
8.5 Writing Data to Standard ROM
SP_DEVST
(2) Since the device data write position completion
[0] in the standard ROM automatically
turns ON at execution of the END instruction, which detects the completion of this
instruction, and turns OFF with the END instruction of next scan, it is used as an execution
completion flag of this instruction.
(3) When this instruction is completed in error, the error completion
[1] turns ON/OFF at the
same timing with the completion
[0]. This is used as an error completion flag of this
instruction.
(4) SM721 turns ON during execution of this instruction.
When SM721 has already turned ON, this instruction cannot be executed. (If executed, no
processing is performed.)
(5) When an error is detected at execution of this instruction, the completion
[0], error
completion
[1], and SM721 do not turn ON.
O
perat
i
on
E
rror
In any of the following cases, an operation error occurs, the error flag (SM0) is turned ON, and
the corresponding error code is stored to SD0.
• The write offset specified for
is out of the device data storage file range.
(Error code: 4100)
• The n points from the write offset specified for
is out of the device data storage file
range.
(Error code: 4100)
• The range of n points specified for
exceeds the corresponding device range.
(Error code: 4101)
• The device data storage file is not set in the PLC file setting of the PLC parameter.
(Error code: 2410)
• The device specified for
exceeds the corresponding device range. (Error code: 4101)
n
Start number of
device
Standard R
O
M
Device data
storage file
Write offset of t
h
e device
data storage file
Write
offset
+0
+1
+2
S2
16 bits
Write offset
S1
d
d
d
d
d
s1
s1
s2
d
Summary of Contents for MELSEC Q Series
Page 1: ...Structured Programming Manual Mitsubishi Programmable Controller QCPU Common Instructions ...
Page 2: ......
Page 14: ...A 12 MEMO ...
Page 340: ...6 178 MEMO MTR ...
Page 708: ...7 368 MEMO ...
Page 776: ...8 68 MEMO ...
Page 796: ...9 20 MEMO ...
Page 804: ...App 8 MEMO ...
Page 812: ...Index 8 MEMO ...
Page 815: ......