Panasonic FP-E Programming Manual page 257

Fp series
Table of Contents

Advertisement

Explanation of example
Compares the real number value of data registers (DT0, DT1) with the real number value of data registers
(DT100, DT101) when X0 turns on. If (DT0, DT1)
relay Y30 goes on. If (DT0, DT1) < (DT100, DT101) or if X0 is in the off state, the external output relay Y30
goes off.
Description
Compares the real number data specified by S1 and S1 +1 with the real number data specified by S2 and
S2+1 according to the comparison condition.
The ANF instruction results in serial connection as the liaison contact when the comparison result is a
specified status (=, <, >, etc.).
The result of the comparison operation is as follows:
Comparison
Condition
instruction
instruction
(S1+1, S1) <
(S2+1, S2)
ANF=
off
ANF
on
< >
ANF
off
>
ANF
off
> =
on
ANF
<
ANF
on
< =
When processing 32-bit data, the higher 16-bit areas (S1+1, S2+1) are automatically determined once the
lower 16-bit areas (S1, S2) are specified.
S1+1
S1
Comparison
S2+1
S2
Precautions concerning usage
Multiple ANF comparisons instructions ANF =, ANF <>, ANF >, ANF >=, ANF <, and ANF <= can be used
consecutively.
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.
Flag conditions
・Error flag (R9007):
・Error flag (R9008):
Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com
(S1+1, S1) =
(S1+1, S1) >
(S2+1, S2)
(S2+1, S2)
on
off
off
on
off
on
on
on
off
off
on
off
The specified data area and the following data area are handled
together as single precision real number data.
Turns on and stays on when:
Turns on for an instant when:
− The area specified using the index modifier exceeds the limit.
− If data other than real number data are specified in (S1+1, S1) and (S2+1,
S2).
(DT100, DT101) in the X0 on state, the external output
< > indicates
>= indicates
<= indicates
Basic Instructions
2 − 147

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fp0Fp2Fp2shFp0rFrsFp10sh ... Show all

Table of Contents