Mitsubishi Electric MELSEC iQ-R Series Programming Manual page 701

Hide thumbs Also See for MELSEC iQ-R Series:
Table of Contents

Advertisement

Processing details
• These instructions search the character string data stored in the device number specified by (s2) and later starting from the
(s3)th character from the left for the character string data stored in the device number specified by (s1) and later, and store
the search result in the device specified by (d). The search result stored shows the number of characters from the start
character of the character string data in the device specified by (s2).
b15
∙∙∙
b8
b7
(s2)
42H (B)
(s2)+1
44H (D)
(s2)+2
46H (F)
(s2)+3
48H (H)
(s2)+4
4AH (J)
(s2)+5
00H
"ABCDEFGHIJK"
(s3)
3
(1) Starting position specified by (s3): 3rd character
(2) 5th character from the beginning of the data
• If no character string data is matching, 0 is stored in the device specified by (d).
Operation error
Error code
Description
(SD0)
2820H
There is no NULL code (00H) in each setting area in the device/label memory in the device specified by (s1) and later.
There is no NULL code (00H) in each setting area in the device/label memory in the device specified by (s2) and later.
3405H
An out-of-range value is set to (s1).
• The number of characters of the character string that has been set is 0.
• The number of characters of the character string that has been set exceeds 16383.
The number of characters of the character string that has been set in the device specified by (s2) exceeds 16383.
An out-of-range value is set to (s3).
• The value in the device specify by (s3) exceeds the number of characters in the device specified by (s2).
• The value in the device specified by (s3) is negative or 0.
∙∙∙
b0
41H (A)
(1)
43H (C)
(2)
45H (E)
47H (G)
49H (I)
4BH (K)
b15
∙∙∙
b8
b7
(s1)
46H (F)
(s1)+1
48H (H)
(s1)+2
00H
"EFGH"
(d)
5
7 APPLICATION INSTRUCTIONS
7.8 String Processing Instructions
∙∙∙
b0
45H (E)
47H (G)
699
7

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents