EasyManua.ls Logo

Panasonic FP Series

Panasonic FP Series
1345 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Conversion instructions
687
Part III FP Instructions
F327_INT
Floating point data -> 16-bit integer data (the largest integer not
exceeding the floating point data)
The converted integer value at output d is always less than or equal to the floating point value at
input s:
When there is a positive floating point value at the input, a positive pre-decimal
value is returned at the output.
When there is a negative floating point value at the input, the next smallest
pre-decimal value is returned at the output.
If the floating point value has only zeros after the decimal point, its pre-decimal
point value is returned.
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 F327_INT (see page 1324)
Variable Data type Function
s REAL source REAL number data (2 words)
s2 INT, WORD destination for storing converted data
For Relay T/C Register Constant
s DWX DWY DWR DWL DSV DEV DDT DLD DFL dec. or hex.
d - WY WR WL SV EV DT LD FL -
No. IEC address Set If
R9007 %MX0.900.7 permanently
R9008 %MX0.900.8 for an instant
the value at input s is not a REAL
number, or the converted result exceeds
the 16-bit area at output d.
R900B %MX0.900.11 for an instant the result is 0.
Description
The function converts a floating point data at input s in the range -32767.99 to 32767.99 into
integer data (including +/- sign). The result of the function is returned at output d.
Data types
Operands
Error flags
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.

Table of Contents

Other manuals for Panasonic FP Series

Related product manuals