2 Instruction Descriptions
2-290
NJ-series Instructions Reference Manual (W502)
The relationships between input and output variables are given in the following table. If both values are
the same, then the processing result is TRUE. Otherwise, the processing result is FALSE.
The following example is for when In1 is BYTE#16#3A, In2 is BYTE#16#28, and In3 is BYTE#16#73.
The data types of In1 to InN and Out must all be the same. Otherwise, a building error will occur.
In1 bit In2 bit Out bit
FALSE FALSE TRUE
FALSE TRUE FALSE
TRUE FALSE FALSE
TRUE TRUE TRUE
Precautions for Correct Use
abc:=BYTE#16#3A XOR NOT BYTE#16#28
XOR NOT BYTE#16#73;
LD ST
abc
BYTE#16#3A
BYTE#16#28
BYTE#16#73
XORN
EN ENO
In1
In2
InN
0 1 1 0 0 0 0 1
0 1 1 1 0 0 1 1
0 0 1 0 1 0 0 0
0 0 1 1 1 0 1 0
Out=abc
In3=BYTE#16#73
In2=BYTE#16#28
In1=BYTE#16#3A
Logical exclusive NORs between bits