Mitsubishi Electric M800VW Series Programming Manual page 307

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
DROL, DROLP, DRCL, DRCLP: Left 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]
DROL, DRCL
DROLP, DRCLP
 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
DROL
 The 32-bit data of the device designated at "D", not including the carry flag, is rotated n-bits to the left.
The carry flag goes ON or OFF depending on its status prior to the execution of the DROL instruction.
Carry flag
(SM12)
b31
b30
b29
b28
 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 indefinite.
DRCL
 Rotates 32-bit data, including carry flag, at device designated by "D", n bits to the left.
The carry flag goes ON or OFF depending on its status prior to the execution of the DRCL instruction.
Carry flag
(SM12)
b31
b30
b29
b28
 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+1
b27
b18
b17
b16
b15
b14
n-bit rotation
D+1
b27
b18
b17
b16
b15
b14
n-bit rotation
Word devices
D
R/ZR W SW SD
Z
K
D
b5
b4
b3
b2
b1
b0
D
b5
b4
b3
b2
b1
b0
286
Digit
Con-
Pointer
designa-
Index
stant
tion
H
P
indicates the signs DROL/DRCL
D
n
P
D
n
Data type
BIN 32 bits
BIN 32 bits

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents