Arithmetic Shift Right: Asr(061) - Omron SYSMAC CV Series Operation Manual

Ladder diagrams
Hide thumbs Also See for SYSMAC CV Series:
Table of Contents

Advertisement

Shift Instructions

5-14-12 ARITHMETIC SHIFT RIGHT: ASR(061)

Ladder Symbol
Variations
j ASR(061)
Description
Flags
Example
0000
00
174
Operand Data Area
(061)
Wd: Word
ASR
Wd
When the execution condition is OFF, ASR(061) is not executed. When the ex-
ecution condition is ON, ASR(061) shifts a 0 into bit 15 of Wd, shifts the bits of Wd
one bit to the right, and shifts the status of bit 00 into CY.
Bit
15
0
1
1 0 0 1 0 1 1 0 0 1 1 0 0 1 0
Content of *DM word is not BCD when set for BCD.
ER (A50003):
CY (A50004):
Receives the status of bit 00.
EQ (A50006):
Content of Wd is 0 after a shift.
N (A50008):
OFF.
When CIO 000000 is ON in the following example, 0 is shifted into bit 15 of
D00010, the status of all bits within D00010 are shifted right one position, and
the status of bit 00 is shifted to CY.
(061)
ASR D00010
Wd: D00010
MSB
0
1 1 0 0 1 0 1 1 0 0 1 1 0 0 1 0
MSB
0 1 1 0 0 1 0 1 1 0 0 1 1 0 0 1
Section 5-14
CIO, G, A, DM, DR, IR
Bit
CY
00
Address Instruction
00000
LD
00001
ASR(061)
LSB
CY
LSB
CY
0
Operands
000000
D00010

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cv2000Cvm1Cv500Cv1000

Table of Contents