8. Function Commands
DROL, DROLP
- 262 -
{ DROL, DROLP ... Left rotation of 32-bit data
Usable device
Bit device Word device
Con-
stant
Pointer
X Y M L F BSB T SM VTCDRWSWZSDKH P
Digit
desig-
nation
Index
No. of
steps
D
{ { { { { {
{
{ { { { { { { {
n
{ { { { { { {
{
{ { { { { { { { { {
{ {
3
DROL
Left rotation command
n
D
DROL
DROLP
n
D
DROLP
Setting data
n
Head No. of device where
left rotation data is stored.
D
Times (0 to 31)
Function
The 32-bit data designated with D is rotated n bits to the left excluding the carry flag.
Carry flag
(SM12)
B15
B31B30B29 B16
B2B1B0
D
nbitrotation
D+1
Execution conditions
The execution conditions for the DROL, DROLP are as shown below.
Left rotation command OFF
DROL
ON
Executed per scan
Executed per scan
DROLP