7 APPLICATION INSTRUCTIONS
7.27 Module Access Instructions
1045
7
Reading 1-word/2-word data from another module (16-bit
specification)
FROM(P), DFROM(P)
•FROM(P):
These instructions read n words of data from the buffer memory address in the specified module or another CPU module.
• DFROM(P):
These instructions read n2 words of data from the buffer memory address in the specified module or another CPU module.
■Execution condition
■Description, range, data type
*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.
Ladder ST
ENO:=FROM(EN,U/H,s,n,d);
ENO:=FROMP(EN,U/H,s,n,d);
ENO:=DFROM(EN,U/H,s,n,d);
ENO:=DFROMP(EN,U/H,s,n,d);
FBD/LD
Instruction Execution condition
FROM
DFROM
FROMP
DFROMP
Operand Description Range Data type Data type (label)
(U/H) Start I/O number (first three digits in four-digit
hexadecimal representation) of a module or CPU
module
0H to FFH, 3E0H to 3E3H 16-bit unsigned binary ANY16
(s) Start address of buffer memory or CPU built-in
memory containing the data to be read
0 to 65535 16-bit unsigned binary ANY16
(d) FROM(P) Start device for storing the data that has been
read
16-bit signed binary ANY16
*1
DFROM(P) 32-bit signed binary ANY32
*1
(n) Number of read data 0 to 65535 16-bit unsigned binary ANY16
EN Execution condition Bit BOOL
ENO Execution result Bit BOOL
RnCPU
RnENCPU
RnSFCPU RnSFCPURnPCPURnPCPU
(Standard) (Safety)
(Redundant)
(Process)