651
S.DEVLD, SP.DEVLD
1
2
3
4
4
6
7
8
7.18
Ot
her inst
ructions
7.18.1
5
S.DEVLD, SP.DEVLD
Program
E
xamp
l
e
(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]
Caut
i
on
(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).
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)
n2
: The number of reading points (BIN 16-bit)
F
unct
i
on
(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).
7.18.15 S.DEVLD, SP.DEVLD
Reading data from standard ROM
7.18.15
S.DEVLD, SP.DEVLD
Setting
Data
Internal Devices
R, ZR
J \
U \G
Zn
Constants
E
Other
Bit
Word
Bit
Word
n1
––
––
––
––
––
––
––
n2
––
––
––
Instruction
Device
Step
Universal
LCPU
Bas
i
c
Hi
gh
performance
Process
Redundant
S.DEVLD
SP.DEVLD
SP
.
D
E
V
L
D
n1
n2
D
S
.
D
E
V
L
D
n1
n2
D
Command
Command
D
D
D
Number of
n2 points
Head de
v
ice
number
Read offset n1
Standard ROM
De
v
ice data storage file
Read offset of de
v
ice data
storge file
Read
offset
+0
+1
+2
D
16-bit