8. Function Commands
DSER, DSERP
- 277 -
Program example
Program to compare the D884 to D893 data with "123" when XB turns ON.
Coding
No. of
steps
Com-
mand
Device
10 LD XB
11 DSER D0 D884 D10 K5
DSER
D884D0 D10
K5
XB
10
17
123
Search data
D1, D0 data
Matched data
Search results
D10
D11
3
2
123
123
123
20
500
10
123D883, D882
D885, D884
D887, D886
D889, D888
D891, D890
D893, D892
D895, D894
Head No. to be searched
D10…Matched position
D11…No. of matches
Search range
(5*2blocks)
Search of data using DSER command