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