High
−
level Instructions
3
−
221
Explanation of example
Searches for the value given in data register DT10 in the block of data register DT20 through DT40 when
trigger R0 turns on.
For example, to search the area of the value called H1234, “H1234” would be written to DT10.
1 2
1 2 3 4
3 4
1 2
DT40:
1 2
DT10:
3 4
[S1]
Searched data
0 [S2]
Block of 16
−
bit areas
DT20:
1 2
1
DT21:
1 2
2
DT22
:
7 F
3
DT23:
19
DT39:
20 [S3]
1 1
F F
3 4
F F
Relative position number
If DT22, DT39, and DT40 match the searched data, the following occurs.
−
If the number of registers matching the searched data = 3
“K3” is stored in DT9037 (with the FP0 T32, FP0R, FP
Σ
, FP
−
X, FP2, FP2SH and FP10SH:
DT90037).
−
If the position of the first matching data (the relative position number) = 2
“K2” is stored in DT9038 (with the FP0 T32, FP0R, FP
Σ
, FP
−
X, FP2, FP2SH, and FP10SH:
DT90038).
Description
Searches for values matching S1 in the block of 16-bit areas specified by S2 (starting area) through S3
(ending area).
When the search operation is performed, the search results are stored as follows.
−
The number of data items that match S1 is stored in special data register DT9037 (with the FP0 T32,
FP0R, FP
Σ
, FP
−
X, FP2, FP2SH and FP10SH: DT90037).
−
The position of the first matching data item, counting from the starting 16-bit area S2, is stored in
special data register DT9038 (with the FP0 T32, FP0R, FP
Σ
, FP
−
X, FP2, FP2SH and FP10SH:
DT90038).
Starting area S2 and ending area S3 should:
−
Be the same type of operand.
−
Satisfy S2
S3.
Data is searched from S2 to S3.
Flag conditions
・
Error flag (R9007): Turns on and stays on when:
・
Error flag (R9008): Turns on for an instant when:
−
The area specified using the index modifier exceeds the limit.
−
S2 > S3.
Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: [email protected]
Summary of Contents for FP-X
Page 1: ...Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...
Page 2: ...Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...
Page 24: ...Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...
Page 1333: ...5 245 Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...