Chapter 5 Instruction Specifications
5-72
Item number
Application instructions-4
Name
Shift right
Ladder format
Condition code
Processing time (
µ
s)
Remark
R7F4
R7F3
R7F2
R7F1
R7F0
Average Maximum
SHR (d, n)
DER
ERR
SD
V
C
Upper case: W
z
z
z
z
↕
38
Lower case: DW
Instruction format
Number of steps
Condition
Steps
SHR (d, n)
3
46
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 shifted
{
{
{
{
{
n
Number of bits to be
shifted
{
{
{
{
{
The constant is set in
decimal.
Function
•
Shifts the contents of d to the right (toward the lower digits) by n bits.
•
Sets n bits of SD (R7F2) contents starting with the most significant bit.
•
Sets the content of the nth bit from the least significant bit in C (R7F0).
SD
SD
SD SD
SD
SD
B
C (R7F0)
SD (R7F2)
d
B
Least significant bit (LSB)
Most significant bit (MSB)
n bits
n bits
Before execution
After execution
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 shifting is not performed. The previous state is retained in C.
SH
R
(
d, n
)
Содержание HIDIC MICRO-EH
Страница 1: ...HITACHI PROGRAMMABLE CONTROLLER APPLICATION MANUAL NJI 350B X ...
Страница 12: ...MEMO ...
Страница 14: ...Chapter 1 Features 1 2 MEMO ...
Страница 50: ...Chapter 4 Product lineup and wiring 4 18 MEMO ...
Страница 196: ...Chapter 5 Instruction Specifications 5 146 ...
Страница 263: ...Chapter 11 Communication Specifications 11 10 MEMO ...