EasyManua.ls Logo

Omron SYSMAC CV Series - One Digit Shift Left: Sld(068)

Omron SYSMAC CV Series
636 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...
185
5-14-23ONE DIGIT SHIFT LEFT: SLD(068)
(068)
SLD St E
E: End word CIO, G, A, DM
St: Starting word CIO, G, A, DM
Operand Data AreasLadder Symbol
Variations
j SLD(068)
When the execution condition is OFF, SLD(068) is not executed. When the ex-
ecution condition is ON, SLD(068) 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.
5
E
8 1
St
F C 97D
Lost data 0
...
St must be less than or equal to E. St and E must be in the same data area.
The shift operation might not be completed if a power failure occurs during ex-
ecution of the instruction.
Note Refer to page 115 for general precautions on operand data areas.
Flags ER (A50003): Content of *DM word is not BCD when set for BCD.
St and E are in different areas, or St is greater than E.
Example When CIO 000000 is ON in the following example, 0 is shifted into digit 0 of
D00010, the contents of all digits in D00010 are shifted one digit to the left, the
content of digit 3 of D00010 is shifted to digit 0 of D00011, the contents of all dig-
its in D00011 are shifted one digit to the left, the content of digit 3 of D00011 is
shifted to digit 0 of D00012, the contents of all digits in D00012 are shifted one
digit to the left, and the content of digit 3 of D00012 is lost.
Address Instruction Operands
00000 LD 00000
00001 SLD(068)
D00010
D00012
1 2 3 4
16
3
16
2
16
1
16
0
E: D00012
St: D00010St+1: D00011
5 6 7 8
16
3
16
2
16
1
16
0
9 A B C
16
3
16
2
16
1
16
0
2 3 4 5 6 7 8 9 A B C 0
16
3
16
2
16
1
16
0
16
3
16
2
16
1
16
0
16
3
16
2
16
1
16
0
E: D00012
St: D00010St+1: D00011
“0”
Lost data
Description
Precautions
Shift Instructions Section 5-14
0000
00
(068)
SLD D00010 D00012

Table of Contents

Related product manuals