D-66
API
Mnemonic
Operands Function
31
ROL
P
D, n
Rotate to the Left
Type
OP
Bit Devices
Word devices
Program Steps
X
Y
M K
H KnX KnY KnM T C D ROL, ROLP: 5 steps
D
*
*
*
*
*
n
* *
Operands:
D: Device to be rotated n: Number of bits to be rotated in 1 rotation
Explanations:
1.
This instruction rotates the device content designated by
D
to the left for
n
bits.
2.
This instruction adopts pulse execution instructions (ROLP).
Program Example:
When X0 goes from Off to On, the 16 bits (4 bits as a group) in D10 will rotate to the left, as shown in
the figure below. The bit marked with
※
will be sent to carry flag M1022.
X0
D10
K4
1 1 1
1 1
1 0 0
0
0 0
1
1
0 0
0
1
1 0 0 0
0 0
1 1
0
0
1
1
0
1
1 1
16 bits
Rotate to the left
After one rotation
to the left
Carry
flag
Carry
flag
D10
D10
upper bit
upper bit
lower bit
lower bit
Содержание VFD-E Series
Страница 271: ...B 6 B 1 4 DIN Rail Installation...
Страница 304: ...B 39 Driver Installation After connecting IFD6500 to PC please install driver by following steps...
Страница 305: ...B 40 LED Display 1 Steady Green LED ON power is ON 2 Blinking orange LED data is transmitting...
Страница 306: ...B 41 B 9 DIN Rail B 9 1 MKE DRA Unit mm inch SCREW M4 2X 20 22 Kgf cm...
Страница 335: ...D 8 In ladder diagram mode you can perform program editing using the buttons on the function icon row Basic Operation...