8. Function Commands
SER, SERP
- 275 -
Program example
Program to compare the D883 to D887 data with "123" when XB turns ON.
Coding
No. of
steps
Com-
mand
Device
10 LD XB
11 SER D0 D883 D10 K5
SER
D883D0 D10
K5
XB
10
17
Matched data
Search results
D10
D11
3
2
123
123
123
20
500
10
123D882
D883
D884
D885
D886
D887
D888
123
Head No. to be searched
Search data
D0 data
D10…Matched position
D11…No. of matches
Search range
(5 data blocks)
Search of data using SER command