![background image](http://html1.mh-extra.com/html/omron/cs1w-mch71/cs1w-mch71_operation-manual_742367413.webp)
368
Command Details
Section 6-3
• If the logic operation expression is false, SET or RESET command does
not turn ON or OFF the specified bit.
• When the logic operation is executed on each corresponding bit with the
logic operator on the right side and if there is any bit having the result of 1,
it is considered to be true. On the other hand, if all the bits are 0, it is con-
sidered to be false.
Shift Right/Shift Left
(SFTR/SFTL)
The Shift Right/ Shift left (SFTR/SFTL) command shifts variables.
Command type
SFTR: Multiple execution command
SHTL: Multiple execution command
Format
SFTR<shift object variable>_N<shift amount>;
SFTL<shift object variable>_N<shift amount>;
Ex: SFTR #MW1000 N2;
Operand
Note
Setting range varies depending on the type of the shift object.
Description
• SFTR command shifts Shift object variable to the right for the amount
specified in Shift amount.
• SFTL command shifts Shift object variable to the left for the amount spec-
ified in Shift amount.
• SFTR and SFTL commands are executed only inside word or long word
type variables.
6-3-10 Data Operation
BCD to BIN (BIN)
BCD data is converted into BIN data.
Command type
Not executed as an independent command (no type).
Format
<First term> = BIN<Second term>;
Ex: #MW1000 = BIN #MW1001;
Operand
Operand
Setting range
Decimal
Variable specification
INC/ ABL
influ-
ence
Bit
Word
Long
word
Real
number
Indirect
specifi-
cation
Shift object Variable
Variable
No
No
Yes
Yes
No
No
No
Shift amount
Word type
(See note.): 1 to 16
Long word type
(See note.): 1 to 32
No
No
Yes
No
No
No
No
Operand
Setting range
Decimal
Variable specification
INC/ ABL
influ-
ence
Bit
Word
Long
word
Real
number
Indirect
specifi-
cation
First term
Variable
No
No
Yes
Yes
No
No
No
Second term
Word type:
0-9999
(See note.)
Long type:
0-99999999
No
No
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 ...