![background image](http://html1.mh-extra.com/html/omron/srm1-programing-02-2001/srm1-programing-02-2001_programming-manual_742414423.webp)
7-16
Section
Shift Instructions
405
The following example uses the 1-second clock pulse bit (25502) so that the
execution condition produced by 00000 is shifted into HR 00 every second. Out-
put 20000 is turned ON whenever a “1” is shifted into HR 0007.
I
P
SFT(10)
HR 00
HR 00
R
00000
25502
00001
Address
Instruction
Operands
00000
LD
00000
00001
LD
25502
00002
LD
00001
00003
SFT(10)
HR
00
HR
00
00004
LD
HR
0007
00005
OUT
20000
20000
0007
7-16-2
WORD SHIFT – WSFT(16)
Ladder Symbols
Operand Data Areas
WSFT(16)
St
E
@WSFT(16)
St
E
St
: Starting word
IR, SR, AR, DM, HR, LR
E
: End word
IR, SR, AR, DM, HR, LR
St and E must be in the same data area, and E must be greater than or equal to
St.
DM 6144 to DM 6655 cannot be used for St or E.
When the execution condition is OFF, WSFT(16) is not executed. When the
execution condition is ON, WSFT(16) shifts data between St and E in word units.
Zeros are written into St and the content of E is lost.
F
0
C
2
3
4
5
2
1
0
2
9
E
St + 1
St
3
4
5
2
1
0
2
9
0
0
0
0
E
St + 1
St
Lost
0000
Flags
ER:
The St and E words are in different areas, or St is greater than E.
Indirectly addressed DM word is non-existent. (Content of
*
DM word is
not BCD, or the DM area boundary has been exceeded.)
7-16-3
ARITHMETIC SHIFT LEFT – ASL(25)
Wd
: Shift word
IR, SR, AR, DM, HR, LR
Ladder Symbols
Operand Data Areas
ASL(25)
Wd
@ASL(25)
Wd
Limitations
DM 6144 to DM 6655 cannot be used for Wd.
Example
Limitations
Description