7-437
SP.DEVST
1
2
3
4
6
6
7
8
7.18 Other instructions
7.18.14 Writing Data to Standard ROM (SP.DEVST)
(4) SM721 turns ON during execution of this instruction.
When SM721 has already turned ON, this instruction can not be executed. (If executed, no
processing is performed.)
(5) When an error is detected at execution of this instruction, the completion device ( +0),
error completion device ( +1) and SM721 do not turn ON.
Operation Error
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and
an error code is stored into SD0.
• The write offset specified at n1 is out of the device data storage file range.
(Error code: 4100)
• The number of n2 points from the write offset specified at n1 is out of the device data
storage file range. (Error code: 4100)
• The range for the number of n2 points from the device exceeds the corresponding
device. (Error code: 4141)
• The device data storage file is not set at "PLC file" of PLC parameter on GX Developer.
(Error code: 2410)
• The device specified by exceeds the range of the corresponding device.
(Error code: 4101)
Program Example
(1) The program which writes the ten points of data from D100 to the device data storage file in
the standard ROM when M0 turns ON.
[Ladder Mode] [List Mode]
Caution
(1) The value written to the standard ROM is the value at execution of this instruction.
(2) The standard ROM write count index (SD687 and SD688) is increased by the execution of
the SP.DEVST instruction. If the standard ROM write count index exceeds hundred
thousand times, FLASH ROM ERROR (error code: 1610) occurs.
(3) To prevent the number of ROM writes from increasing due to executing instruction
carelessly, set the specification of writing to standard ROM instruction count (SD695) to
restrict the number of writes a day.
Exceeding the number of writes (the default values are 36 times.) set causes OPERATION
ERROR (error code: 4113).
D
D
S
D
Instruction
Device
Step