Panasonic FP Series Programming Manual page 685

Hide thumbs Also See for FP Series:
Table of Contents

Advertisement

Conversion instructions
F325_FLT
Converts the 16-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 F325_FLT (see page 1324)
PLC types
 F325_FLT cannot be programmed in the interrupt program.
 Instead of using F325_FLT, you can use variables of the type REAL
with the more flexible instruction INT_TO_REAL (see page 193).
Data types
Variable
Data type
INT
s
REAL
d
Operands
For
s
d
Error flags
No.
IEC address
%MX0.900.11
R900B
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 integer value entered for the variable IntegerInput 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.
LD
684
16-Bit Integer Data to Floating Point Data Conversion
Function
16-bit integer data (source).
Floating point real number data for result (destination).
Relay
WX
WY
WR
WL
-
DWY
DWR
DWL
DSV
Set
for an instant
T/C
Register
SV
EV
DT
LD
FL
DEV
DDT
DLD
DFL
If
 the result of processing is recognized as
"0".
Constant
dec. or hex.
-

Advertisement

Table of Contents
loading

Table of Contents