Data Shift Instructions
Lost
3-9-23 SHIFT N-BITS RIGHT: NASR(581)
Purpose
Ladder Symbol
Variations
Applicable Program Areas
350
is specified in bits 0 to 7 of word CIO 0300 (control data). The contents of bit 0
of CIO 0100 is copied into bits from which data was shifted and the contents
of the rightmost bit which was shifted out of range is shifted into the Carry
Flag (CY). All other data is lost.
15
12
11
C
8
0
Data shifted into register
8 Hex: Contents of right-
most bit shifted in
0100
0100
Shifts the specified 16 bits of word data to the right by the specified number of
bits.
NASR(581)
D
C
Variations
Executed Each Cycle for ON Condition
Executed Once for Upward Differentiation
Executed Once for Downward Differentiation Not supported
Immediate Refreshing Specification
Block program areas
OK
OK
8
7
4
3
0
0
A
No. of bits to shift: 10 bits (0A Hex)
Always 0.
No. of bits to shift: 10 bits
(Contents of the rightmost
bit is shifted in)
D: Shift word
C: Control word
Step program areas
Subroutines
OK
Section 3-9
Rightmost bit a
NASR(581)
@NASR(581)
Not supported
Interrupt tasks
OK