Chapter 5 Instruction Specifications
5-76
Item number
Application instructions-7
Name
Rotate left
Ladder format
Condition code
Processing time (
µ
s)
Remark
R7F4
R7F3
R7F2
R7F1
R7F0
Average Maximum
ROL (d, n)
DER
ERR
SD
V
C
Upper case: W
z
z
z
z
↕
46
Lower case: DW
Instruction format
Number of steps
Condition
Steps
ROL (d, n)
3
54
Bit
Word
Double word
Usable I/O
X
Y
R,
M
TD, SS,
CU, CT
WX WY
WR,
WM TC DX DY
DR,
DM
C
o
nstant
Other
d
I/O to be rotated
{
{
{
{
{
n
Number of bits to be
rotated
{
{
{
{
{
The constant is set in
decimal.
Function
•
Rotates the contents of d to the left (toward the upper digits) by n bits.
•
The content of C (R7F0) is set in the nth bit from the least significant bit.
•
The content of the nth bit from the least significant bit is set in C (R7F0).
Bn
C (R7F0)
d
Bn
B1 B2 B3
C B1 B2 B3
Bn-1
Least significant bit (LSB)
Before execution
After execution
n bits
Most significant bit (MSB)
n bits
If d is a word:
Designates the shift amount, depending on the contents (0 to 15) of the lower 4 bits (b3 to b0) of n
(WX, WY, WR, WM, TC). (Upper bits are ignored and considered as “0.”)
The n (constant) can be set to 0 to 15 (decimal).
If d is a double word:
Designates the shift amount, depending on the contents (0 to 31) of the lower 5 bits (b4 to b0) of n
(WX, WY, WR, WM, TC). (Upper bits are ignored and considered as “0.”)
The n (constant) can be set to 0 to 31 (decimal).
Notes
•
If n is equal to “0,” the rotation is not performed. The previous state is retained in C.
ROL (d,
n)
Summary of Contents for HIDIC MICRO-EH
Page 1: ...HITACHI PROGRAMMABLE CONTROLLER APPLICATION MANUAL NJI 350B X ...
Page 12: ...MEMO ...
Page 14: ...Chapter 1 Features 1 2 MEMO ...
Page 50: ...Chapter 4 Product lineup and wiring 4 18 MEMO ...
Page 196: ...Chapter 5 Instruction Specifications 5 146 ...
Page 263: ...Chapter 11 Communication Specifications 11 10 MEMO ...