Omron SYSMAC CJ - REFERENCE MANUAL 01-2008 Reference Manual page 1305

Sysmac cs/cj/one nsj series programmable controllers
Table of Contents

Advertisement

Model Conversion Instructions (Unit Ver. 3.0 or Later)
Description
Flags
Precautions
Example
1266
Area
Index Registers
Indirect addressing
using Index Registers
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)).
S+(N−1)
It is possible for the source words and destination words to overlap, so
XFERC(565) can perform word-shift operations.
Name
Error Flag
ER
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. XFERC(565) will not cause
the Error Flag to go ON in these cases.
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.
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.
The content of N must be BCD. If N is not BCD, an error will occur and the
Error Flag will be turned ON.
When CIO 000000 is ON in the following example, the 10 words D00100
through D00109 are copied to D00200 through D00209.
XFERC
#0010
N
---
,IR0 to ,IR15
–2048 to +2047, IR0 to –2048 to +2047, IR15
DR0 to DR15, IR0 to IR15
,IR0+(++) to ,IR15+(++)
,–(– –) IR0 to, –(– –) IR15
N words
to
XFERC
#0010
&10
Label
ON if the data in N (the number of words) is not BCD.
Section 3-35
S
D
to
D+
(N−1)
Operation
10
words

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents