Omron CJ - INSTRUCTIONS Reference Manual page 1157

Table of Contents

Advertisement

Flags
Name
Error Flag
Note In C-series PLCs, the BLOCK TRANSFER (XFER) instruction will cause the Error Flag to go ON if the content of an
indirectly addressed DM word (*DM) is not BCD, or the DM area boundary is exceeded.
Function
XFERC(565) copies N words beginning with S (S to S+(N-1)) to the N words beginning with D (D to
D+(N-1)).
to
S+(N 1)
Hint
• It is possible for the source words and destination words to overlap, so XFERC(565) can perform
word-shift operations.
XFERC
#0010
&10
D100
D102
Precaution
• Some time will be required to complete XFERC(565) when a large number of words is being
transferred. In this case, the XFERC(565) transfer might not be completed if a power interruption
occurs during execution of the instruction.
• Be sure that the source words (S to S+N-1) and destination words (D to D+N-1) do not exceed the
end of the data area.
Example Programming
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
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Label
P_ER
• ON if the data in N (the number of words) is not BCD.
N words
D+
(N 1)
D100
D102
D109
D111
D100
D100
D101
D200
D102
D109
Operation
to
D200
D201
D202
10
words
D209
3. Instructions
3
1119

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents