EasyManua.ls Logo

Omron CPM1

Omron CPM1
541 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
230
Shift Instructions Section 5-16
Example The following example uses the 1-second clock pulse bit (25502) so that the
execution condition produced by 00000 is shifted into IR 010 every second.
Output 10000 is turned ON whenever a “1” is shifted into 01007.
5-16-2 WORD SHIFT – WSFT(16)
Limitations 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.
Description 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.
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.)
5-16-3 ARITHMETIC SHIFT LEFT – ASL(25)
Limitations DM 6144 to DM 6655 cannot be used for Wd.
I
P
SFT(10)
010
010
R
00000
25502
00001
Address Instruction Operands
00000 LD 00000
00001 LD 25502
00002 LD 00001
00003 SFT(10) 010
010
00004 LD 01007
00005 OUT 10000
10000
01007
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
F0C23452102 9
E St + 1 St
3452 10 29000 0
E St + 1 St
Lost
0000
Wd: Shift word
IR, SR, AR, DM, HR, LR
Ladder Symbols Operand Data Areas
ASL(25)
Wd
@ASL(25)
Wd

Table of Contents

Other manuals for Omron CPM1

Related product manuals