Download Print this page

Writing Data To The Data Memory - Mitsubishi Electric MELSEC iQ-F FX5 Programming Manual

Instructions, standard functions/function blocks
Hide thumbs Also See for MELSEC iQ-F FX5:

Advertisement

Writing data to the data memory

SP.DEVST
This instruction writes the specified number of points of data to the device data storage file in data memory.
Ladder diagram
(s1)
(s2)
(n)
FBD/LD
EN
ENO
s1
d
s2
n
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, S
(s1)
(s2)
*1
(n)
*1
(d)
*1 S cannot be used.
*2 T, ST, C cannot be used.
(d)
Word
T, ST, C, D, W,
U\G
SD, SW, R
*2
Structured text
ENO:=SP_DEVST(EN,s1,s2,n,d);
Range
Data type
0 to 63
32-bit unsigned binary
Word
1 to 64
16-bit unsigned binary
Bit
Bit
Bit
Double word Indirect
specification
Z
LC
LZ
8.6 Reading/writing Data Instructions
Data type (label)
ANY32
*1
ANY16
ANY16
ANYBIT_ARRAY
(Number of elements: 2)
BOOL
BOOL
Constant
Others
K,H
E
$
8 APPLICATION INSTRUCTION
8
419

Hide quick links:

Advertisement

loading