Mitsubishi Electric MELSEC iQ-R Series Programming Manual page 696

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

Advertisement

Processing details
• These instructions extract the data by the number of characters specify by (s2)+1 from the location specified by (s2) in the
character string data stored in the device number specified by (s1) and later, and store the extracted data in the device
number specified by (d) and later.
b15
∙∙∙
(s1)
42H (B)
(s1)+1
44H (D)
(s1)+2
46H (F)
(s1)+3
48H (H)
(s1)+4
4AH (J)
(s1)+5
00H
"ABCDEFGHIJK"
(s2)
5
(s2)+1
5
(1) Position specified by (s2): 5th character
(2) ASCII code ((s2)+1)th character from the specified position)
• The NULL code (00H) indicating the end of a character string is automatically added to the end of the character string data.
• If the number of characters in the device specified by (s2)+1 is 0, no processing is performed.
• When the number of characters of the data in the device specified by (s2)+1 is -1, the data till the last character data in the
device specified by (s1) is stored in the device specified by (d) and later.
b15
∙∙∙
(s1)
42H (B)
(s1)+1
44H (D)
(s1)+2
46H (F)
(s1)+3
48H (H)
(s1)+4
4AH (J)
(s1)+5
00H
"ABCDEFGHIJK"
(s2)
5
(s2)+1
-1
(1) Position specified by (s2): 5th character
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.
3405H
The number of characters of the character string in the device specified by (s1) exceeds 16383.
An out-of-range value is set to (s2).
• The value in the device specified by (s2) is 0 or less.
• The value in the device specified by (s2)+1 is other than the valid values (-1, 0, 1 or bigger).
• The value in the device specify by (s2) exceeds the number of characters in the device specified by (s1).
• The value obtained by adding those in the devices specify by (s2) and (s2)+1 exceeds the number of characters in the device specified
by (s1).
7 APPLICATION INSTRUCTIONS
694
7.8 String Processing Instructions
b8
b7
∙∙∙
b0
41H (A)
43H (C)
45H (E)
47H (G)
(1)
49H (I)
(2)
4BH (K)
b8
b7
∙∙∙
b0
41H (A)
43H (C)
45H (E)
47H (G)
(1)
49H (I)
4BH (K)
b15
∙∙∙
b8
b7
(d)
46H (F)
(d)+1
48H (H)
(d)+2
00H
"EFGHI"
b15
∙∙∙
b8
b7
(d)
46H (F)
(d)+1
48H (H)
(d)+2
4AH (J)
00H
(d)+3
"EFGHIJK"
∙∙∙
b0
45H (E)
47H (G)
49H (I)
∙∙∙
b0
45H (E)
47H (G)
49H (I)
4BH (K)

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents