Writing Data To The Data Memory - Mitsubishi Electric MELSEC iQ-R Series Programming Manual

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

Advertisement

Writing data to the data memory

SP.DEVST
RnPCPU
RnCPU RnENCPU
(Process)
This instruction writes the specified number of points of data to the device data storage file in data memory.
Ladder
(s1)
FBD/LD
EN
ENO
s1
d
s2
n
■Execution condition
Instruction
SP.DEVST
Setting data
■Descriptions, ranges, and data types
Operand
Description
(s1)
Write offset of device data storage file (specified in units of
16-bit words)
(s2)
Start device to which data is to be written
(n)
Number of write points
(d)
(d): Completion device, (d)+1: Error completion device
EN
Execution condition
ENO
Execution result
*1 When specifying setting data by using a label, define an array to secure enough operation area and specify an element of the array
label.
■Applicable devices
Operand
Bit
X, Y, M, L,
SM, F, B, SB,
FX, FY
(s1)
(s2)
(n)
(d)
7 APPLICATION INSTRUCTIONS
596
7.6 Reading/Writing Data Instructions
RnPCPU
RnSFCPU RnSFCPU
(Redundant)
(Standard)
(Safety)
(s2)
(n)
(d)
Execution condition
Word
J\
T, ST, C, D, W,
SD, SW, FD, R,
ZR, RD
ST
ENO:=SP_DEVST(EN,s1,s2,n,d);
Range
0 to 524287
1 to 65535
Double word Indirect
U\G, J\,
Z
LT, LST,
U3E\(H)G
LC
Data type
Data type (label)
32-bit unsigned binary
ANY32
Word
ANY16
16-bit unsigned binary
ANY16
Bit
ANYBIT_ARRAY
(Number of elements:
2)
Bit
BOOL
Bit
BOOL
Constant
specification
LZ
K, H E
*1
Others
$

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents