5.15 BSWAP (High /Low Byte in n Block Exchange)
5.15 BSWAP (High /Low Byte in n Block Exchange)
■
Ladder diagram
■
List of operands
Operand
Description
S
The starting address of the device to exchange the high and low bytes
n
The number of words to exchange the high and low bytes
D
Device address of destination of the exchanged data
■
Available devices (●: Available)
Operan
d
W
W
X
Y
S
●
●
n
●
●
D
●
●
(Note 1)
Only 16-bit devices can be modified. (Integer constants cannot be specified.)
■
Outline of operation
● This instruction exchanges the high byte and low byte for [n] words from the device address
specified by [S], and transfers it to the area starting from [D].
● The maximum number of exchanged words is 65535.
● When [n] is 0, no operation is performed.
■
Processing
Example) Operation unit: 16 bits (US, SS)
5-34
16-Bit device:
W
W
W
S
D
L
R
L
S
D
T
D
●
●
●
●
●
●
●
●
●
●
●
●
●
●
32-Bit
device:
TS
TE
U
W
WI
IX
C
C
M
O
S
E
Real
St
Integer
numbe
rin
r
g
D
K
H
SF
" "
U
F
●
●
WUME-FP7CPUPGR-12
Index
modifie
r
(Note 1)
●
●
●