Mitsubishi Electric M800VW Series Programming Manual page 305

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

Advertisement

M800V/M80V Series PLC Programming Manual (1/2)
8 Function Instructions
8.7 Rotation Instructions
DROR, DRORP, DRCR, DRCRP: Right rotation of 32-bit data
Setting
Bit devices
data
X
Y
M
L
F
D
n
△ : Index qualification is not available for constant K/H.
[Instruction symbol] [Execution condition]
DROR, DRCR
DRORP, DRCRP
 Setting data
Setting data
D
Head No. of the device to perform rotation
Number of rotations (0 to 31)
n
2 words (32 bits) are used for a word device.
 Functions
DROR
 The 32-bit data of the device designated at "D", not including the carry flag, is rotated n-bits to the right.
The carry flag goes ON or OFF depending on its status prior to the execution of the DROR instruction.
D+1
b31
b30
b29
b28
b27
b18
b17
n-bit rotation
 Specify any of "0" to "31" as "n". If the value specified as "n" is "32" or greater, the values of "D+1" and "D" become indefi-
nite.
DRCR
 Rotates 32-bit data, including carry flag, at device designated by D n bits to the right.
The carry flag goes ON or OFF depending on its status prior to the execution of the DRCR instruction.
D+1
b31
b30
b29
b28
b27
b18
b17
n-bit rotation
 Specify any of "0" to "31" as "n". If the value specified as "n" is "32" or greater, the values of "D+1" and "D" become indefi-
nite.
IB-1501667-B
Usable devices
B SB
T SM V
T
C
Command
Command
Meaning
D
b16
b15
b14
b5
b4
b3
b2
b1
D
b16
b15
b14
b5
b4
b3
b2
b1
Con-
Word devices
stant
D
R/ZR W SW SD
Z
K
Carry flag
(SM12)
b0
Carry flag
(SM12)
b0
284
Digit
Pointer
designa-
Index
tion
H
P
indicates the signs DROR/DRCR
D
n
P
D
n
Data type
BIN 32 bits
BIN 32 bits

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents