Chapter 8 Logic Instructions
8.9.5 XORN
FB/FC
Explanation
FC
XORN is used for an XORN operation of two or more variables or constants. DVP15MC11T
Parameters
Meaning
Description Valid range
In1 to InN Operand Input
The number of operands can be
increased or decreased through the
programming software. Maximum: 8.
Minimum: 2. That is N=2 ~ 8.
of the variable that the
input parameter is
Out
Operatio
n result
Output XORN operation result of In1 ~ InN
of the variable that the
output parameter is
Boolean
Bit string Integer
Real
number
Time, date
String
BOOL
BYTE
WORD
DWORD
LWORD
USINT
UINT
UDINT
ULINT
SINT
INT
DINT
LINT
REAL
LREAL
TIME
DATE
TOD
DT
STRING
to
● ● ● ● ● ● ● ● ●
Out
● ● ● ● ● ● ● ● ●
Note:
The symbol ● indicates that the parameter is allowed to connect to the variable or constant of the data type.
Function Explanation
XORN is used for a bitwise XORN of two or more variables or constants and the result is output to Out.
That is Out= In1 XORN In2 XORN…XORN InN.
The operational rule for XORN of In1 and In2 is shown in the following figure.
XORN
EN ENO
In1 Out
InN
.
.
.
.
..
00101100
01111001
10101010
Bit0Bit7
In1
In2
Out
8-121