6-3-10 Data Operation - Omron SYSMAC CS1G Operation Manual

Motion control unit
Table of Contents

Advertisement

Command Details
Shift Right/Shift Left
(SFTR/SFTL)
Command type
Format
Operand
Operand
Setting range
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
334
• 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;
Decimal
Bit
No
No
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
Bit
No
No
No
No
Variable specification
Word
Long
Real
word
number
Yes
Yes
No
Yes
No
No
Variable specification
Word
Long
Real
word
number
Yes
Yes
No
Yes
Yes
No
Section 6-3
INC/ ABL
influ-
Indirect
ence
specifi-
cation
No
No
No
No
INC/ ABL
influ-
Indirect
ence
specifi-
cation
No
No
Yes
No

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac cs1w-mch71Sysmac cs seriesSysmac cs1h

Table of Contents