Mitsubishi MELSEC-Q/L Programming Manual page 653

Table of Contents

Advertisement

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]
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).
7.18.15 S.DEVLD, SP.DEVLD
Reading data from standard ROM
7.18.15
S.DEVLD, SP.DEVLD
S.DEVLD
SP.DEVLD
n1
: Read offset of the device data storage file (specified in units of 16-bit words) (BIN 32-bit)
: Head device number read from the standard ROM (device name)
D
n2
: The number of reading points (BIN 16-bit)
Internal Devices
Setting
Data
Bit
Word
n1
––
––
D
n2
––
Function
(1) Reads device data for the number of points specified at n2 from the read offset, which is specified for n1, of the device
data storage file in the standard ROM, and stores the data to the device specified for
n1 is the offset from the head of device data storage file and specified by word offset (in units of 16-bit words).
Head device
number
D
[List Mode]
Step
Instruction
Command
Command
J
\
R, ZR
Bit
Word
Standard ROM
Device data storage file
Read offset n1
S.DEVLD, SP.DEVLD
Device
High
Basic
Process
Redundant
performance
S.DEVLD
n1
D
SP.DEVLD
n1
D
Zn
U
\G
––
––
––
.
D
Read offset of device data
storge file
Read
16-bit
offset
+0
Number of
+1
n2 points
+2
LCPU
Universal
n2
n2
Constants
Other
E
––
––
––
––
651
1
2
3
4
4
6
7
8

Advertisement

Table of Contents
loading

Table of Contents