Omron CP - PROGRAMMING MANUAL 05-2007 Programming Manual page 1087

Cp1h/cp1l cpu unit
Table of Contents

Advertisement

Model Conversion Instructions
Examples
0.00
DISTC
D100
S
D200
Bs
Of
D300
0.00
DISTC
S
Bs
#9010
Of
3-33-3 DATA COLLECT: COLLC(567)
Purpose
Ladder Symbol
Variations
1054
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.
S: D100
Bs: D200
D201
D210
Stack Push Operation
The leftmost byte of Of is 9, so DISTC(566) performs the Stack Push Opera-
tion.
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.
0 0 0 F
S: D100
Allocated stack
Bs: D200
D100
D201
D200
D209
Transfers the source word (calculated by adding an offset value to the base
address) to the destination word.
COLLC(567)
Bs
Of
D
Variations
Immediate Refreshing Specification
Copied by DISTC(566).
Offset +10 words
Of 9
010
Stack
Stack area
Push
Stack
pointer
Stack
data area
Bs: Source base address
Of: Offset
D: Destination word
Executed Each Cycle for ON Condition
Executed Once for Upward Differentiation
Executed Once for Downward Differentiation Not supported
Section 3-33
Of:
0 0 1 0
D300
4-digit BCD
st
nd
After 1
execution
After 2
execution
Stack area
Stack area
# 0 0 0 2
# 0 0 0 1
0 0 0 F
0 0 0 F
0 0 0 F
COLLC(567)
@COLLC(567)
Not supported

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents