EasyManuals Logo
Home>Omron>Controller>CJ - INSTRUCTIONS

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 #1163 background imageLoading...
Page #1163 background image
1125
3. Instructions
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Model Conversion Instructions
3
COLLC
Example Programming
z Data Collection Operation
The leftmost byte of D200 is 0, so COLLC(567) performs the Data Collection Operation.
When CIO 0.00 is ON in the following example, the contents of D110 (D100 + 10) will be copied to
D300 if the content of D200 is 10 (0010 BCD). The contents of other words can be copied to D300 by
changing the offset in D200.
z FIFO Stack Operation
The leftmost byte of Of is 9, so COLLC(567) performs the FIFO Stack Operation.
When CIO 0.00 is ON in the following example, COLLC(567) allocates a 10 word stack area (since the
rightmost 3 digits of Of are #010) between D100 and D109. At the same time, the contents of D101 (Bs
+1) are copied to D300. Finally, the stack pointer is decremented by 1.
z LIFO Stack Operation
The leftmost byte of Of is 8, so COLLC(567) performs the LIFO Stack Operation.
When CIO 0.00 is ON in the following example, COLLC(567) allocates a 10 word stack area (since the
rightmost 3 digits of Of are #010) between D100 and D109. At the same time, the contents of the
source word (D100 + stack pointer) are copied to D300. Finally, the stack pointer is decremented by 1.
D110
D100
0
D
01
0
D200
D101
4-digit BCD
Offset +10 words
Copied by COLLC(567).
Bs:
Bs
Of
COLLC
0.00
D100
D200
D300
D300
D100
D101
D109
Stack area
Stack
pointer
Stack
data area
Bs
COLLC
Of
D
D100
D300
#9010
Stack area
Stack area
Allocated stack
After 1
st
execution
After 2
nd
execution
Of
9
010
0 0 0 1
5 6 7 8
0 0 0 0
FIFO
Read
5 6 7 8
1 2 3 4
0 0 0 2
D102
D300
1 2 3 4
5 6 7 8
0.00
D100
D101
D109
Stack area
Stack
pointer
Stack
data area
Bs
COLLC
Of
D
D100
D300
#8010
Stack area
Stack area
Allocated stack
After 1
st
execution
After 2
nd
execution
Of
8
010
0 0 0 1
1 2 3 4
0 0 0 0
LIFO
Read
5 6 7 8
1 2 3 4
0 0 0 2
D102
D300
5 6 7 8
1 2 3 4
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