DVP-15MC Series Motion Controller Operation Manual
8-118
_8
The operational rule:
The corresponding bit of the output variable is TRUE when corresponding bits of input variables
are all TRUE as shown below. Otherwise, the corresponding bit of the output variable is FALSE.
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 complemented and their values are all 0. And then the logical AND 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 AND_In1, AND_In2 and Out1 are all BYTE. The values of AND_In1 and AND_In2
are 10 and 50 respectively and the value of Out1 is 2 when AND_EN is TRUE.
The variable table and program
Variable name
Data type
Current value
AND_EN
BOOL
TRUE
AND_In1
BYTE
10
AND_In2
BYTE
50
Out1
BYTE
2
0
0
1
0
1
1
0
0
0
1
1
1
1
0
0
1
0
0
1
0
1
1
0
0
0
0
1
0
1
0
0
0
B it 0
Bit 7
In 1
In 2
In 3
Out
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
I n1_WO RD
I n2
Bit 8
Bit 15
0
0
1
0
0
1
0
0
0
0
0
0
0
0
0
0
Out
0
0
1
0
1
1
0
0
1
AND
EN
E NO
In1
Out
AND_EN
AND_I n1
O ut1
In 2
AND_I n2
Summary of Contents for DVP-15MC Series
Page 19: ...DVP 15MC Series Motion Controller Operation Manual 1 4 _1 MEMO...
Page 23: ...DVP 15MC Series Operation Manual 2 4 _2 MEMO...
Page 31: ...DVP 15MC Series Motion Controller Operation Manual 3 8 _3 MEMO...
Page 75: ...DVP 15MC Series Motion Controller Operation Manual 6 26 _6 MEMO...
Page 87: ...DVP 15MC Series Motion Controller Operation Manual 7 12 _7 MEMO...
Page 432: ...Chapter 8 Logic Instructions 8 345 8_ MEMO...
Page 470: ...DVP 15MC Series Motion Controller Operation Manual 10 34 10 MEMO...
Page 878: ...DVP 15MC Series Motion Controller Operation Manual 11 408 11 1 MEMO...
Page 920: ...DVP 15MC Series Motion Controller Operation Manual A 16 A MEMO...
Page 941: ...D 1 D Explanation of Homing Modes Table of Contents D 1 Explanation of Homing Modes D 2...
Page 966: ...DVP 15MC Series Motion Controller Operation Manual D 26 D MEMO...