High
−
level Instructions
3
−
624
Explanation of example
The DT0 character is searched from the character string of DT10, and the result is stored in DT120.
DT120
DT121
5
1
Number of matching character data
Position of first matching data
3
DT0
DT1
DT2
DT3
10
“F”
“E”
“G”
(Byte 1)
DT4
DT5
DT6
Higher
16 bits
Lower
16 bits
(Character string size)
(Number of characters)
(Byte 2)
(Byte 0)
(Byte 3)
(Byte 4)
(Byte 5)
(Byte 6)
(Byte 7)
(Byte 8)
(Byte 9)
8
DT10
DT11
DT12
DT13
10
“B”
“A”
“D”
“C”
(Byte 1)
DT14
DT15
DT16
Higher
16 bits
Lower
16 bits
(Character string size)
(Number of characters)
(Byte 2)
(Byte 0)
(Byte 3)
(Byte 4)
(Byte 5)
(Byte 6)
(Byte 7)
(Byte 8)
(Byte 9)
Characters for search
Search
Table of found characters
“F”
“H”
“E”
“G”
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.
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.
1
4
“B”
“A”
“C”
(Character string size)
(Number of characters)
“D”
Example:
Flag conditions
Error flag (R9007):
Turns on and stays on when:
Error flag (R9008):
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.
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 ...