Panasonic FP Series Programming Manual page 609

Hide thumbs Also See for FP Series:
Table of Contents

Advertisement

Comparison instructions
F62_WIN
Compares the 16-bit equivalent constant or 16-bit data specified by s1_In with the data band
Description
specified by s2_Min and s3_Max if the trigger EN is in the ON-state. This instruction checks that
s1_In is in the data band between s2_Min (lower limit) and s3_Max (higher limit), larger than
s3_Max, or smaller than s2_Min. The compare operation considers +/- sign. Since the BCD data is
also treated as 16-bit data with sign, we recommend using BCD data within the range of 0 to 7999
to avoid confusion. The compare operation result is stored in special internal relays R9009, R900A
to R900C.
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 F62_WIN (see page 1325)
PLC types
Data types
Variable
Data type
s1_In
s2_Min
ANY16
s3_Max
The variables s1, s2 and s3 have to be of the same data type.
Operands
For
s1, s2, s3
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.
608
16-bit data band compare
R900A (>flag)
Off
Off
On
Function
16-bit area or 16-bit equivalent constant to be compared
lower limit, 16-bit area or 16-bit equivalent constant
upper limit, 16-bit area or 16-bit equivalent constant
Relay
WX
WY
WR
WL
Flags
R900B
R900C (<flag)
(=flag)
Off
On
On
Off
Off
Off
T/C
Register
SV
EV
DT
LD
FL
Constant
dec. or hex.

Advertisement

Table of Contents
loading

Table of Contents