One Digit Shift Left: Sld(068) - Omron SYSMAC CVM1 Series Operation Manual

Duplex system
Hide thumbs Also See for SYSMAC CVM1 Series:
Table of Contents

Advertisement

Shift Instructions

5-14-23 ONE DIGIT SHIFT LEFT: SLD(068)

Ladder Symbol
(068)
SLD
Variations
j SLD(068)
Description
Precautions
Flags
Example
0000
00
St
E
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.
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 101 for general precautions on operand data areas.
Content of *DM word is not BCD when set for BCD.
ER (A50003):
St and E are in different areas, or St is greater than E.
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.
(068)
SLD
D00010 D00012
Operand Data Areas
St: Starting word
CIO, G, A, DM
E: End word
CIO, G, A, DM
...
E
8
F C
5
D
Lost data
E: D00012
St+1: D00011
3
2
1
0
3
2
1
16
16
16
16
16
16
16
1
2
3
4
5
6
7
Lost data
E: D00012
St+1: D00011
3
2
1
0
3
2
1
16
16
16
16
16
16
16
2
3
4
5
6
7
8
Section 5-14
St
7
9
1
0
Address Instruction
00000
LD
00001
SLD(068)
St: D00010
0
3
2
1
0
16
16
16
16
16
8
9
A
B
C
"0"
St: D00010
0
3
2
1
0
16
16
16
16
16
9
A
B C
0
Operands
00000
D00010
D00012
173

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac cv seriesSysmac cvm1d series

Table of Contents