Buffer Memory Access; Intelligent Function Module 1-Word Data Read; Intelligent Function Module 2-Word Data Read - Mitsubishi Electric MELSEC Q Series Programming Manual

Structured text
Hide thumbs Also See for MELSEC Q Series:
Table of Contents

Advertisement

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
*1: Specified with the upper three digits when the head I/O number is expressed in 4
hexadecimal digits.
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
*1: Specified with the upper three digits when the head I/O number is expressed in 4
hexadecimal digits.
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
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
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
*1
(BIN 16-bit data)
Description
Description
*1
(BIN 16-bit data)
Description
*)
*)
*)
*)
*)
5 - 71

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents