6 BASIC INSTRUCTIONS
6.7 Data Transfer Instructions
519
6
Exchanging 16-bit binary block data
BXCH(P)
These instructions exchange the (n) points of 16-bit binary data starting from the devices specified.
■Execution condition
■Description, range, data type
*1 When specifying setting data by using a label, define an array to secure enough operation area and specify an element of the array
label.
■Applicable devices
Ladder ST
ENO:=BXCH(EN,n,d1,d2);
ENO:=BXCHP(EN,n,d1,d2);
FBD/LD
Instruction Execution condition
BXCH
BXCHP
Operand Description Range Data type Data type (label)
(d1) Start device where the exchange target data is stored Word ANY16
*1
(d2) Start device where the exchange target data is stored Word ANY16
*1
(n) Number of exchange data points 0 to 65535 16-bit unsigned binary ANY16
EN Execution condition Bit BOOL
ENO Execution result Bit BOOL
Operand Bit Word Double word Indirect
specification
Constant Others
X, Y, M, L,
SM, F, B, SB,
FX, FY
J\ T, ST, C, D, W,
SD, SW, FD, R,
ZR, RD
U\G, J\,
U3E\(H)G
Z LT, LST,
LC
LZ K, H E $
(d1)
(d2)
(n)
RnCPU
RnENCPU
RnSFCPU RnSFCPURnPCPURnPCPU
(Standard) (Safety)
(Redundant)
(Process)