Block Data Exclusive Or; Not Exclusive Or (2 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.15 Block data exclusive OR

n points of 16-bit data, starting at the specified two devices, are EXCLUSIVE ORed bit by bit.
Function definition

5.10.16 NOT exclusive OR (2 devices)

The specified two BIN 16-bit data are NOT EXCLUSIVE ORed bit by bit.
Function definition
5 - 46
BKXOR_M
BOOL BKXOR_M (BOOL EN, ANY16 S1, ANY16 S2, ANY16 n, ANY16 D);
Argument Name
EN
S1
S2
n
D
Return Value
BOOL
Execution condition
Example of use
(* When execution condition X0 turns ON, the data of the number of points
(* stored in D0, starting at D10, and the data of the number of points stored
(* in D0, starting at D20, are EXCLUSIVE ORed, and the result is stored into
(* D100 and later.
BKXOR_M (X0, D10, D20, D0, D100);
Corresponding MELSEC command
BKXOR (Block exclusive OR)
BOOL WXNR_M (BOOL EN, ANY32 S1, ANY32 S2, 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 16-bit data in X20 to X2F and
(* the 16-bit data in D10 are NOT EXCLUSIVE ORed, and the result is stored *)
(* into D10.
WXNR_M (X0, K4X20, D10);
Corresponding MELSEC command
WXNR (16-bit data NOT exclusive OR)
IN/OUT
Execution condition (Function is executed only when
IN
the result is TRUE)
Data to be EXCLUSIVE ORed, operation result (BIN
IN
16-bit data)
IN
Data to EXCLUSIVE OR (BIN 16-bit data)
IN
Number of data to be processed (BIN 16-bit data)
OUT
Operation result (BIN 16-bit data)
WXNR_M
IN/OUT
Execution condition (Function is executed only when
IN
the result is TRUE)
IN
Data to NOT EXCLUSIVE OR (BIN 16-bit data)
Data to be NOT EXCLUSIVE ORed, operation result
IN/OUT
(BIN 16-bit data)
For the usable data type, refer to "3.2.2
About ANY type".
Description
Description
Description
Description
*)
*)
*)
*)
*)
*)
5 - 46

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec-l

Table of Contents