Panasonic FP Series Programming Manual page 686

Hide thumbs Also See for FP Series:
Table of Contents

Advertisement

F326_DFLT
Converts the 32-bit integer data with sign specified by s to real number data. The converted data is
Description
stored in d.
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 F326_DFLT (see page 1324)
PLC types
 F326_DFLT cannot be programmed in the interrupt program.
 Instead of using F326_DFLT, you can use variables of the type REAL
with the more flexible instruction DINT_TO_REAL (see page 194).
Data types
Variable
Data type
DINT
s
REAL
d
Operands
For
DWX DWY DWR
s
d
Error flags
No.
IEC address
%MX0.900.11
R900B
%MX0.900.9
R9009
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 double integer value entered for the variable
DINT_input is converted to floating point data, and the result is stored at the address assigned by
the compiler to the variable RealNumberResult. The monitor value icon is activated for both the
LD and IL bodies.
32-Bit Integer Data to Floating Point Data Conversion
Function
32-bit integer data (source).
Floating point real number data for result (destination).
Relay
DWL
DSV
-
DWY DWR
DWL
DSV
Set
for an instant
for an instant
T/C
Register
DEV
DDT
DLD
DFL
DEV
DDT
DLD
DFL
If
 there are too many significant digits in
mantissa of converted real number data.
 the result of processing is recognized as
"0".
Conversion instructions
Constant
dec. or hex.
-
685

Advertisement

Table of Contents
loading

Table of Contents