Logical Sum (3 Devices); 32-Bit Data Logical Sum (2 Devices) - 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.10.7 Logical sum (3 devices)

The specified two BIN 16-bit data are ORed bit by bit.
Function definition

5.10.8 32-bit data logical sum (2 devices)

The specified two BIN 32-bit data are ORed bit by bit.
Function definition
5 - 42
WOR_3_M
BOOL WOR_3_M (BOOL EN, ANY16 S1, ANY16 S2, ANY16 D1);
Argument Name
EN
S1
S2
D1
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 data in X10 to X1B and the data *)
(* in D0 are ORed, and the result is output to Y10 - Y1B.
WOR_3_M (M0, K3X10, D0, K3Y10);
Corresponding MELSEC command
WOR (16-bit data logical sum)
BOOL DOR_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 data in dwData1 and Result are *)
(* ORed, and the result is output to Result.
DOR _M (X0, dwData1, Result);
Corresponding MELSEC command
DOR (32-bit data logical sum)
IN/OUT
Execution condition (Function is executed only when
IN
the result is TRUE)
IN
Data to be ORed (BIN 16-bit data)
IN
Data to OR (BIN 16-bit data)
OUT
Operation result (BIN 16-bit data)
DOR_M
IN/OUT
Execution condition (Function is executed only when
IN
the result is TRUE)
IN
Data to OR (BIN 32-bit data)
IN/OUT
Data to be ORed, operation result (BIN 32-bit data)
For the usable data type, refer to "3.2.2
About ANY type".
Description
Description
Description
Description
*)
*)
5 - 42

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents