307
Data Shift Instructions Section 3-8
3-8-20 SHIFT N-BIT DATA RIGHT: NSFR(579)
Purpose Shifts the specified number of bits to the right.
Ladder Symbol
Variations
Applicable Program Areas
Operands C: 0000 to 000F hex (0 to 15)
N: 0000 to FFFF hex (0 to 65535)
Note All words in the shift register must be in the same area.
Operand Specifications
NSFR(579)
D
C
N
D: Beginning word for shift
C: Beginning bit
N: Shift data length
Variations Executed Each Cycle for ON Condition NSFR(579)
Executed Once for Upward Differentiation @NSFR(579)
Executed Once for Downward Differentiation Not supported
Immediate Refreshing Specification Not supported
Block program areas Step program areas Subroutines Interrupt tasks
OK OK OK OK
Area DCN
CIO Area CIO 0 to CIO 6143
Work Area W0 to W511
Holding Bit Area H0 to H511
Auxiliary Bit Area A448 to A959 A0 to A959
Timer Area T0000 to T4095
Counter Area C0000 to C4095
DM Area D0 to D32767
Indirect DM addresses
in binary
@ D0 to @ D32767
Indirect DM addresses
in BCD
*D0 to *D32767
Constants --- #0000 to #000F
(binary) or &0 to
&15
#0000 to #FFFF
(binary) or &0 to
&65535
Data Registers --- DR0 to DR15
Index Registers ---
Indirect addressing
using Index Registers
,IR0 to ,IR15
–2048 to +2047 ,IR0 to –2048 to +2047 ,IR15
DR0 to DR15, IR0 to IR15
,IR0+(++) to ,IR15+(++)
,–(– –)IR0 to, –(– –)IR15