Panasonic FP7 Series Command Reference Manual page 453

Cpu unit
Hide thumbs Also See for FP7 Series:
Table of Contents

Advertisement

(Note 7)
Can be specified only when the operation unit is a single-precision floating point real number (SF).
(Note 8)
Can be specified only when the operation unit is a double-precision floating point real number (DF).
Outline of operation
● This instruction searches the range specified by [S2] and [S3] for the search data specified
by [S1].
● The search result is given in the data format of unsigned 32-bit integer, and stored as
follows.
16-bit device
[D], [D]+1
[D]+2、[D]+3
● The maximum amount of data that can be specified is 30000.
● Search is executed from [S2] to [S3].
Processing
Example 1) When the operation unit is 16-bit (US, SS)
[i]...US,SS
<Search data>
DT10
H 1234
WUME-FP7CPUPGR-12
32-bit device
[D]
[D]+1
[S1]...DT10 [S2]...DT20
<Search range>
DT20
DT21
DT22
DT23
DT38
DT39
DT40
<Area specified by D>
DT100・DT101
DT102・DT103
Description of output
Store the number of data with the same value in a
decimal form
Store the position of the first matching data
(relative position with the first data as '0')
[S3]...DT40 [D]...DT100
Relative
position
H 1211
0
H 12FF
1
H 1234
2
H 7FFF
3
H 1234
18
19
H 6677
H 1234
20
The amount of search
data is set for
DT100・DT101
K 3
([D] , [D]+1)
([D]+2 , [D]+3)
K 2
10.1 SRC (Data Search)
The relative position
of the first match is
set for DT102・DT103
10-3

Advertisement

Table of Contents
loading

Table of Contents