Chapter 8 Logic Instructions
8-129
8_
The XORN result of In1 and In2 is got first; then the XORN of the previous result and In3 is
conducted and so on. Finally, the XORN of the previous XORN result and InN is processed.
The XORN result of In1 and In2 is Out_Temp and the XORN result of Out_Temp and In3 is Out as
shown below.
In1
~
InN
are allowed to be the variables of different data types when none of the data types of input
variables are BOOL.
When
In1
to
InN
are the variables of different data types, take the data type which can include all
ranges of the values of
In1
~
InN
for
the operation.
For example, if the data type of
In1
is BYTE and
In2
is WORD, the data type of
Out
is WORD. In
operation, the value of
In1
is converted from BYTE to WORD as shown in the following figure.
(Bit8~ Bit 15 are supplemented and their values are all 0.) And then the logical XORN of the bit
values of
In1
and
In2
is conducted as below.
If the data type of an input variable is BOOL, the data types of all input and output variables are
required to be BOOL. Otherwise, an error will occur in the compiling of the software.
Precautions for Correct Use
The input variables are not allowed to omit. An error will occur during the compiling of the software if
any input variable is omitted. But the output variable is allowed to omit.
Programming Example
The data types of XORN_In1, XORN_In2 and Out1 are all BYTE. The values of XORN_In1 and
XORN_In2 are 10 and 50 and the value of Out1 is 199 when XORN_EN is TRUE as shown in
Variable 1.
The data types of XORN_In1, XORN_In2 and Out1 are BYTE, WORD and WORD. The values of
XORN_In1 and XORN_In2 are 255 and 256 and the value of Out1 is 65535 when XORN _EN is
TRUE as shown in Variable 2.
Variable 1
0
0
1
0
1
1
0
0
0
1
1
1
1
0
0
1
1
0
1
0
1
0
1
0
Bit0
B it 7
I n1
I n2
O ut
_
Temp
0
0
0
1
1
1
0
1
I n3
0
1
0
0
1
0
0
0
O ut
0
0
1
0
1
1
0
0
Bit0
B it 7
I n1
0
0
0
0
0
0
0
0
1
0
1
0
0
1
0
1
0
0
1
0
1
1
0
0
In1_ WORD
_
In2
Bit8
Bit15
0
1
1
1
0
1
1
0
1
1
0
1
0
0
1
1
Ou t
0
0
1
0
1
1
0
0
Содержание DVP-15MC Series
Страница 16: ...1 1 1 Preface Table of Contents 1 1 Explanation of Symbols in This Manual 1 2 1 2 Revision History 1 3...
Страница 19: ...DVP 15MC Series Motion Controller Operation Manual 1 4 _1 MEMO...
Страница 20: ...2 1 2 Overview Table of Contents 2 1 Product Description 2 2 2 2 Functions 2 2 2 3 Profile and Components 2 3...
Страница 23: ...DVP 15MC Series Operation Manual 2 4 _2 MEMO...
Страница 31: ...DVP 15MC Series Motion Controller Operation Manual 3 8 _3 MEMO...
Страница 75: ...DVP 15MC Series Motion Controller Operation Manual 6 26 _6 MEMO...
Страница 87: ...DVP 15MC Series Motion Controller Operation Manual 7 12 _7 MEMO...
Страница 432: ...Chapter 8 Logic Instructions 8 345 8_ MEMO...
Страница 433: ...9 1 9 Chapter 9 Introductions of Axis Parameters Table of Contents 9 1 Description of Axis Parameters 9 2...
Страница 470: ...DVP 15MC Series Motion Controller Operation Manual 10 34 10 MEMO...
Страница 878: ...DVP 15MC Series Motion Controller Operation Manual 11 408 11 1 MEMO...
Страница 920: ...DVP 15MC Series Motion Controller Operation Manual A 16 A MEMO...
Страница 941: ...D 1 D Explanation of Homing Modes Table of Contents D 1 Explanation of Homing Modes D 2...
Страница 966: ...DVP 15MC Series Motion Controller Operation Manual D 26 D MEMO...