Bxch, Bxchp - Mitsubishi MELSEC-Q/L Programming Manual

Table of Contents

Advertisement

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]
(2) The following program exchanges the contents of D0 with the data from M16 to M31 when X10 goes ON.
[Ladder 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]
(4) The following program exchanges the contents of D0 and D1 with those of D9 and D10 when M0 goes ON.
[Ladder Mode]
6.4.10

BXCH, BXCHP

Block 16-bit data exchanges
6.4.10
BXCH, BXCHP
BXCH
BXCHP
,
: Head number of the devices where the data to be exchanged is stored (BIN 16 bits)
D1
D2
n
: Number of exchanges (BIN 16 bits)
Setting
Internal Devices
Data
Bit
Word
––
D1
––
D2
n
[List Mode]
Step
Instruction
[List Mode]
Instruction
Step
[List Mode]
Instruction
Step
[List Mode]
Instruction
Step
Command
Command
J
\
R, ZR
Bit
Word
Device
Device
Device
Device
High
Basic
Process
Redundant Universal
performance
BXCH
D1
D2
BXCHP
D1
D2
Zn
U
\G
––
––
BXCH, BXCHP
LCPU
n
n
Constants
Other
K, H
––
––
––
271
1
2
3
4
6
7
8

Advertisement

Table of Contents
loading

Table of Contents