Omron CP - PROGRAMMING MANUAL 05-2007 Programming Manual page 317

Cp1h/cp1l cpu unit
Table of Contents

Advertisement

Data Shift Instructions
Flags
Precautions
Examples
3-8-6
DOUBLE SHIFT LEFT: ASLL(570)
Purpose
Ladder Symbol
Variations
Applicable Program Areas
Operand Specifications
284
Name
Label
Error Flag
ER
Equals Flag
=
Carry Flag
CY
Negative Flag
N
When ASL(025) is executed, the Error Flag will turn OFF.
If as a result of the shift the contents of Wd is zero, the Equals Flag will turn
ON.
If as a result of the shift the contents of the leftmost bit of Wd is 1, the Nega-
tive Flag will turn ON.
When CIO 0.00 is ON, D100 will be shifted one bit to the left. "0" will be placed
in bit 00 of D100 and the contents of bit 15 of D100 will be shifted to the Carry
Flag (CY).
0.00
D100
Wd
Wd: D100
Shifts the contents of Wd and Wd +1 one bit to the left.
ASLL(570)
Wd
Variations
Executed Each Cycle for ON Condition
Executed Once for Upward Differentiation
Executed Once for Downward Differentiation Not supported
Immediate Refreshing Specification
Block program areas
OK
OK
Area
CIO Area
Work Area
Holding Bit Area
Operation
OFF
ON when the shift result is 0.
OFF in all other cases.
ON when 1 is shifted into the Carry Flag (CY).
OFF in all other cases.
ON when the leftmost bit is 1 as a result of the shift.
OFF in all other cases.
Wd: Word
Step program areas
Subroutines
OK
CIO 0 to CIO 6142
W0 to W510
H0 to H510
Section 3-8
ASLL(570)
@ASLL(570)
Not supported
Interrupt tasks
OK
Wd

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents