6-3-10 Data Operation - Omron CS1W-MCH71 Operation Manual

Sysmac cs/cj-series
Hide thumbs Also See for CS1W-MCH71:
Table of Contents

Advertisement

Command Details
Shift Right/Shift Left
(SFTR/SFTL)
Command type
Format
Operand
Operand
Shift object Variable
Variable
Shift amount
Word type
(See note.): 1 to 16
Long word type
(See note.): 1 to 32
Note
Description

6-3-10 Data Operation

BCD to BIN (BIN)
Command type
Format
Operand
Operand
Setting range
First term
Variable
Second term
Word type:
0-9999
(See note.)
Long type:
0-99999999
368
• 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.
The Shift Right/ Shift left (SFTR/SFTL) command shifts variables.
SFTR: Multiple execution command
SHTL: Multiple execution command
SFTR<shift object variable>_N<shift amount>;
SFTL<shift object variable>_N<shift amount>;
Ex: SFTR #MW1000 N2;
Setting range
Decimal
No
No
Setting range varies depending on the type of the shift object.
• 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.
BCD data is converted into BIN data.
Not executed as an independent command (no type).
<First term> = BIN<Second term>;
Ex: #MW1000 = BIN #MW1001;
Decimal
No
No
Variable specification
Bit
Word
Long
word
No
Yes
Yes
No
Yes
No
Variable specification
Bit
Word
Long
word
No
Yes
Yes
No
Yes
Yes
Section 6-3
INC/ ABL
influ-
Real
Indirect
ence
number
specifi-
cation
No
No
No
No
No
No
INC/ ABL
influ-
Real
Indirect
ence
number
specifi-
cation
No
No
No
No
Yes
No

Advertisement

Table of Contents

Troubleshooting

loading

This manual is also suitable for:

Cj1w-mch71

Table of Contents