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
W
W
X
Y
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
WUME-FP7CPUPGR-12
16-Bit device:
W
W
W
S
D
L
R
L
S
D
T
D
●
●
●
●
●
●
●
●
●
●
●
●
14.20 SSRC (String Search)
32-Bit
device:
TS
TE
U
W
WI
IX
C
C
M
O
S
E
●
●
●
●
Real
St
Integer
numbe
rin
r
g
D
K
H
SF
" "
U
F
Index
modifie
r
●
●
●
14-89