270
4 OPERATION CONTROL PROGRAMS
4.19 Other Instructions
Read device data from buffer memory: FROM
■Usable data
: Usable
■Description, data type of result
• (n) words of data are read from the address specified with (S2) of the buffer memory in the module specified with (S1), and
are stored since the device specified with (S2).
Writing device data can be performed with the module access device (U\G).
(Example)
Reading 1 word of data from buffer memory address 10H of intelligent function module (start I/O number:
020H), and storing in W0.
Refer to the following for details of module access device.
MELSEC iQ-R Motion Controller Programming Manual (Common)
Format Number of basic steps Usable steps
F/FS G
FROM(D), (S1), (S2), (n) 14
Setting
data
Usable Data
Bit
device
Word device Constant Calculation
expression
Bit
conditional
expression
Comparison
conditional
expression
16-bit
integer
type
32-bit
integer
type (L)
64-bit
floating
point
type (F)
16-bit
integer
type
(K/H)
32-bit
integer
type
(K/H, L)
64-bit
floating
point
type (K)
(D)
(S1)
(S2)
(n)
Setting data Description Data type of result
(D) Start device No. which stores the reading data.
(S1) First I/O No. of the module (000H to FF0H, 3E00H to 3E30H)
(S2) First address of the buffer memory which it will be read. (0 to end of target module buffer memory)
(n) Number of words to be read (1 to within range of target module buffer memory)
(S1)
Intelligent function
module buffer memory
H0000
H0005
H000A
H0000
(S2)
Device memory
H0000
H0005
H000A
H0000
(D)
Read the data
of a part for
(n) word
W0 = U2\G16