Panasonic FP Series Programming Manual page 611

Hide thumbs Also See for FP Series:
Table of Contents

Advertisement

Comparison instructions
F63_DWIN
Compares the 32-bit equivalent constant or 32-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 32-bit data with sign, we recommend using BCD data within the range of 0 to
79999999 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 F63_DWIN (see page 1326)
PLC types
Data types
Variable
Data type
s1_In
s2_Min
ANY32
s3_Max
The variables s1, s2 and s3 have to be of the same data type.
Operands
For
DWX DWY
s1_In,
s2_Min,
s3_Max
In this example the function has been programmed in ladder diagram (LD) and structured text
Example
(ST).The same POU header is used for all programming languages.
610
32-bit data band compare
R900A (>flag)
Off
Off
On
Function
32-bit area or 32-bit equivalent constant to be compared
lower limit, 32-bit area or 32-bit equivalent constant
upper limit, 32-bit area or 32-bit equivalent constant
Relay
DWR
DWL
DSV
Flags
R900B
R900C (<flag)
(=flag)
Off
On
On
Off
Off
Off
T/C
Register
DEV
DDT
DLD
DFL
Constant
dec. or hex.

Advertisement

Table of Contents
loading

Table of Contents