EasyManuals Logo
Home>Omron>Controller>CPM1

Omron CPM1 Programming Manual

Omron CPM1
541 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #263 background imageLoading...
Page #263 background image
242
Data Movement Instructions Section 5-17
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.
Flags 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.
5-17-7 DATA COLLECT – COLL(81)
Limitations C must be BCD.
DM 6144 to DM 6655 cannot be used for D.
Description 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.
@DIST(80)
001
DM 0000
216
00000
Address Instruction Operands
00000 LD 00000
00001 @DIST(80)
001
DM 0000
216
DM 0000 0000
DM 0001 0000
DM 0002 0000
DM 0003 0000
DM 0004 0000
DM 0005 0000
Stack pointer
incremented
First execution
DM 0000 0001
DM 0001 FFFF
DM 0002 0000
DM 0003 0000
DM 0004 0000
DM 0005 0000
Stack pointer
incremented
Second
execution
IR 001 FFFF
IR 216 9005
DM 0000 0002
DM 0001 FFFF
DM 0002 FFFF
DM 0003 0000
DM 0004 0000
DM 0005 0000
SBs: Source base word
IR, SR, AR, DM, HR, TC, LR
C: Control word (BCD)
IR, SR, AR, DM, HR, TC, LR, #
Ladder Symbols
Operand Data Areas
D: Destination word
IR, SR, AR, DM, HR, TC, LR
COLL(81)
SBs
C
D
@COLL(81)
SBs
C
D

Table of Contents

Other manuals for Omron CPM1

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Omron CPM1 and is the answer not in the manual?

Omron CPM1 Specifications

General IconGeneral
BrandOmron
ModelCPM1
CategoryController
LanguageEnglish

Related product manuals