Omron CPM1 - PROGRAMING MANUAL 02-2001 Programming Manual page 426

Hide thumbs Also See for CPM1 - PROGRAMING MANUAL 02-2001:
Table of Contents

Advertisement

Shift Instructions
7-16-7 ONE DIGIT SHIFT LEFT – SLD(74)
Limitations
Description
Precautions
Flags
7-16-8 ONE DIGIT SHIFT RIGHT – SRD(75)
Limitations
Description
408
Ladder Symbols
SLD(74)
@SLD(74)
St
E
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, SLD(74) is not executed. When the execu-
tion condition is ON, SLD(74) shifts data between St and E (inclusive) by one
digit (four bits) to the left. 0 is written into the rightmost digit of the St, and the
content of the leftmost digit of E is lost.
If a power failure occurs during a shift operation across more than 50 words, the
shift operation might not be completed.
A 0 will be shifted into the least significant digit of St every cycle if the undifferen-
tiated form of SLD(74) is used. Use the differentiated form (@SLD(74)) or com-
bine SLD(74) with DIFU(13) or DIFD(14) to shift just one time.
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.)
Ladder Symbols
SRD(75)
@SRD(75)
E
St
St and E must be in the same data area, and E must be less than or equal to St.
DM 6144 to DM 6655 cannot be used for St or E.
When the execution condition is OFF, SRD(75) is not executed. When the
execution condition is ON, SRD(75) shifts data between St and E (inclusive) by
one digit (four bits) to the right. 0 is written into the leftmost digit of St and the
rightmost digit of E is lost.
Operand Data Areas
IR, SR, AR, DM, HR, LR
St
E
IR, SR, AR, DM, HR, LR
...
E
St
8
F C
5
D
7
9
Lost data
Operand Data Areas
IR, SR, AR, DM, HR, LR
E
St
IR, SR, AR, DM, HR, LR
St
E
...
3
4 5
2
F
8
C
1
Lost data
0
Section
7-16
St: Starting word
E: End word
1
0
E: End word
St: Starting word

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents