Mitsubishi Electric MELDAS 60 Series Programming Manual page 162

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

Advertisement

ROL ... Left rotation of 16-bit data
Bit device
X
Y
M
L SM F
D
n
ROL
Function
The 16-bit data designated with D is rotated n bits to the left excluding the carry flag.
The carry flag must be set to 1 or 0 after executing ROL.
Execution conditions
The execution conditions for the ROL command are as shown below.
Left rotation command OFF
ROL
Usable device
Word device
T
C
D
R
Z
Left rotation command
Carry flag
(SM12)
B15B14B13B12B11B10 B9 B8 B7 B6 B5 B4 B3 B2 B1 B0
Con-
Pointer
stant
K
H
P
ROL
Setting data
D
n-bit rotation
ON
Executed per scan
- 154 -
ROL
Digit
No. of
desig-
Level
steps Index
nation
N
3
n
D
No.of device where left
D
rotation data is stored.
n
Times (0 to 15)
Executed per scan

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents