EasyManuals Logo

Omron CJ - INSTRUCTIONS User Manual

Omron CJ - INSTRUCTIONS
1308 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 #1160 background imageLoading...
Page #1160 background image
3. Instructions
1122
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Example Programming
z Data Distribution Operation
The leftmost byte of D300 is 0, so DISTC(566) performs the Data Distribution Operation.
When CIO 0.00 is ON in the following example, the contents of D100 will be copied to D210 (D200 +
10) if the content of D300 is 0010 BCD. The content of D100 can be copied to other words by changing
the offset in D300.
z Stack Push Operation
The leftmost byte of Of is 9, so DISTC(566) performs the Stack Push Operation.
When CIO 0.00 is ON in the following example, DISTC(566) allocates a 10 word stack area (since the
rightmost 3 digits of Of are #010) between D200 and D209. At the same time, the contents of D100 will
be copied to the word calculated by adding D200 + stack pointer +1. Finally, the stack pointer is
incremented by +1.
Copied by DISTC(566).
Offset +10 words
4-digit BCD
Bs
Of
S: D100
0.00
D100
D200
D300
Bs: D200
D201
Of: D300
D210
S
0 0 1 0
DISTC
S: D100
Bs: D200
D201
D209
Stack area
Stack
pointer
Stack
data area
S
DISTC
Bs
Of
D100
D200
#9010
0 0 0 F
Stack area
Stack area
Allocated stack
Stack
Push
After 1
st
execution
After 2
nd
execution
Of
9
010
# 0 0 0 1
0 0 0 F
0 0 0 F
0 0 0 F
# 0 0 0 2
0.00

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Omron CJ - INSTRUCTIONS and is the answer not in the manual?

Omron CJ - INSTRUCTIONS Specifications

General IconGeneral
BrandOmron
ModelCJ - INSTRUCTIONS
CategoryController
LanguageEnglish

Related product manuals