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

Cp1h/cp1l cpu unit
Table of Contents

Advertisement

Table Data Processing Instructions
Applicable Program Areas
Operands
Operand Specifications
Block program areas
OK
OK
C and C+1: Control words
C specifies the number of units (bytes or words) to be summed. (Bit 13 of C+1
determines whether bytes or words are being summed.)
Bits 12 to 15 of C+1 indicate what type of data is being summed, as shown in
the following diagram.
15
C
15
14
13 12 11
C+1
0000 0000 0000
Starting byte (Effective if bit 13 is 1.)
0: Leftmost byte
1: Rightmost byte
Units
0: Words
1: Bytes
Data type
0: Binary
1: BCD
Data type (Effective if bit 14 is 0.)
0: Unsigned binary data
1: Signed binary data
R1: First word in range
R1 specifies the first word in the range. The length of the range depends on
the number of units as well as the starting byte, if bytes are being added.
15
Calculation range
R1
to
---
R1+(C units–1)
D: First destination word
The result of the calculation is output to D+1 and D. The leftmost four digits
are stored in D+1 and the rightmost four digits are stored in D.
Area
CIO Area
Work Area
Holding Bit Area
Auxiliary Bit Area
Timer Area
Counter Area
Step program areas
Subroutines
OK
0
Number of words/bytes in range
0
0
0
C
CIO 0 to
CIO 0 to
CIO 6142
CIO 6143
W0 to W510
W0 to W511
H0 to H510
H0 to H511
A0 to A958
A0 to A959
T0000 to T4094
T0000 to T4095
C0000 to C4094
C0000 to C4095
Section 3-16
Interrupt tasks
OK
R1
D
CIO 0 to
CIO 6142
W0 to W510
H0 to H510
A448 to A958
T0000 to T4094
C0000 to C4094
595

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents