7 APPLICATION INSTRUCTIONS
7.8 String Processing Instructions
697
7
• 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.
Operation error
Error code
(SD0)
Description
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).
30H (0)
31H (1)
32H (2)
33H (3)
34H (4)
35H (5)
00H
b15
b0
∙∙∙
∙∙∙
b7
b8
(s1)
(s1)+1
(s1)+2
(s1)+3
"012345"
"ABCDEFGHIJK"
"A012345HIJK"
41H (A)
42H (B)
43H (C)
44H (D)
45H (E)
46H (F)
47H (G)
48H (H)
49H (I)
4AH (J)
4BH (K)
00H
b15
b0
∙∙∙
∙∙∙
b7
b8
b15
b0
∙∙∙
∙∙∙
b7
b8
(d)
(d)+1
(d)+2
(d)+3
(d)+4
(d)+5
41H (A)
30H (0)
31H (1)
32H (2)
33H (3)
34H (4)
35H (5)
48H (H)
49H (I)
4AH (J)
4BH (K)
00H
(d)
(d)+1
(d)+2
(d)+3
(d)+4
(d)+5
(s2)
(s2)+1
2
-1
Number of characters counted from the left
of the string data specified by (s1)
Position counted from the left of the string
data specified by (d)
Before execution
After execution
Summary of Contents for MELSEC iQ-R Series
Page 1: ...MELSEC iQ R Programming Manual Instructions Standard Functions Function Blocks ...
Page 2: ......
Page 24: ...22 INDEX 2092 INSTRUCTION INDEX 2093 REVISIONS 2104 WARRANTY 2105 TRADEMARKS 2106 ...
Page 34: ...32 MEMO ...
Page 35: ...33 PART 1 PART 1 OVERVIEW This part consists of the following chapter 1 OVERVIEW ...
Page 68: ...66 1 OVERVIEW 1 5 Precautions on Programming MEMO ...
Page 1448: ...1446 14 REDUNDANT SYSTEM INSTRUCTIONS 14 2 Disabling Enabling System Switching MEMO ...
Page 1972: ...1970 33 TIME DATA TYPE FUNCTIONS 33 4 Division MEMO ...
Page 2067: ...APPX Appendix 5 PID Control Program Examples 2065 A 252 Set PID control data for loop 2 ...
Page 2109: ......