Data Shift Instructions
Examples
3-8-7
ARITHMETIC SHIFT RIGHT: ASR(026)
Purpose
Ladder Symbol
Variations
Applicable Program Areas
Operand Specifications
286
When CIO 0.01 is ON, word CIO 1000 and CIO 1001 will shift one bit to the
left. "0" is placed into CIO 1000.00 and the contents of CIO 1001.15 will be
shifted to the Carry Flag (CY).
0.01
1000
Wd
Wd+1: CIO 1001
Shifts the contents of Wd one bit to the right.
ASR(026)
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
Auxiliary Bit Area
Timer Area
Counter Area
DM Area
Indirect DM addresses
in binary
Indirect DM addresses
in BCD
Constants
Data Registers
Index Registers
Indirect addressing
using Index Registers
Wd: CIO 1000
Wd: Word
Step program areas
Subroutines
OK
CIO 0 to CIO 6143
W0 to W511
H0 to H511
A448 to A959
T0000 to T4095
C0000 to C4095
D0 to D32767
@ D0 to @ D32767
*D0 to *D32767
---
DR0 to DR15
---
,IR0 to ,IR15
–2048 to +2047 ,IR0 to –2048 to +2047 ,IR15
DR0 to DR15, IR0 to IR15
,IR0+(++) to ,IR15+(++)
,–(– –)IR0 to, –(– –)IR15
Section 3-8
ASR(026)
@ASR(026)
Not supported
Interrupt tasks
OK
Wd
Need help?
Do you have a question about the CP - PROGRAMMING MANUAL 05-2007 and is the answer not in the manual?
Questions and answers