Rotation Instructions - Mitsubishi Electric MELSEC-Q/L Programming Manual

Hide thumbs Also See for MELSEC-Q/L:
Table of Contents

Advertisement

Rotation instructions

Category
Instruction
Symbol
symbol
Right
ROR
ROR
rotation of
16-bit data
RORP
RORP
RCR
RCR
RCRP
RCRP
Left rotation
ROL
ROL
of 16-bit
data
ROLP
ROLP
RCL
RCL
RCLP
RCLP
Right
DROR
DROR
rotation of
32-bit data
DRORP
DRORP
DRCR
DRCR
DRCRP
DRCRP
Left rotation
DROL
DROL
of 32-bit
data
DROLP
DROLP
DRCL
DRCL
DRCLP
DRCLP
*1 For the High-speed Universal model QCPU, the number of basic steps is four.
Processing details
b15
(D)
b0
D
n
D
n
Right rotation by n bits Carry flag
b15
(D)
b0
D
n
D
n
Right rotation by n bits
SM700
b15
D
n
D
n
Carry flag
Left rotation by n bits
SM700
b15
D
n
D
n
Carry flag
Left rotation by n bits
(D+1)
(D)
D
n
b31
to
b16
b15 to
b0
D
n
Right rotation by n bits Carry flag
(D+1)
(D)
D
n
b31
to
b16
b15 to
b0
D
n
Right rotation by n bits Carry flag
(D+1)
D
n
SM700
b31
to
b16
D
n
Carry flag
Left rotation by n bits
D
n
(D+1)
SM700
b31 to b16 b15 to b0
D
n
Carry flag
Left rotation by n bits
Execution
condition
SM700
SM700
Carry flag
(D)
b0
(D)
b0
SM700
SM700
(D)
b15 to
b0
(D)
2 INSTRUCTION TABLES
2.5 Application Instructions
Number
Subset Reference
of basic
steps
*1
3
Page 381
*1
3
*1
3
Page 384
*1
3
*1
3
Page 387
*1
3
*1
3
Page 389
*1
3
2
51

Advertisement

Table of Contents
loading

Table of Contents