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

Cp1h/cp1l cpu unit
Table of Contents

Advertisement

Data Shift Instructions
Applicable Program Areas
Note
Operand Specifications
Description
Flags
Precautions
Note
304
Block program areas
OK
OK
St and E must be in the same data area.
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
SRD(075) shifts data between St and E by one digit (4 bits) to the right. "0" is
placed in the leftmost digit (bits 15 to 12 of E), and the content of the rightmost
digit (bits 3 to 0 of St) is lost.
E
Name
Label
Error Flag
ER
When St is greater than E, an error will be generated and the Error Flag will
turn ON.
When SRD(075) is executed, the Equals Flag and Negative Flag will turn
OFF.
When large amounts of data are shifted, the instruction execution time is quite
long. Always take care that the power is not cut while SRD(075) is being exe-
cuted, causing the shift operation to stop halfway through.
Step program areas
Subroutines
OK
St
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
---
---
---
,IR0 to ,IR15
–2048 to +2047 ,IR0 to –2048 to +2047 ,IR15
DR0 to DR15, IR0 to IR15
,IR0+(++) to ,IR15+(++)
,–(– –)IR0 to, –(– –)IR15
S
t
Lost
Operation
ON when St is greater than E.
OFF in all other cases.
Section 3-8
Interrupt tasks
OK
E

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents