Panasonic FP-E Programming Manual page 888

Fp series
Table of Contents

Advertisement

High−level Instructions
Explanation of example
The DT0 character is searched from the character string of DT10, and the result is stored in DT120.
Characters for search
10
DT0
(Character string size)
3
DT1
(Number of characters)
"F"
"E"
DT2
(Byte 1)
(Byte 0)
"G"
DT3
(Byte 3)
(Byte 2)
DT4
(Byte 5)
(Byte 4)
DT5
(Byte 7)
(Byte 6)
DT6
(Byte 9)
(Byte 8)
Higher
Lower
16 bits
16 bits
1
DT120
5
DT121
Description
The character data specified by "S1" is searched using the character string specified by "S2".
The number of characters that are the same, as resulting from the search, is stored in "D", and the first
detected relative position (byte unit) is stored in "D + 1".
Precautions during programming
Specify a number of characters such that "S1" is less than or equal to "S2".
For the number of characters "S1 + 1" in the character string on the search side, designate the number of
characters for performing search.
Example:
4
(Character string size)
1
(Number of characters)
"B"
"A"
"D"
"C"
Flag conditions
Error flag (R9007):
Error flag (R9008):
3 − 624
Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com
Table of found characters
DT10
(Character string size)
DT11
(Number of characters)
DT12
Search
DT13
DT14
DT15
DT16
Number of matching character data
Position of first matching data
When the number of characters is 1, the
system searches the character "A".
When the number of characters is 2, the
characters "AB" are searched as one unit.
Turns on and stays on when:
Turns on for an instant when:
− The specified range is exceeded when an index is modified.
− The number of characters is larger than the character string size.
10
8
"B"
"A"
(Byte 1)
(Byte 0)
"D"
"C"
(Byte 3)
(Byte 2)
"F"
"E"
(Byte 5)
(Byte 4)
"G"
"H"
(Byte 7)
(Byte 6)
(Byte 9)
(Byte 8)
Higher
Lower
16 bits
16 bits

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fp0Fp2Fp2shFp0rFrsFp10sh ... Show all

Table of Contents