EasyManua.ls Logo

Panasonic FP7 Series - SCMP (String Compare)

Panasonic FP7 Series
1222 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
14.16 SCMP (String Compare)
Ladder diagram
List of operands
Operand Description
S1 Character string 1 for comparison
Example 1 Character string 2 for comparison
Available devices (●: Available)
Operan
d
16-Bit device:
32-Bit
device:
Integer
Real
numbe
r
St
rin
g
Index
modifie
r
W
X
W
Y
W
R
W
L
W
S
S
D
D
T
L
D
U
M
WI
W
O
TS
C
S
TE
C
E
IX K H SF
D
F
" "
S1
Exampl
e 1
Outline of operation
This instruction compares the string specified by [S1] and the string specified by [S2]. The
comparison result is output to the system relays SRA to SRC (assessment flags for the
comparison instruction).
Comparison flags (system relays SRA to SRC) are processed as follows.
SRA SRB SRC
> = <
[S1] < [S2] OFF OFF ON
[S1] = [S2] OFF ON OFF
[S1] > [S2] ON OFF OFF
If the numbers of characters to be compared are different, they are processed as follows.
[S1] [S2]
"ABCDE" = "ABCDE"
“ABCD” < "ABCDE"
"B" > "ABCDE"
14.16 SCMP (String Compare)
WUME-FP7CPUPGR-12 14-81

Table of Contents

Other manuals for Panasonic FP7 Series

Related product manuals