8 APPLICATION INSTRUCTION
8.8 Character String Operation Instruction
471
8
Processing details
• These instructions search the character string data stored in the device specified by (s2) and later starting from the (s3)th
character from the left, for the character string data stored in the device specified by (s1) and later and store the search
result in the device specified by (d). The search result stores the position where the first detected character is located from
the start character in the character string data stored in (s2).
• If no matched character string data is found, 0 is stored in (d).
• When the search start position "s3" is a negative number or "0", search processing is not executed.
• A character string can be directly specified in the character string (s1).
Operation error
(1): Search start position (s3): 3rd character
(2): Fifth character from the head character
(1): Search start position (s3): 3rd character
(2): Fifth character from the head character
Error code
(SD0/SD8067)
Description
2820H
No NULL code (00H) exists in the corresponding device range of the device specified by (s1) and later.
No NULL code (00H) exists in the corresponding device range of the device specified by (s2) and later.
3405H
The value stored in a device specified in (s3) exceeds the number of characters of (s2).
The character string specified by (s1) has more than 16383 characters.
The character string specified by (s2) has more than 16383 characters.
41H (A)
42H (B)
43H (C)
44H (D)
45H (E)
46H (F)
47H (G)
48H (H)
45H (E)
46H (F)
47H (G)
48H (H)
49H (I)
4AH (J)
4BH (K)
00H
00H
"ABCDEFGHIJK"
"EFGH"
b15
b0
b7
b8
b15
b0
b7
b8
(s2)
(s2)+1
(s2)+2
(s2)+3
(s2)+4
(s2)+5
(s1)
(s1)+1
(s1)+2
3
(s3)
5
(d)
(1)
(2)
31H (1)
32H (2)
33H (3)
34H (4)
41H (A)
42H (B)
35H (5)
36H (6)
41H (A)
42H (B)
00H
"1234AB56AB"
"AB"
b15
b0
b7
b8
(s2)
(s2)+1
(s2)+2
(s2)+3
(s2)+4
(s2)+5
3
(s3)
5
(d)
(1)
(2)
Character string to be searched for (s1)
Summary of Contents for MELSEC iQ-F FX5
Page 1: ...MELSEC iQ F FX5 Programming Manual Instructions Standard Functions Function Blocks ...
Page 2: ......
Page 17: ...15 CONTENTS ...
Page 24: ...22 MEMO ...
Page 1050: ...1048 26 TIME DATA FUNCTIONS 26 4 Division MEMO ...
Page 1068: ...1066 29 COUNTER FUNCTION BLOCKS 29 4 Counter Function Block Operation error There is no error ...
Page 1107: ...I 1105 MEMO ...
Page 1111: ......