Panasonic FP Series Programming Manual page 615

Hide thumbs Also See for FP Series:
Table of Contents

Advertisement

Comparison instructions
F346_FWIN
The function compares a data band whose upper and lower limits are specified at inputs s2_Min
Description
and s3_Max with a value that is entered at input s1_In. The result is returned as follows:
Comparison between
s1, s2 and s3
s1_In < s2_Min
s2_Min
s1_In
s3_Max
s1_In > s3
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 F346_FWIN (see page 1324)
PLC types
Data types
Variable
Data type
s1_In
s2_Min
REAL
s3_Max
Operands
For
DWX DWY DWR
s1, s2, s3
Error flags
No.
IEC address
%MX0.900.7
R9007
%MX0.900.8
R9008
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.
614
Floating point data band compare
R900A (>flag)
Off
Off
On
Function
REAL number data to be compared to s2_Min and s3_Max
lower limit
upper limit
Relay
DWL
DSV
Set
permanently
for an instant
Flags
R900B
R900C (<flag)
(=flag)
Off
On
On
Off
Off
Off
T/C
Register
DEV
DDT
DLD
DFL
If
 the values at inputs s1_In, s2_Min, and
s3_Max are not REAL numbers
 if the value at s2_Min > s3_Max.
Constant
dec. or hex.

Advertisement

Table of Contents
loading

Table of Contents