Panasonic FP-E Programming Manual page 485

Fp series
Table of Contents

Advertisement

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.
Searched data
DT10:
1 2
3 4
[S1]
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):
・Error flag (R9008):
Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com
Block of 16−bit areas
DT20:
1 2
1 1
0 [S2]
DT21:
1 2
F F
1
DT22
1 2
3 4
2
:
DT23:
7 F
F F
3
DT39:
1 2
3 4
19
DT40:
1 2 3 4
20 [S3]
Turns on and stays on when:
Turns on for an instant when:
− The area specified using the index modifier exceeds the limit.
− S2 > S3.
Relative position number
High−level Instructions
3 − 221

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fp0Fp2Fp2shFp0rFrsFp10sh ... Show all

Table of Contents