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 #262 background imageLoading...
Page #262 background image
241
Data Movement Instructions Section 5-17
Flags ER: Indirectly addressed DM word is non-existent. (Content of *DM word
is not BCD, or the DM area boundary has been exceeded.)
5-17-6 SINGLE WORD DISTRIBUTE – DIST(80)
Limitations C must be BCD.
DM 6144 to DM 6655 cannot be used for DBs or C.
Description DIST(80) can be used for single-word distribution or for a stack operation
depending on the content of the control word, C.
Single-word Distribution When bits 12 to 15 of C=0 to 8, DIST(80) can be used for a single word dis-
tribute operation. The entire contents of C specifies an offset, Of.
When the execution condition is OFF, DIST(80) is not executed. When the
execution condition is ON, DIST(80) copies the content of S to DBs+Of, i.e.,
Of is added to DBs to determine the destination word.
Note DBs and DBs+Of must be in the same data area and cannot be between
DM 6144 and DM 6655.
Example
The following example shows how to use DIST(80) to copy #00FF to HR 10 +
Of. The content of LR 10 is #3005, so #00FF is copied to HR 15 (HR 10 + 5)
when IR 00000 is ON.
Stack Operation When bits 12 to 15 of C=9, DIST(80) can be used for a stack operation. The
other 3 digits of C specify the number of words in the stack (000 to 999). The
content of DBs is the stack pointer.
When the execution condition is OFF, DIST(80) is not executed. When the
execution condition is ON, DIST(80) copies the content of S to DBs+1+the
S: Source data
IR, SR, AR, DM, HR, TC, LR, #
DBs: Destination base word
IR, SR, AR, DM, HR, TC, LR
Ladder Symbols
Operand Data Areas
C: Control word (BCD)
IR, SR, AR, DM, HR, TC, LR, #
DIST(80)
S
DBs
C
@DIST(80)
S
DBs
C
@DIST(80)
#00FF
HR 10
LR 10
00000
Address Instruction Operands
00000 LD 00000
00001 @DIST(80)
# 00FF
HR 10
LR 10
F
#00FF
0 0 F 0
HR 10
0 0 0
F
HR 15
0 0 F
5
LR 10
3 0 0

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