14.20 SSRC (String Search)
■
Ladder diagram
■
List of operands
Operand Description
S1 Starting device address of the string data to be searched for
S2 Starting device address of the string to be searched
D Starting device address to store the search result
■
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 U H SF
D
F
" "
S1 ● ● ● ● ● ● ● ●
S2 ● ● ● ● ● ● ● ●
D ● ● ● ● ● ● ● ● ●
■
Outline of operation
● This instruction searches the character data specified by [S1] from the character string
specified by [S2].
● As for the search result, the number of the same character data is stored in the device
address specified by [D], and the first matched relative position (byte units) is stored in [D]+1.
■
Processing
Example 1) Searching for string "EFG" stored in DT0, in the string table from DT11
[S1]...DT0 [S2]...DT10 [S2]...DT120
14.20 SSRC (String Search)
WUME-FP7CPUPGR-12 14-89