19 Applied Instructions (Data Operation 2)
19.6 SWAP / Byte Swap
511
FXCPU Structured Programming Manual
[Basic & Applied Instruction]
11
Applied Instructions
(Data Operation)
12
Applied Instructions
(High Speed
Processing)
13
Applied Instructions
(Handy
Instruction)
14
Applied Instructions
(External FX I/O
Device)
15
Applied Instructions
(External Device
(optional device))
16
Applied Instructions
(External Device)
17
Applied Instructions
(Data Transfer 2)
18
Applied Instructions
(Floating Point)
19
Applied Instructions
(Data Operation 2)
20
Applied Instructions
(Positioning
Control)
2. 32-bit operation (DSWAP, DSWAPP)
In the case of 32-bit instruction, too, lower 8 bits and higher 8 bits are swapped individually.
Cautions
1) When the continuous execution instruction is used, it must be noted that the swap takes place in every
operation cycle.
2) Some restrictions to applicable devices.
S1: The FX
3U and FX3UC PLCs only are applicable.
Higher 8 bits Lower 8 bits
,
Higher 8 bits Lower 8 bits
+1
DSWAPP
EN ENO
Device for swapping higher
and lower bytes
s
Command
input
s s