Data Collect - Coll(81) - Omron CPM1 Programming Manual

Hide thumbs Also See for CPM1:
Table of Contents

Advertisement

Data Movement Instructions
00000
IR 001
IR 216
DM 0000
DM 0001
DM 0002
DM 0003
DM 0004
DM 0005
Flags
5-17-7 DATA COLLECT – COLL(81)
Limitations
Description
242
content of DBs. In other words, 1 and the content of DBs are added to DBs to
determine the destination word. The content of DBs is then incremented by 1.
Note
1. DIST(80) will be executed every cycle unless the differentiated form
(@DIST(80)) is used or DIST(80) is used with DIFU(13) or DIFD(14).
2. Be sure to initialize the stack pointer before using DIST(80) as a stack op-
eration.
Example
The following example shows how to use DIST(80) to create a stack between
DM 0001 and DM 0005. DM 0000 acts as the stack pointer.
@DIST(80)
001
DM 0000
216
FFFF
9005
0000
First execution
0000
0000
0000
Stack pointer
incremented
0000
0000
ER:
The offset or stack length in the control word is not BCD.
Indirectly addressed DM word is non-existent. (Content of *DM word
is not BCD, or the DM area boundary has been exceeded.)
During stack operation, the value of the stack pointer+1 exceeds the
length of the stack.
EQ:
ON when the content of S is zero; otherwise OFF.
Ladder Symbols
COLL(81)
SBs
C
D
C must be BCD.
DM 6144 to DM 6655 cannot be used for D.
COLL(81) can be used for data collection, an FIFO stack operation, or an
LIFO stack operation depending on the content of the control word, C.
Address Instruction
00000
00001
DM 0000
0001
Second
DM 0001
FFFF
execution
DM 0002
0000
DM 0003
0000
Stack pointer
DM 0004
0000
incremented
DM 0005
0000
@COLL(81)
SBs
C
D
Section 5-17
Operands
LD
@DIST(80)
DM
DM 0000
0002
DM 0001
FFFF
DM 0002
FFFF
DM 0003
0000
DM 0004
0000
DM 0005
0000
Operand Data Areas
SBs: Source base word
IR, SR, AR, DM, HR, TC, LR
C: Control word (BCD)
IR, SR, AR, DM, HR, TC, LR, #
D: Destination word
IR, SR, AR, DM, HR, TC, LR
00000
001
0000
216

Advertisement

Table of Contents
loading

Table of Contents