5 MELSEC FUNCTIONS
5.16 Buffer Memory Access
5.16.1 Intelligent function module 1-word data read
The specified points of data are read from the specified address and later of the buffer memory in the specified
intelligent function module or special function module.
Function definition
5.16.2 Intelligent function module 2-word data read
The specified points
specified intelligent function module or special function module.
Function definition
5 - 71
BOOL FROM_M (BOOL EN, ANY16 n1, ANY16 n2, ANY16 n3, ANY16 D);
Argument Name
EN
n1
n2
n3
D
Return Value
BOOL
Execution condition
Example of use
(* When execution condition X0 turns ON, 1 word of data are read to D0 from
(* address 10 and later of the buffer memory in the intelligent function module
(* mounted at I/O numbers 040 to 05F.
FROM_M (X0, H4, K10, K1, D0);
Corresponding MELSEC command
FROM (Reading 1-word data from the intelligent function module)
2 of data are read from the specified address and later of the buffer memory in the
BOOL DFRO_M (BOOL EN, ANY16 n1, ANY16 n2, ANY16 n3, ANY32 D);
Argument Name
EN
n1
n2
n3
D
Return Value
BOOL
Execution condition
Example of use
(* When execution condition X0 turns ON, 2 words of data are read to DwResult *)
(* from addresses 602, 603 and later of the buffer memory in the intelligent
(* function module mounted at I/O numbers 040 to 05F.
DFRO_M (X0, H4, K602, K1, DwResult);
Corresponding MELSEC command
DFRO (Reading 2-word data from the intelligent function module)
FROM_M
IN/OUT
Execution condition (Function is executed only when the
IN
result is TRUE)
Head input number of specified intelligent function
IN
module/special function module (BIN 16-bit data)
IN
Head address of data to be read (BIN 16-bit data)
IN
Number of data to be read (BIN 16-bit data)
OUT
Read data (BIN 16-bit data)
DFRO_M
IN/OUT
Execution condition (Function is executed only when the
IN
result is TRUE)
Head input number of specified intelligent function
IN
module/special function module (BIN 16-bit data)
IN
Head address of data to be read (BIN 16-bit data)
IN
Number of data to be read (BIN 16-bit data)
OUT
Read data (BIN 32-bit data)
For the usable data type, refer to "3.2.2 About
ANY type".
Description
Description
Description
Description
*)
*)
*)
*)
*)
5 - 71