5 exchange (xchg), 1 ) operation, 2 ) format – Yaskawa MP900 Series Ladder Programming Manual User Manual

Page 189

Advertising
background image

5.7 Data Shift Instructions

5.7.5 Exchange (XCHG)

5-120

5.7.5 Exchange (XCHG)

( 1 ) Operation

The XCHG instruction exchanges the designated number of words to move between table 1 and table 2.
The data contents of table 1 and table 2 specified by data table start 1, data table start 2, and the number of words to
move are exchanged.

( 2 ) Format

∗ C and # registers cannot be used.

Table 1 data

table start 1

Table 2 data

table start 2

Number of words

to move

1

2

3

4

5

11

12

13

14

15

Table 1

Table 2

11

12

13

14

15

1

2

3

4

5

Data exchanged.

6

16

6

16

Data table start 2

Number of words

to move

Data table start 1

Icon:

Key entry: XCHG

Parameter Name

Applicable Data Types

B

W

L

F

A

Index

Constant

Data table start 1
(Table1)

×

{

*

×

×

×

×

×

Data table start 2
(Table2)

×

{

×

×

×

×

×

Number of words to move
(Width)

×

{

×

×

×

{

{

Advertising
This manual is related to the following products: