Omron SYSMAC CJ - REFERENCE MANUAL 08-2008 Reference Manual page 1312

Programmable controllers
Hide thumbs Also See for SYSMAC CJ - REFERENCE MANUAL 08-2008:
Table of Contents

Advertisement

Model Conversion Instructions (Unit Ver. 3.0 or Later)
Precautions
Examples
Bs
Of
D
COLLC
D00100
Bs
#9010
Of
D
D00300
1272
Once DISTC(566) has been executed with Stack Push Operation to allocate a
stack area, always specify that same length stack area in the COLLC(567)
instructions. Operation will be unreliable if a different stack area size is speci-
fied in the COLLC(567) instructions.
Be sure that the offset or stack size specified by Of does not exceed the end
of the data area when added to Bs.
The offset data in Of must be BCD.
Data Collection Operation
The leftmost byte of D00200 is 0, so COLLC(567) performs the Data Collec-
tion Operation.
When CIO 000000 is ON in the following example, the contents of D00110
(D00100 + 10) will be copied to D00300 if the content of D00200 is 10 (0010
BCD). The contents of other words can be copied to D00300 by changing the
offset in D00200.
COLLC
Bs:
D00100
D00101
D00110
FIFO Stack Operation
The leftmost byte of Of is 9, so COLLC(567) performs the FIFO Stack Opera-
tion.
When CIO 000000 is ON in the following example, COLLC(567) allocates a
10 word stack area (since the rightmost 3 digits of Of are #010) between
D00100 and D00109. At the same time, the contents of D00101 (Bs +1) are
copied to D00300. Finally, the stack pointer is decremented by 1.
D00100
D00101
D00102
D00109
LIFO Stack Operation
The leftmost byte of Of is 8, so COLLC(567) performs the LIFO Stack Opera-
tion.
When CIO 000000 is ON in the following example, COLLC(567) allocates a
10 word stack area (since the rightmost 3 digits of Of are #010) between
D00100 and D00109. At the same time, the contents of the source word
(D00100 + stack pointer) are copied to D00300. Finally, the stack pointer is
decremented by 1.
Offset +10 words
Of 9
010
Allocated stack
FIFO
Stack area
Read
Stack
0 0 0 2
pointer
1 2 3 4
Stack
5 6 7 8
data area
D00300
Section 3-35
0
0
1
0
D00200
4-digit BCD
Copied by COLLC(567).
st
nd
After 1
execution
After 2
execution
Stack area
Stack area
0 0 0 0
0 0 0 1
5 6 7 8
5 6 7 8
1 2 3 4

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the SYSMAC CJ - REFERENCE MANUAL 08-2008 and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

This manual is also suitable for:

Sysmac cs seriesSysmac one nsj seriesSysmac cj series

Table of Contents

Save PDF