EasyManua.ls Logo

Inovance H3U Series - Page 198

Inovance H3U Series
737 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
Loading...
197
4
4 Instructions 4.5.4 Data Rotation and Shift
RCR: Rotation right with carry
Overview
When driving conditions are met, the bit pattern in D with the carry ag M8022 is rotated K bit places to the
right on every execution of the RCR instruction. The lower bits with the carry ag that are rotated out of D
ll the higher bits of D.
RCR D n
Rotation right
with carry
Applicable model:
H3U
D
Operand to be
rotated
Address of the word element that stores the data 16-bit instruction
(5 steps)
RCR: Continuous
execution
RCRP: Pulse
execution
32-bit instruction
(9 steps)
DRCR:
Continuous
execution
DRCRP: Pulse
execution
n
Number of bit
places rotated
on every
execution
Value range: 1 ≤ n ≤ 16 (16-bit operation);1 ≤ n ≤ 32
(32-bit operation)
Operands
Operand
Bit Element Word Element
System·User System·User Bit Designation Indexed Address Constant
Real
Number
D X Y M T C S SM D R T C SD KnX KnY KnM KnS KnSM
V,Z
Modication K H E
n X Y M T C S SM D R T C SD KnX KnY KnM KnS KnSM
V,Z
Modication K H E
Note: The elements in gray background are supported.
Function
The bit pattern in D with the carry ag M8022 is rotated n bit places to the right.
The instruction of the pulse execution type is generally used.
When the 32-bit instruction is executed, the register variable occupies two consecutive units.
When KnY, KnM, and KnS are specied in D, only K4 (16-bit operation) and K8 (32-bit operation) are valid.
Example:
Higher bits
Higher bits
carry flag
carry flag
Higher bits
Right rotation with
Lower bits
Lower bits
After every
execution
Lower bits
Lower bits
After every
execution
Higher bits
Left rotation with
1 000000000010011
1 1 11000000000
M20
RCRP D20K3
1
M8022
M8022 0
n=3
1 0 1 1 100000000000
1 000000000000101
0
M80221
n=4
M20
RCLPD20 K4
M8022
010

Table of Contents

Other manuals for Inovance H3U Series

Related product manuals