32-Bit Data Logical Product (2 Devices); 32-Bit Data Logical Product (3 Devices) - Mitsubishi MELSEC-q Programming Manual

Melsec q series; melsec l series
Hide thumbs Also See for MELSEC-q:
Table of Contents

Advertisement

5 MELSEC FUNCTIONS
5.10.3 32-bit data logical product (2 devices) DAND_M
The specified two BIN 32-bit data are ANDed bit by bit.
Function definition
5.10.4 32-bit data logical product (3 devices) DAND_3_M
The specified two BIN 32-bit data are ANDed bit by bit.
Function definition
5 - 40
BOOL DAND_M (BOOL EN, ANY32 S1, ANY32 D);
Argument Name
EN
S1
D
Remarks: For bit devices, the bits greater than in the digit specification are processed
as "0 (zero)".
Return Value
BOOL
Execution condition
Example of use
(* When execution condition X0 turns ON, the 24-bit data in dwData1 and
(* X30 to X47 are ANDed, and the result is stored into dwData1.
DAND_M (X0, K6X30, dwData1);
Corresponding MELSEC command
DAND (32-bit data logical product)
BOOL DAND_3_M (BOOL EN, ANY32 S1, ANY32 S2, ANY32 D);
Argument Name
EN
S1
S2
D
Remarks: For bit devices, the bits greater than in the digit specification are
processed as "0 (zero)".
Return Value
BOOL
Execution condition
Example of use
(* When execution condition X0 turns ON, the 32-bit data in dwData1 and
(* dwData2 are ANDed, and the result is stored into Result.
DAND_3_M (X0, dwData1, dwData2, Result);
Corresponding MELSEC command
DAND (32-bit data logical product)
IN/OUT
Execution condition (Function is executed only when
IN
the result is TRUE)
IN
Data to AND (BIN 32-bit data)
IN/OUT
Data to be ANDed, operation result (BIN 32-bit data)
IN/OUT
Execution condition (Function is executed only when
IN
the result is TRUE)
IN
Data to be ANDed (BIN 32-bit data)
IN
Data to AND (BIN 32-bit data)
OUT
Operation result (BIN 32-bit data)
For the usable data type, refer to "3.2.2
About ANY type".
Description
Description
Description
Description
*)
*)
*)
*)
5 - 40

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec-l

Table of Contents