Panasonic FP Series Programming Manual page 462

Hide thumbs Also See for FP Series:
Table of Contents

Advertisement

F351_FMIN
The function searches for the minimum value and its position in a floating point data table.
Description
Input s1 specifies the starting area of the data table, and s2 specifies the end. The minimum value
is returned at output min and its position at output pos.
The address of the minimum value at output pos is relative to the beginning address in the data
table as specified at input s1.
If more than one minimum value is found, the first one found beginning from the starting address
specified at s1 is 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 F351_FMIN (see page 1325)
PLC types
Data types
Variable
s1
s2
min
pos
Operands
For
s1, s2
min
pos
Error flags
No.
R9007
R9008
Minimum value search in real number data table (floating point data)
Data type
Function
REAL
starting area of data table
REAL
ending area of data table
REAL
specifies minimum value
INT
position where minimum value was found
Relay
DWX DWY
DWR
DWL
-
DWY
DWR
DWL
-
WY
WR
WL
IEC address
Set
%MX0.900.7
permanently
%MX0.900.8
for an instant
T/C
Register
DSV
DEV
DDT
DLD
DSV
DEV
DDT
DLD
SV
EV
DT
LD
If
 the addresses of variables at inputs s1 >
s2.
 the address areas are different.
 the floating point values exceed the
processing range.
Arithmetic instructions
Const.
DFL
-
DFL
-
FL
-
461

Advertisement

Table of Contents
loading

Table of Contents