Panasonic FP Series Programming Manual page 838

Hide thumbs Also See for FP Series:
Table of Contents

Advertisement

F16_DXCH
Two 32-bit data specified by d1 and d2 are exchanged if the trigger EN is in the ON-state.
Description
31 . . 28 27 . . 24 23 . . 20 19 . .16
Bit
d1
0 0 0 0
d2
0 0 0 0
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 F16_DXCH (see page 1321)
PLC types
Data types
Variable
Data type
d1
ANY32
d2
The variables d1 and d2 have to be of the same data type.
Operands
For
d1, d2
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
32-bit data exchange
1 0 0 1
0 0 0 0
0 0 0 0
0 1 1 0
0 0 0 0
0 0 0 0
Function
32-bit area to be exchanged with d2
32-bit area to be exchanged with d1
Relay
-
DWY DWR
DWL
DSV
15 . . 12 10 . . 8 7 . . 4 3 . . 0
0 0 0 0
0 0 0 0
0 0 0 1
0 0 0 0
0 0 0 0
0 0 0 1
32-bit area
T/C
Register
DEV
DDT
DLD
DFL
Data transfer within the PLC
0 0 0 1
1 0 0 0
Constant
-
837

Advertisement

Table of Contents
loading

Table of Contents