Mitsubishi Electric MELDAS 60 Series Programming Manual page 156

Plc programming
Hide thumbs Also See for MELDAS 60 Series:
Table of Contents

Advertisement

RCR ... Right rotation of 16-bit data
Bit device
X
Y
M
L SM F
D
n
RCR
Function
The 16-bit data designated with D is rotated n bits to the right including the carry flag.
The carry flag must be set to 1 or 0 before executing RCR.
Execution conditions
The execution conditions for the RCR command are as shown below.
Right rotation command OFF
RCR
Usable device
Word device
T
C
D
R
Z
Right rotation command
Carry flag
(SM12)
B15 B14B13 B12B11B10 B9 B8 B7 B6 B5 B4 B3 B2 B1 B0
Con-
Pointer
stant
K
H
P
RCR
Setting data
D
n
D (16-bits)
n-bit rotation
ON
Executed per scan
- 148 -
RCR
Digit
No. of
desig-
Level
steps Index
nation
N
3
D
n
No. of device where right
rotation data is stored.
Times (0 to 15)
Executed per scan

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents