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
693
Part III FP Instructions
F334_FRINT
Rounding the first decimal point off
If the first post-decimal digit is between 0..4, the pre-decimal value is rounded down. If the first
post-decimal digit is between 5..9, the pre-decimal value is rounded up.
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 F334_FRINT (see page 1324)
Variable Data type Function
s REAL source
d REAL destination
For Relay T/C Register Constant
s DWX DWY DWR DWL DSV DEV DDT DLD DFL dec. or hex.
d - DWY DWR DWL DSV DEV DDT DLD DFL -
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.
R900B %MX0.900.11 to TRUE the result is 0.
R9009 %MX0.900.9 for an instant the result causes an overflow.
In this example, the input variable input_value is declared. However, you can write a constant
directly at the input contact of the function instead.
Description
The function rounds off the decimal part of the real number data and returns it 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.
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. It rounds off the input_value =
1234.567 after the decimal point and returns the result (here: 1235.000) at the variable
output_value.

Table of Contents

Other manuals for Panasonic FP Series

Related product manuals