271
BXCH, BXCHP
1
2
3
4
6
7
8
6.4
D
ata T
ransfer I
nstr
uctions
6.4.10
BXCH, BXCHP
Operation Error
(1) There is no error in the XCH (P) or DXCH (P) instruction.
Program Example
(1) The following program exchanges the present value of T0 with the contents of D0 when X8 goes ON.
[Ladder Mode]
[List Mode]
(2) The following program exchanges the contents of D0 with the data from M16 to M31 when X10 goes ON.
[Ladder Mode]
[List Mode]
(3) The following program exchanges the contents of D0 and D1 with the data at M16 to M47 when X10 goes ON.
[Ladder Mode]
[List Mode]
(4) The following program exchanges the contents of D0 and D1 with those of D9 and D10 when M0 goes ON.
[Ladder Mode]
[List Mode]
,
: Head number of the devices where the data to be exchanged is stored (BIN 16 bits)
n
: Number of exchanges (BIN 16 bits)
BXCH, BXCHP
Block 16-bit data exchanges
6.4.10
BXCH, BXCHP
Setting
Data
Internal Devices
R, ZR
J \
U \G
Zn
Constants
K, H
Other
Bit
Word
Bit
Word
––
––
––
––
––
––
n
––
Step
Instruction
Device
Step
Instruction
Device
Step
Instruction
Device
Step
Instruction
Device
Basic
Process
High
performance
Redundant Universal
LCPU
Command
Command
BXCHP
BXCH
n
n
BXCHP
BXCH
D1
D2
D1
D2
D1
D2
D1
D2