Panasonic FP Series Programming Manual page 840

Hide thumbs Also See for FP Series:
Table of Contents

Advertisement

F17_SWAP
The higher byte (higher 8-bits) and lower bytes (lower 8-bits) of a 16-bit area specified by d are
Description
exchanged if the trigger EN is in the ON-state. 1 byte means 8 bit.
Bit
15
DT770
0
16#
Bit
15
DT770
0
16#
This instruction also exists as a P instruction (for FP2/2SH, FP3/5, FP10/10SH PLC types), which
is only executed at the rising edge of the EN trigger. Select [Insert P instruction] from the
"Instructions" pane if you require a P instruction. To facilitate reuse, the instruction then appears
under "Recently used" in the pop-up menu. Press <Ctrl>+<Shift>+<v> within the programming
area to open the list of recently used elements.
Availability of F17_SWAP (see page 1322)
PLC types
Data types
Variable
Data type
ANY16
d
Operands
For
-
d
In this example, the same POU header is used for all programming languages. For an example
Example
using IL (instruction list), please refer to the online help.
POU header
All input and output variables used for programming this function have been declared in the POU
header.
Body
When the variable start is set to TRUE, the function is carried out.
LD
Higher/lower byte in 16-bit data exchange
.
.
12 10
.
.
8
0
1
0
0
0
1
1
2
3
higher byte (8-bit)
.
.
12 10
.
.
8
0
1
0
0
0
1
1
4
5
Function
16-bit area in which the higher and lower bytes are swapped
(exchanged)
Relay
T/C
WY
WR
WL
SV
7
.
.
4
3
.
0
1
0
0
0
1
4
5
lower byte (8-bit)
7
.
.
4
3
.
0
1
0
0
0
1
2
3
Register
EV
DT
LD
FL
Data transfer within the PLC
.
0
0
1
.
0
0
1
Constant
-
839

Advertisement

Table of Contents
loading

Table of Contents