Panasonic FP-E Programming Manual page 1007

Fp series
Table of Contents

Advertisement

F346
(FWIN)
P346
(PFWIN)
Outline
Compares one real number data item with the data band specified by
two other real number data items.
Program example
Trigger
R0
10
F346 FWIN, DT10, DT20, DT30
S1
S2
S3
Operands
Relay
Operand
Operand
WX WY WR WL
S1
A
A
S2
A
A
S3
A
A
Description
Compares the floating point real number data specified by S1 with the data band specified by S2 and S3,
when the trigger turns on. This instruction checks whether S1 is in the data band between S2 (lower limit) and
S3 (upper limit), larger than S3, or smaller than S2. The comparison result is stored in special internal relays
R900A, R900B, and R900C.
The following table lists the states of the carry flag (R9009), > flag (R900A), = flag (R900B), and < flag
(R900C).
Comparison between
(S1+1, S1), (S2+1, S2)
and (S3+1, S3)
(S1+1, S1) < (S2+1, S2)
(S1+1, S1)
(S3+1, S3) and
(S2+1, S2)
(S1+1, S1)
(S3+1, S3) < (S1+1, S1)
Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com
Floating point real number data band comparison
Ladder Diagram
Ladder Diagram
S1
Real number data (2 words) or lower 16-bit area of 32-bit data to be compared
Real number data (2 words) or lower 16-bit area of 32-bit data for lower limit
Real number data (2 words) or lower 16-bit area of 32-bit data for upper limit
Timer/Counter
SV
EV
A
A
A
A
A
A
A
A
A
A
A
A
Flag
R900A
R900B
R900C
(> flag)
(= flag)
(< flag)
off
off
on
off
on
off
on
off
off
"X": Not changed
S2
S3
Index
Register
register
DT
LD
FL
I
A
A
A
A
A
A
A
A
A
A
A
A
* Index modification of a real number is not possible.
R9009
(Carry
flag)
X
X
X
High−level Instructions
Boolean
Address
Instruction
10
ST
R
11
F346
DT
DT
DT
Constant
Index
Integer
modifier device
modifier
K
H
f
A
A
A
A*
A
A
A
A*
A
A
A
A*
A:
Available
3 − 743
0
(FWIN)
10
20
30
device
A
A
A

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fp0Fp2Fp2shFp0rFrsFp10sh ... Show all

Table of Contents