Panasonic FP-E Programming Manual page 1005

Fp series
Table of Contents

Advertisement

F345
(FCMP)
P345
(PFCMP)
Outline
Compares one real number data (floating point data) item with another.
Program example
Trigger
R0
10
F345 FCMP, DT10, DT20
S1
S2
Operands
Relay
Operand
Operand
WX WY WR WL
S1
A
A
S2
A
A
Description
Compares the real number data (floating point data) specified by S1 with that specified by S2 when the trigger
turns on. The comparison result is stored in special internal relays R9009, and R900A to R900C.
The following table lists the states of the carry flag (R9009), > flag (R900A), = flag (R900B), and < flag
(R900C), depending on the relative sizes of (S1+1, S1) and (S2+1, S2).
Comparison between
(S1+1, S1) and (S2+1, S2)
(S1+1, S1) < (S2+1, S2)
(S1+1, S1) = (S2+1, S2)
(S1+1, S1) > (S2+1, S2)
" ": turns on or off according to the conditions
Specifying the integer device with [S1] and [S2], the integer data is internally converted to real numbers
before operations continue.
When the constant K is specified in S1 and S2, the operations are the same as when a integer device is
specified.
Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com
Floating point real number data 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 to be compared
Timer/Counter
SV
EV
A
A
A
A
A
A
A
A
Flag
R900A
R900B
R900C
(> flag)
(= flag)
(< flag)
off
off
on
off
on
off
on
off
off
S2
Index
Register
register
DT
LD
FL
I
A
A
A
A
A
A
A
A
* Index modification of a real number is not possible.
R9009
(carry flag)
off
High−level Instructions
Boolean
Address
Instruction
10
ST
R
11
F345 (FCMP)
DT
DT
Constant
Index
Integer
modifier
modifier device
K
H
f
A
A
A
A*
A
A
A
A*
A:
Available
3 − 741
0
10
20
device
A
A

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fp0Fp2Fp2shFp0rFrsFp10sh ... Show all

Table of Contents