Exchanging 16-Bit Binary Data - Mitsubishi Electric MELSEC iQ-R Series Programming Manual

Hide thumbs Also See for MELSEC iQ-R Series:
Table of Contents

Advertisement

Exchanging 16-bit binary data

XCH(P)
RnPCPU
RnPCPU
RnCPU RnENCPU
(Process)
(Redundant)
These instructions exchange the 16-bit binary data specified.
Ladder
(d1)
(d2)
FBD/LD
EN
ENO
d1
d2
■Execution condition
Instruction
XCH
XCHP
Setting data
■Description, range, data type
Operand
Description
(d1)
Device where the exchange target data is stored
(d2)
Device where the exchange target data is stored
EN
Execution condition
ENO
Execution result
■Applicable devices
Operand
Bit
X, Y, M, L,
J\
SM, F, B, SB,
FX, FY
(d1)
(d2)
Processing details
• These instruction exchange the 16-bit binary data between the devices specified by (d1) and (d2).
(d1)
b15
∙∙∙
b8b7
∙∙∙
b0
0 1 1
1
0
0 0 0 0
0
0
0 0 1 1 1
(d1)
b15
∙∙∙
b8b7
∙∙∙
b0
1 1 1
1
0
0 0 0 1
1
1
1 0 0 0 0
RnSFCPU RnSFCPU
(Standard)
(Safety)
Execution condition
Word
T, ST, C, D, W,
U\G, J\,
SD, SW, FD, R,
U3E\(H)G
ZR, RD
(d2)
b15
∙∙∙
b8b7
∙∙∙
1 1 1
1
0
0 0 0 1
1
1
1 0 0 0 0
(d2)
b15
∙∙∙
b8b7
∙∙∙
0 1 1
1
0
0 0 0 0
0
0
0 0 1 1 1
ST
ENO:=XCH(EN,d1,d2);
ENO:=XCHP(EN,d1,d2);
Range
Data type
16-bit signed binary
16-bit signed binary
Bit
Bit
Double word Indirect
Z
LT, LST,
LZ
LC
b0
b0
Data type (label)
ANY16
ANY16
BOOL
BOOL
Constant
Others
specification
K, H E
$
6 BASIC INSTRUCTIONS
6.7 Data Transfer Instructions
6
515

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents