![Omron CS1W-MCH71 - Скачать руководство пользователя страница 409](http://html1.mh-extra.com/html/omron/cs1w-mch71/cs1w-mch71_operation-manual_742367409.webp)
364
Command Details
Section 6-3
• The table below shows the result of logic operations.
Precaution for Handling the Data Types
1,2,3...
1.
Bit type
• When the bit type is used, all the operands must be the bit type.
• The integer immediate values 0 and 1 are treated as the bit type.
2.
Types other than the bit type
• Types other than the bit type are prioritized in the following order
Real number type > Long word type > Word type
• Operation is performed in the type of the highest priority, and the op-
eration result will be stored after being converted to the type on the left.
• The integer immediate value is treated as long word type, and the dec-
imal immediate value is treated as real number type.
Logic NOT
(REVERSE) (!)
This command reverses bits.
Command type
Not executed as an independent command (no type).
Format
<First term> = ! <Second term>;
Ex: #MW1000 = !#MW0010;
Operand
Note
Figures below the decimal point are to be omitted.
Description
• The reversed bits (NOT) on the right side are assigned to the left side.
• If the types are different on both sides, the type on the right is converted
to that of the left.
• If the value on the right side cannot be stored in the left side, the alarm
[2005h: Operation overflow] will occur.
Precaution for Handling the Data Types
1,2,3...
1.
Bit type
• When the bit type is used, all the operands must be the bit type.
• The integer immediate values 0 and 1 are treated as the bit type.
2.
Types other than the bit type
• Types other than the bit type are prioritized in the following order
Real number type > Long word type > Word type
Second
term
Third term
Logical OR
(OR)
Logical AND
(AND)
Logical exclusive
OR (XOR)
0
0
0
0
0
0
1
1
0
1
1
0
1
0
1
1
1
1
1
0
Operand
Setting range
Decimal
Variable specification
INC/ ABL
influ-
ence
Bit
Word
Long
word
Real
number
Indirect
specifi-
cation
First term
Variable
No
Yes
Yes
Yes
No
No
No
Second term
−
2147483648 to
2147483647
Yes (See
note.)
Yes
Yes
Yes
No
Yes
No
Содержание CS1W-MCH71 -
Страница 2: ...CS1W MCH71 CJ1W MCH71 Motion Control Unit Operation Manual Revised June 2008 ...
Страница 3: ...iv ...
Страница 29: ...xxx ...
Страница 33: ...xxxiv ...
Страница 35: ...xxxvi ...
Страница 39: ...xl ...
Страница 69: ...24 Performance Section 1 7 ...
Страница 99: ...54 Connecting MECHATROLINK Devices Section 3 5 ...
Страница 283: ...238 Saving Data Section 5 4 ...
Страница 417: ...372 Command Details Section 6 3 ...