Panasonic FP-E Programming Manual page 882

Fp series
Table of Contents

Advertisement

High−level Instructions
Description
The character string specified for "S1" is compared to that specified for S2, and the judgment result is output to
special internal relays R9009 to R900C (judgment flags for comparison instructions).
R9009 to R900C are assigned based on whether "S1" or "S2" is larger, as shown in the table below.
Relationship
of S1 and S2
of S1 and S2
R900A
>
S1<S2
OFF
S1=S2
OFF
S1>S2
ON
Precautions during programming
If the number of characters is different, the greater/lesser relationship is as shown below.
S1
Greater/lesser
"ABCDE"
"ABCD"
"B"
Comparison of character strings is performed in sequence from byte 0, one character at a time.
If one character string has fewer characters than the other, it may still be handled as larger if a large character
code is used when the comparison is made.
Example: "B" > "ABCDE"
To specify a character string, indicate the number of the area in which the character size and number of
characters have been specified.
For detailed information about the table configuartion of data area
Flag conditions
・Error flag (R9007):
・Error flag (R9008):
3 − 618
Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com
Flag
R900B
R900C
=
<
OFF
ON
ON
OFF
OFF
OFF
S2
=
"ABCDE"
<
"ABCDE"
>
"ABCDE"
Turns on and stays on when:
Turns on for an instant when:
− The specified range is exceeded when an index is modified.
− The number of characters is larger than the character string size.
R9009
Carry
Fluctuates
OFF
Fluctuates
see page 3 − 615.

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fp0Fp2Fp2shFp0rFrsFp10sh ... Show all

Table of Contents