5 exchange instruction (xchg) – Yaskawa Ladder Works Programming Manual User Manual

Page 107

Advertising
background image

6.5 EXCHANGE Instruction (XCHG)

6-10

6.5 EXCHANGE Instruction (XCHG)

[Outline]

The XCHG instruction is used to exchange data between data tables 1 (Data Table1) and 2 (Data Table2).

Source

Dest

Width

Source

Transfer source
data area

Transfer
destination
data area

(a)

(b)

c

d

e

f

g

(h)

(f)

(g)

(h)

c

d

e

f

g

(a)

(b)

a

b

c

d

e

(h)

(f)

(g)

(h)

a

b

c

d

e

Transfer source

Transfer destination

Transfer source

Transfer destination

Whe the transfer source and
transfer desitnation overlap (2)

Whe the transfer source and
transfer desitnation overlap (1)

[Format]

Symbol : XCHG
Full Name : Exchange
Category : MOVE

Icon :

[Parameter]

Parameter Name

Setting

Data Table 1

· Any integer type register (except for # and C registers)
· Any integer type register with subscript (except for # and C registers)

Data Table 2

· Any integer type register (except for # and C registers)
· Any integer type register with subscript (except for # and C registers)

Width

· Any integer type register
· Any integer type register with subscript
· Constant

Advertising