![Mitsubishi Electric MELSEC iQ-F FX5 Скачать руководство пользователя страница 473](http://html.mh-extra.com/html/mitsubishi-electric/melsec-iq-f-fx5/melsec-iq-f-fx5_programming-manual_239114473.webp)
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)
Содержание MELSEC iQ-F FX5
Страница 1: ...MELSEC iQ F FX5 Programming Manual Instructions Standard Functions Function Blocks ...
Страница 2: ......
Страница 17: ...15 CONTENTS ...
Страница 24: ...22 MEMO ...
Страница 25: ...23 PART 1 PART 1 OVERVIEW Part 1 consists of the following chapter 1 OVERVIEW 2 PRECAUTIONS ON PROGRAMMING ...
Страница 126: ...124 6 SEQUENCE INSTRUCTIONS 6 3 Output Instructions Operation error There is no operation error ...
Страница 132: ...130 6 SEQUENCE INSTRUCTIONS 6 3 Output Instructions Operation error There is no operation error ...
Страница 140: ...138 6 SEQUENCE INSTRUCTIONS 6 3 Output Instructions Operation error There is no operation error ...
Страница 191: ...7 BASIC INSTRUCTIONS 7 2 Arithmetic Operation Instructions 189 7 Operation error There is no operation error ...
Страница 202: ...200 7 BASIC INSTRUCTIONS 7 2 Arithmetic Operation Instructions Operation error There is no operation error ...
Страница 278: ...276 7 BASIC INSTRUCTIONS 7 4 Bit Processing Instructions Operation error There is no operation error ...
Страница 280: ...278 7 BASIC INSTRUCTIONS 7 4 Bit Processing Instructions Operation error There is no operation error ...
Страница 915: ...18 TYPE CONVERSION FUNCTIONS 18 13 Converting DWORD to WORD 913 18 Operation error There is no operation error ...
Страница 917: ...18 TYPE CONVERSION FUNCTIONS 18 14 Converting DWORD to INT 915 18 Operation error There is no operation error ...
Страница 932: ...930 18 TYPE CONVERSION FUNCTIONS 18 26 Converting DINT to WORD Operation error There is no operation error ...
Страница 1050: ...1048 26 TIME DATA FUNCTIONS 26 4 Division MEMO ...
Страница 1068: ...1066 29 COUNTER FUNCTION BLOCKS 29 4 Counter Function Block Operation error There is no error ...
Страница 1107: ...I 1105 MEMO ...
Страница 1111: ......