Mitsubishi Electric M800VW Series Programming Manual page 303

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
ROL, ROLP, RCL, RCLP: Left 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]
ROL, RCL
ROLP, RCLP
 Setting data
Setting data
D
Head No. of the device to perform rotation
n
Number of rotations (0 to 15)
 Functions
ROL
 Rotates the 16-bit data of the device designated at "D", not including the carry flag, n-bits to the left.
The carry flag goes ON or OFF depending on its status prior to the execution of ROL instruction.
Carry flag
(SM12)
b15 b14 b13 b12 b11 b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 b0
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.
RCL
 Rotates the 16-bit data of the device designated by D , including the carry flag, n-bits to the left.
The carry flag goes ON or OFF depending on its status prior to the execution of RCL instruction.
Carry flag
(SM12)
b15 b14 b13 b12 b11 b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 b0
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
D
D
282
Digit
Pointer
designa-
Index
tion
H
P
indicates the signs ROL/ RCL.
D
n
P
D
n
Data type
BIN 16 bits

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents