Omron CS1W-MCH71 MOTION CONTROL UNIT - 09-2004 Manual page 353

Motion control unit
Hide thumbs Also See for CS1W-MCH71 MOTION CONTROL UNIT - 09-2004:
Table of Contents

Advertisement

Command Details
Precaution for Handling the Data Types
1,2,3...
Logic NOT
(REVERSE) (!)
Command type
Format
Operand
Operand
Setting range
First term
Variable
−2147483648 to
Second term
2147483647
Note
Description
Precaution for Handling the Data Types
1,2,3...
330
• The table below shows the result of logic operations.
Second
Third term
term
0
0
0
1
1
0
1
1
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.
This command reverses bits.
Not executed as an independent command (no type).
<First term> = ! <Second term>;
Ex: #MW1000 = !#MW0010;
Decimal
Bit
No
Yes
Yes (See
Yes
note.)
Figures below the decimal point are to be omitted.
• 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.
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
Logical OR
Logical AND
(OR)
(AND)
0
0
1
0
1
0
1
1
Variable specification
Word
Long
Real
word
number
Yes
Yes
No
Yes
Yes
No
Section 6-3
Logical exclusive
OR (XOR)
0
1
1
1
INC/ ABL
influ-
Indirect
ence
specifi-
cation
No
No
Yes
No

Advertisement

Table of Contents

Troubleshooting

loading

This manual is also suitable for:

Sysmac cs-series

Table of Contents