Panasonic FP-E Programming Manual page 247

Fp series
Table of Contents

Advertisement

Explanation of example
Compares the contents of data register DT0 with the constant K50 and K60. If DT0 = K50, the external output
relay Y30 goes on and if DT0
DT0
60
50
10
on
off
Y30
on
off
Y31
Description
Compares the word data specified by S1 with the word data specified by S2 according to the comparison
condition.
The ST instruction initiates a logical operation 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
ST=
off
ST
on
< >
ST
off
>
ST
off
> =
on
ST
<
ST
on
< =
Precautions concerning usage
The start comparison instructions ST =, ST<>, ST >, ST >=, ST <, and ST <= are programmed from the bus
line.
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
K60, the external output relay Y31 turns on.
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
2 − 137

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fp0Fp2Fp2shFp0rFrsFp10sh ... Show all

Table of Contents