High−level Instructions
3 − 235
Description
Shifts n bits of the 32-bit data area specified by D to the right (to the lower bit position) when the trigger turns
on.
15
00000000
0
[n bits]
CY
015
[D+1] [D]
The [n bits] are filled
with 0s.
The data in the nth bit is
transferred to R9009 (carry flag).
When n bits are shifted to the right,
− The higher n bits of the 16-bit data area specified by D are filled with 0s.
− The data in the nth bit is transferred to special internal relay R9009 (carry flag).
Only the lower eight bits of the 16-bit data [n] are effective. Select the amount of the shift within the range 1 to
255 bits.
0000 0000
15 0
K0 to K255(H00 to HFF)
[n]
Upper 8 bits
are invalid
When [n] is specified using K0, the contents of D and D+1 and the special internal relay R9009 (carry flag) do
not change.
When [n] is specified using K32 or higher, the contents of D and D+1 change to 0.
Flag conditions
・Error flag (R9007): Turns on and stays on when the area specified using the index modifier
exceeds the limit.
・Error flag (R9008): Turns on for an instant when the area specified using the index modifier
exceeds the limit.
・Carry flag (R9009): Content in the nth bit from LBS (least significant bit) turns on for an instant
when the bit transferred to R9009 is recognized as 1.