Rotation Instructions - Mitsubishi Electric M800VW Series Programming Manual

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

8.7 Rotation Instructions
ROR, RORP, RCR, RCRP: Right rotation of 16-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]
ROR, RCR
RORP, RCRP
 Setting data
Setting data
D
Head No. of the device to perform rotation
n
Number of rotations (0 to 15)
 Functions
ROR
 Rotates 16-bit data of the device designated by "D", not including the carry flag, n-bits to the right.
The carry flag is ON or OFF depending on the status prior to the execution of the ROR instruction.
b15 b14 b13 b12 b11 b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 b0
D
n-bit rotation
 Specify any of "0" to "15" as "n". If the value specified as "n" is "16" or greater, operations will be as follows:
- When "n" is "16", the value becomes the one when 16-bit rotation was executed.
- When "n" is "17" or above, the value of D becomes indefinite.
RCR
 Rotates 16-bit data of the device designated by "D", including carry flag, n bits to the right.
The carry flag is ON or OFF depending on the status prior to the execution of the RCR instruction.
b15 b14 b13 b12 b11 b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 b0
D
n-bit rotation
 Specify any of "0" to "15" as "n". If the value specified as "n" is "16" or greater, operations will be as follows:
- When "n" is "16", the value becomes the one when 16-bit rotation was executed.
- When "n" is "17" or above, the value of D becomes indefinite.
IB-1501667-B
Usable devices
B SB
T SM V
T
C
Command
Command
Meaning
Con-
Word devices
stant
D
R/ZR W SW SD
Z
K
Carry flag
(SM12)
Carry flag
(SM12)
280
Digit
Pointer
designa-
Index
tion
H
P
indicates the signs ROR/ RCR.
D
n
P
D
n
Data type
BIN 16 bits

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents