![Omron CJ1G-CPUxx Instructions Manual Download Page 343](http://html1.mh-extra.com/html/omron/cj1g-cpuxx/cj1g-cpuxx_instructions-manual_742491343.webp)
322
Data Shift Instructions
Section 3-9
Description
ASR(026) shifts the contents of Wd one bit to the right (from leftmost bit to
rightmost bit). “0” will be placed in the leftmost bit and the contents of the
rightmost bit will be shifted into the Carry Flag (CY).
Flags
Precautions
When ASR(026) is executed, the Error Flag and the Negative Flag will turn
OFF.
If as a result of the shift the contents of Wd is zero, the Equals Flag will turn
ON.
Examples
When CIO 000000 is ON, word CIO 0100 will shift one bit to the right. “0” will
be placed in CIO 010015 and the contents of CIO 010000 will be shifted to the
Carry Flag (CY).
3-9-8
DOUBLE SHIFT RIGHT: ASRL(571)
Purpose
Shifts the contents of Wd and Wd +1 one bit to the right.
Ladder Symbol
Variations
Applicable Program Areas
Name
Label
Operation
Error Flag
ER
OFF
Equals Flag
=
ON when the shift result is 0.
OFF in all other cases.
Carry Flag
CY
ON when 1 is shifted into the Carry Flag (CY).
OFF in all other cases.
Negative Flag
N
OFF
Wd
Wd: Word
ASRL(571)
Wd
Variations
Executed Each Cycle for ON Condition
ASRL(571)
Executed Once for Upward Differentiation
@ASRL(571)
Executed Once for Downward Differentiation Not supported
Immediate Refreshing Specification
Not supported
Block program areas
Step program areas
Subroutines
Interrupt tasks
OK
OK
OK
OK
Summary of Contents for CJ1G-CPUxx
Page 3: ...iv N o t i c e ...
Page 5: ...vi ...
Page 21: ...xxii Conformance to EC Directives 6 ...
Page 35: ......
Page 1131: ...1110 CJ series Instruction Execution Times and Number of Steps Section 4 2 ...