beautypg.com

Hint sample program, 2 instructions – Omron SYSMAC CP CP1E-N@@D@-@ User Manual

Page 158

background image

2 Instructions

2-122

CP1E CPU Unit Instructions Reference Manual(W483)

Hint

Sample program

To exchange 3 or more words, use
XFER(070) to transfer the words to a third set
of words (a buffer) as shown in this diagram.

When CIO 0.00 is ON in this example, the con-
tent of D100 is exchanged with the content of
D200.

E1

E2

Buffer

1

st

XFER(070)

operation

2

nd

XFER(070)

operation

3

rd

XFER(070)

operation

XCHG

D100

D200

0.00

D100

D200

D100

D200

1

2

3

4

A

B

C

D

1

2

3

4

A

B

C

D

This manual is related to the following products: