EasyManuals Logo

Delta DVP-15MC Series User Manual

Delta DVP-15MC Series
972 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #225 background imageLoading...
Page #225 background image
DVP-15MC Series Motion Controller Operation Manual
8-138
_8
Via ROR, the bits shifted out of the right will shift to the null bits in the left one by one. When Num=2, all
bits of the value of In rotates by two bits to the right. The rotation method is that Bit2~Bit7 are shifted to
Bit0~Bit5 respectively, Bit0 is shifted to Bit6 and Bit1 is shifted to Bit7.
Precautions for Correct Use
The input variables are not allowed to omit. An error will occur during the compiling of the software
if any input variable is omitted. But the output variable is allowed to omit.
The value of Out is the same as In when the value of Num is 0.
The number of bits by which the bits of data are rotated to the right is equal to the value of Num
MOD In when the value of Num is greater than the number of bits of the value of In.
For example, if the data type of In is BYTE, the value of out when Num=USINT#1 is the same for
when Num=USINT#9.
Programming Example
The data types of ROR_In and ROR_Num are UINT and USINT respectively and their values are
300 and 3 respectively. The data type of Out1 is BYTE and the value of Out1 is 32805 when
ROR_EN is TRUE.
The variable table and program
Variable name
Data type
Current value
ROR_EN
BOOL
TRUE
ROR_In
UINT
300
ROR_Num
USINT
3
Out1
UINT
32805
Illustration of the example
10101101
Bit0
Bit7
In
Out
Num=2, shifted by two bits right
Bit0
Bit7
10110110
1
ROR
EN ENO
In Out
ROR_EN
ROR_In Out1
Num
ROR_Num
0
1
0
11
0 00
1
Bit0Bit15
ROR_In
Out1
1
0000000
0100000 0 00 10001
Bit0Bit15
ROR_Num=3 rotated by three bits to the right,

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Delta DVP-15MC Series and is the answer not in the manual?

Delta DVP-15MC Series Specifications

General IconGeneral
BrandDelta
ModelDVP-15MC Series
CategoryController
LanguageEnglish

Related product manuals