Mitsubishi Electric M800VW Series Programming Manual page 257

Plc programming
Hide thumbs Also See for M800VW Series:
Table of Contents

Advertisement

M800V/M80V Series PLC Programming Manual (1/2)
8 Function Instructions
8.4 Data Transfer Instructions
XCH, XCHP, DXCH, DXCHP: 16-bit and 32-bit data exchanges
Setting
Bit devices
data
X
Y
M
L
F
D1
D2
△ : This is not available with DXCH (P).
[Instruction symbol] [Execution condition]
XCH, DXCH
XCHP, DXCHP
 Setting data
Setting data
D1
Head No. of the device storing data to be exchanged
D2
 Functions
XCH
 Conducts 16-bit data exchange between "D1" and "D2".
b15
Before execution
0 1 1 1 0 0 1 0 1 0 1 0 1 1 1 1
b15
After execution
1 1 1 1 0 0 0 0 1 1 1 1 0 0 1 0
DXCH
 Conducts 32-bit data exchange between "D1"+1, "D1" and "D2"+1, "D2".
b31
1 1 1 1
Before execution
b31
After execution
0 0 0 0
 Operation errors
 There are no operation errors associated with the XCH(P) or DXCH(P) instructions.
IB-1501667-B
Usable devices
B SB
T SM V
T
C
Meaning
D1
b8b7
b0
D1
b8b7
b0
D1
D1+1
b16b15
0 0 0 0 1 1 1
1 0 0 0 0
D1+1
D1
b16b15
1 1 1 1 1 1 1
1 1 1 1 1
Word devices
D
R/ZR W SW SD
Z
indicates the instruction XCH or DXCH.
D2
b15
b8b7
1 1 1 1 0 0 0 0 1 1 1 1 0 0 1 0
D2
b15
b8b7
0 1 1 1 0 0 1 0 1 0 1 0 1 1 1 1
D2+1
b0
b31
b16b15
0 0 0 0
1 1 1 1 1 1 1
D2+1
b0
b31
b16b15
1 1 1 1
0 0 0 0 1 1 1
236
Digit
Con-
Pointer
designa-
Index
stant
tion
K
H
P
D1
D2
P
D1
D2
Data type
BIN 16/32 bits
b0
b0
D2
b0
1 1 1 1 1
D2
b0
1 0 0 0 0

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents