Rcr (Fnc 32) - Mitsubishi FX1S Series Programming Manual

Melsec-f
Hide thumbs Also See for FX1S Series:
Table of Contents

Advertisement

FX Series Programmable Controlers
5.4.3

RCR (FNC 32)

Mnemonic
RCR
FNC 32
(
Rotation
right with
carry)

16 BIT OPERATION
Function
The contents of
KnY, KnM, KnS,
the destination
T, C, D, V, Z
device are rotated
Note:
right with 1 bit
16 bit operation
extracted to the
Kn= K4,
carry flag
32 bit operation
Kn=K8
32 BIT OPERATION
Operands
D
K, H,
)
Note:
16 bit operation n≤ 16
32 bit operation n≤ 32
PULSE-P
Operation:
The bit pattern of the destination device (D)is rotated
n bit places to the right on every operation of the
instruction.
The status of the last bit rotated is moved into the
carry flag M8022. On the following operation of the
instruction M8022 is the first bit to be moved back
into the destination device.
The example shown left is based on the instruction
noted above it, where the bit pattern represents the
contents of D0.
Applied Instructions 5
FX
FX
FX
1N
2N
1S
Program steps
n
RCR,RCRP:
5 steps
DRCR,
DRCRP:
7 steps
Flags
Carry M8022
5-45
FX
2NC

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fx1n seriesFx2nc seriesFx2n series

Table of Contents