EasyManua.ls Logo

Panasonic FP-E - Page 485

Panasonic FP-E
1334 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
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.
12
1234
34
12
DT40:
12DT10: 34
[S1]
Searched data
0 [S2]
Block of 16−bit areas
DT20:
12 1DT21:
12 2DT22
:
7F 3DT23:
19DT39:
20 [S3]
11
FF
34
FF
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: info@clrwtr.com