Xor_E - Mitsubishi Electric MELSEC FX Series Structured Programming Manual

Hide thumbs Also See for MELSEC FX Series:
Table of Contents

Advertisement

FXCPU Structured Programming Manual
(Application Functions)
5.5.3

XOR_E

Outline
This function obtains the exclusive logical sum of two or more bits, and outputs it.
1. Format
Function name
XOR_E
*1.
Output variable
2. .Set data
Variable
EN
Input
variable
_IN (
ENO
Output
variable
*1
In explanation of functions, I/O variables inside ( ) are described.
Explanation of function and operation
1) This function obtains the exclusive logical sum using each bit of bit/word [unsigned]/bit string [16-bit]/
double word [unsigned]/bit string [32-bit] data stored in devices specified in
the operation result to a device specified in
and
s1
Example: When the data type is word [unsigned]/bit string [16-bit]
s1
1
0
s2
d
1
2) The number of pins in
158
FX
3U(C)
Structured ladder
X000
XOR_E
EN
M0
_IN
M10
_IN
Execution condition
...)
Device used to obtain the exclusive logical sum
s1
Execution status
Device which will store the operation result
(
)
d
.
s2
0
1
0
1
0
1
Exclusive logical sum
0
0
1
1
0
1
0
1
1
0
0
0
can be changed.
s
FX
3G
FX
2N(C)
FX
Expression in each language
XOR_E(EN,_IN,_IN,Output
label);
ENO
Example:
XOR_E(X000,M0,M10,M20);
*1
M20
Description
using the data type of data stored in devices specified in
d
0
1
0
1
0
1
0
1
1
1
1
1
0
0
1
0
1
0
1
1
0
5.5 Standard Bitwise Boolean Functions
1N(C)
FX
1S
FX
U
/FX
2C
ST
Bit
ANY_BIT
Bit
ANY_BIT
and
s1
1
0
0
0
1
0
FX
0N
FX
0(S)
Data type
, and outputs
s2

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fx-kp-ok-e09r927

Table of Contents