Download Print this page

Reading 1-Word/2-Word Data From Another Module - Mitsubishi Electric MELSEC iQ-F FX5 Programming Manual

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

Advertisement

Reading 1-word/2-word data from another module

FROMD(P), DFROMD(P)
• FROMD(P)
These instructions read (n) words of data from the buffer memory specified by (s) in intelligent function module specified by
(U/H), and store the data to the device specified by (d) and later.
• DFROMD(P)
These instructions read the (n)  2 words of data from the buffer memory specified by (s) in intelligent function module
specified by (U/H), and store the data to the device specified by (d) and later.
Ladder diagram
(U/H) (s)
FBD/LD
EN
ENO
UnHn
d
s
n
Setting data
■Descriptions, ranges, and data types
Operand
Description

*1

(U/H)
Unit number
(s)
Start address of the buffer memory where the read-target data
is stored
(d)
FROMD(P)
Head device number for storing the read data
DFROMD(P)
(n)
Number of read data
EN
Execution condition
ENO
Execution result
*1 In the case of the ST language and the FBD/LD language, U/H displays as UnHn.
■Applicable devices
Operand
Bit
X, Y, M, L, SM,
F, B, SB, S
(U/H)
(s)
(d)
(n)
*1 Only the DFROMD(P) instruction can be used.
8 APPLICATION INSTRUCTION
726
8.26 Module Access Instruction
(d)
(n)
Word
T, ST, C, D, W,
U\G
SD, SW, R
Structured text
ENO:=FROMD(EN,UnHn,s,n,d);
ENO:=FROMDP(EN,UnHn,s,n,d);
ENO:=DFROMD(EN,UnHn,s,n,d);
ENO:=DFROMDP(EN,UnHn,s,n,d);
Range
Data type
H1 to H10
16-bit unsigned binary
0 to 4294967295
32-bit unsigned binary
16-bit signed binary
32-bit signed binary
1 to 65535
32-bit unsigned binary
Bit
Bit
Double word Indirect
specification
Z
LC
LZ
*1
*1
Data type (label)
ANY16
ANY32
ANY16
ANY32
ANY32
BOOL
BOOL
Constant
Others
(U)
K, H
E
$

Hide quick links:

Advertisement

loading