Double Shift Left: Asll(064) - Omron CVM1D Operation Manual

Hide thumbs Also See for CVM1D:
Table of Contents

Advertisement

Shift Instructions

5-14-15 DOUBLE SHIFT LEFT: ASLL(064)

Ladder Symbol
Variations
j ASLL(064)
Description
Precautions
Flags
Example
0000
00
Operand Data Area
(064)
Wd: Word
ASLL Wd
When the execution condition is OFF, ASLL(064) is not executed. When the ex-
ecution condition is ON, ASLL(064) shifts a 0 into bit 00 of Wd, all bits previously
in Wd and Wd+1 are shifted to the left, and bit 15 of Wd+1 is shifted into CY.
Wd+1
CY
Refer to page 101 for general precautions on operand data areas.
Content of *DM word is not BCD when set for BCD.
ER (A50003):
CY (A50004):
Receives the status of bit 15 from Wd+1.
EQ (A50006):
Content of Wd and Wd+1 are 0 after a shift.
N (A50008):
Same status as bit 15 of Wd+1 after shift.
When CIO 000000 is ON in the following example, 0 is shifted into bit 00 of
CIO 0200, the status of all bits within CIO 0200 are shifted left one position, the
status of bit 15 is shifted to bit 00 of CIO 0201, the status of all bits within
CIO 0201 are shifted left one position, and the status of bit 15 is shifted to CY.
(064)
ASLL
0200
Wd+1: CIO 0201
MSB
CY
1 1 0
Wd+1: CIO 0201
MSB
CY
1
1 0
CIO, G, A, DM
Address Instruction
00000
00001
Wd: CIO 0200
LSB
MSB
to
0 1
0 0 0
Wd: CIO 0200
LSB
MSB
0 0
to
to
1 0
Section 5-14
Wd
0
Operands
LD
000000
ASLL(064)
0200
LSB
0
to
1 1
LSB
1
1 0
165

Advertisement

Table of Contents
loading

Table of Contents