EasyManuals Logo

Mitsubishi MELSEC Q Series Programming Manual

Mitsubishi MELSEC Q Series
1296 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #412 background imageLoading...
Page #412 background image
7-38
ROL(P),RCL(P)
7.2.2 Left rotation of 16-bit data (ROL(P),RCL(P))
ROL(P),RCL(P)
Function
ROL
(1) Rotates the 16-bit data of the device designated at , not including the carry flag, n-bits to
the left.
The carry flag turns ON or OFF depending on its status prior to the execution of ROL instruction
.
: Head number of the devices to rotate (BIN 16 bits)
n : Number of rotations (0 to 15) (BIN 32 bits)
Setting
Data
Internal Devices
R, ZR
J\
U\G
Zn
Constants
K, H
Other
Bit Word Bit Word
–– ––
n ––
Basic
Process
High
performance
Redundant
Universal
LCPU
Command
Command
P
D n
D
n
ROL, RCL
ROLP, RCLP
indicates an instruction symbol of ROL/RCL.
D
D
D
b9
b15 b10b14 b13 b12 b11 b8
b7
b6 b5 b4 b3 b2 b1 b0
b9
b15 b10b14 b13 b12 b11 b8
b7
b6 b5 b4 b3 b2 b1 b0
b9
b15 b10b14 b13 b12 b11 b8
b7
b6 b5 b4 b3 b2 b1 b0
b9
b15 b10b14 b13 b12 b11 b8
b7
b6 b5 b4 b3 b2 b1 b0
0
10010000 0
0
0000
0
0
Carry flag
(SM700)
0
001100000 0
0
000
0
D
D
D
D
Value of b15
Carry flag
(SM700)
Left rotation (1 bit)
Left rotation (1 bit)
1
Value of b15
0
10000000 0
0
0001
0
Value of b15
Carry flag
(SM700)
0
Value of b15
Value of b(16-n)
Value of b(16-n)
Carry flag
(SM700)
Left rotation (n bits)

Table of Contents

Other manuals for Mitsubishi MELSEC Q Series

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Mitsubishi MELSEC Q Series and is the answer not in the manual?

Mitsubishi MELSEC Q Series Specifications

General IconGeneral
BrandMitsubishi
ModelMELSEC Q Series
CategoryController
LanguageEnglish

Related product manuals