Ror - Delta Electronics DVP15MC11T Operation Manual

Table of Contents

Advertisement

DVP15MC11T Operation Manual

8.10.4 ROR

FB/FC
ROR is used to rotate all bits of a variable or constant by the specified
FC
number of bits to the right and the result is output to Out.
Parameters
Parameter
Meaning
name
Data to
In
rotate
Number of
Num
bits
Out
Result
● ●
In
Num
Out
Note:
The symbol ● indicates that the parameter is allowed to connect to the variable or constant of the data type.
_8
Function Explanation
ROR is used to rotate all bits of the value of In by the number of bits specified by Num to the right and the
result is output to Out.
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.
8-130
Explanation
Input/
Output
The original data to rotate
Input
to the right
The number of bits by
Input
which the bits of data are
rotated to the right
Result from rotating all
bits of the original data by
Output
the number of bits
specified by Num to the
right
Bit string
The data type of Out must be the same as In.
RO R
E N
ENO
In
O ut
Nu m
Description
Depends on the data type of the
variable that the input parameter is
connected to.
Depends on the data type of the
variable that the input parameter is
connected to.
Depends on the data type of the
variable that the output parameter is
connected to.
Integer
Applicable model
DVP15MC11T
Valid range
Real
Time, date
number

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents