Mitsubishi Electric MELSEC iQ-R Series Programming Manual page 699

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

Advertisement

• 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
∙∙∙
b8
b7
(s1)
31H (1)
(s1)+1
33H (3)
(s1)+2
35H (5)
(s1)+3
00H
"012345"
Position counted from the left of the string
(s2)
2
data specified by (d)
Number of characters counted from the left
(s2)+1
-1
of the string data specified by (s1)
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 (d) and later.
3405H
The number of characters of the character string in the device specified by (s1) exceeds 16383.
The number of characters of the character string in the device specified by (d) 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 (d).
• The value in the device specify by (s2)+1 exceeds the number of characters in the device specified by (s1).
∙∙∙
b0
30H (0)
32H (2)
34H (4)
Before execution
b15
∙∙∙
b8
b7
(d)
42H (B)
(d)+1
44H (D)
(d)+2
46H (F)
(d)+3
48H (H)
(d)+4
4AH (J)
(d)+5
00H
"ABCDEFGHIJK"
After execution
b15
∙∙∙
b8
b7
(d)
30H (0)
(d)+1
32H (2)
(d)+2
34H (4)
(d)+3
48H (H)
(d)+4
4AH (J)
(d)+5
00H
"A012345HIJK"
7 APPLICATION INSTRUCTIONS
7.8 String Processing Instructions
∙∙∙
b0
41H (A)
43H (C)
45H (E)
47H (G)
49H (I)
4BH (K)
∙∙∙
b0
41H (A)
31H (1)
33H (3)
35H (5)
49H (I)
4BH (K)
697
7

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents