Panasonic FP-E Programming Manual page 253

Fp series
Table of Contents

Advertisement

Explanation of example
Compares the contents of data register DT0 with the constant K60 when X0 turns on. If DT0
on state, external output relay Y30 goes on. If DT0 < K60 or if X0 is in the off state, external output relay Y30
goes off.
DT0
60
10
on
X0
off
on
Y30
off
Description
Compares the word data specified by S1 with the word data specified by S2 according to the comparison
condition.
The AN 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 < S2
AN=
off
AN
on
< >
AN
off
>
AN
off
> =
AN
on
<
AN
on
< =
Precautions concerning usage
Multiple AND comparison instructions AN =, AN <>, AN >, AN >=, AN <, and AN <= can be used
consecutively.
If mixed with BCD or other type of data, the value will be regarded as negative when the most significant bit is 1
and a correct comparison may not be obtained. In this case, use an F81 (BIN) instruction or similar instruction
to change the data to binary data before making the comparison.
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 = S2
S1 > S2
on
off
off
on
off
on
on
on
off
off
on
off
Turns on and stays on when the area specified using the index modifier
exceeds the limit.
Turns on for an instant when the area specified using the index modifier
exceeds the limit.
Basic Instructions
< > indicates
>= indicates
<= indicates
K60 in the X0
2 − 143

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fp0Fp2Fp2shFp0rFrsFp10sh ... Show all

Table of Contents