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

Cp1h/cp1l cpu unit
Table of Contents

Advertisement

Model Conversion Instructions
Example
3-33-2 SINGLE WORD DISTRIBUTE: DISTC(566)
Purpose
Ladder Symbol
Variations
Applicable Program Areas
Operands
When CIO 0.00 is ON in the following example, the 10 words D100 through
D109 are copied to D200 through D209.
0.00
XFERC
#0010
D100
D200
Transfers the source word to a destination word calculated by adding an offset
value to the base address.
DISTC(566)
S: Source word
S
Bs: Destination base address
Bs
Of
Of: Offset
Variations
Executed Each Cycle for ON Condition
Executed Once for Upward Differentiation
Executed Once for Downward Differentiation Not supported
Immediate Refreshing Specification
Block program areas
OK
OK
Bs: Destination Base Address
Specifies the destination base address. The offset is added to this address to
calculate the destination word.
Of: Offset
• Data Distribution Operation (0000 to 7999 BCD)
This value is added to the base address to calculate the destination word.
The offset can be any value from 0000 to 7999 in BCD, but Bs and Bs+Of
must be in the same data area.
15
Bs
to
to
Bs+Of
• Stack Push Operation (9000 to 9999 BCD)
When the leftmost digit of Of is 9, the rightmost 3 digits of Of specify the
number of words in the stack. The offset can be any value from 9000 to
9999 BCD.
D100
D101
D102
D109
Step program areas
Subroutines
OK
0
Section 3-33
D200
D201
D202
10
words
D209
DISTC(566)
@DISTC(566)
Not supported
Interrupt tasks
OK
1051

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents