Exclusive Or (2 Devices); Exclusive Or (3 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.11 Exclusive OR (2 devices)

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

5.10.12 Exclusive OR (3 devices)

The specified two BIN 16-bit data are EXCLUSIVE ORed bit by bit.
Function definition
5 - 44
WXOR_M
BOOL WXOR_M (BOOL EN, ANY16 S1, ANY16 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 16-bit data in D10 and D20 are *)
(* EXCLUSIVE ORed, and the result is stored into D20.
WXOR_M (X0, D10, D20);
Corresponding MELSEC command
WXOR (16-bit data exclusive OR)
WXOR_3_M
BOOL WXOR_3_M (BOOL EN, ANY16 S1, ANY16 S2, ANY16 D1);
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 16-bit data in D10 and D20 are *)
(* EXCLUSIVE ORed, and the result is stored into D100.
WXOR_3_M (X0, D10, D20, D100);
Corresponding MELSEC command
WXOR (16-bit data exclusive OR)
IN/OUT
Execution condition (Function is executed only when
IN
the result is TRUE)
IN
Data to EXCLUSIVE OR (BIN 16-bit data)
Data to be EXCLUSIVE ORed, operation result (BIN
IN/OUT
16-bit data)
IN/OUT
Execution condition (Function is executed only when
IN
the result is TRUE)
IN
Data to be EXCLUSIVE ORed (BIN 16-bit data)
IN
Data to EXCLUSIVE OR (BIN 16-bit data)
OUT
Operation result (BIN 16-bit data)
For the usable data type, refer to "3.2.2
About ANY type".
Description
Description
Description
Description
*)
*)
5 - 44

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents