5 - 45 5 - 45
5 MELSEC FUNCTIONS
5.10.13 32-bit data exclusive OR (2 devices) DXOR_M
The specified two BIN 32-bit data are EXCLUSIVE ORed bit by bit.
Function definition
BOOL DXOR_M (BOOL EN, ANY32 S1, ANY32 D);
Argument Name
IN/OUT
Description
EN IN
Execution condition (Function is executed only when
the result is TRUE)
S1
IN
Data to EXCLUSIVE OR (BIN 32-bit data)
D IN/OUT
Data to be EXCLUSIVE ORed, operation result (BIN
32-bit data)
Remarks: For bit devices, the bits greater than in the digit specification are
processed as "0 (zero)".
Return Value
Description
BOOL Execution
condition
Example of use
(* When execution condition X0 turns ON, the 32-bit data in dwData1 and
*)
(* Result are EXCLUSIVE ORed, and the result is stored into Result.
*)
DXOR_M (X0, dwData1, Result);
Corresponding MELSEC command
DXOR (32-bit data exclusive OR)
5.10.14 32-bit data exclusive OR (3 devices) DXOR_3_M
The specified two BIN 32-bit data are EXCLUSIVE ORed bit by bit.
Function definition
BOOL DXOR_3_M (BOOL EN, ANY32 S1, ANY32 S2, ANY32 D);
Argument Name
IN/OUT
Description
EN IN
Execution condition (Function is executed only when
the result is TRUE)
S1
IN
Data to be EXCLUSIVE ORed (BIN 32-bit data)
S2
IN
Data to EXCLUSIVE OR (BIN 32-bit data)
D
OUT
Operation result (BIN 32-bit data)
Remarks: For bit devices, the bits greater than in the digit specification are
processed as "0 (zero)".
Return Value
Description
BOOL Execution
condition
Example of use
(* When execution condition X0 turns ON, the 32-bit data in dwData1 and
*)
(* dwData2 are EXCLUSIVE ORed, and the result is stored into Result.
*)
DXOR_3_M (X0, dwData1, dwData2, Result);
Corresponding MELSEC command
DXOR (32-bit data exclusive OR)
For the usable data type, refer to "3.2.2
About ANY type".
Содержание MELSEC L series
Страница 1: ...Programming Manual Structured Text ...
Страница 2: ......
Страница 73: ...4 33 4 33 4 ST PROGRAM EXPRESSIONS MEMO ...
Страница 297: ......