Mitsubishi Electric MELSEC iQ-R Series Programming Manual page 698

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

Advertisement

Processing details
• These instructions read data by the number of characters stored in the device specified by (s2)+1 from the character string
data stored in the device number specified by (s1) and later, and store the read data at the location in the device specified
by (s2) and later in the character string stored in the device number specified by (d) and later.
b15
∙∙∙
(s1)
31H (1)
(s1)+1
33H (3)
(s1)+2
35H (5)
(s1)+3
37H (7)
(s1)+4
00H
Position counted from the left of the string
(s2)
3
data specified by (d)
Number of characters counted from the left
(s2)+1
6
of the string data specified by (s1)
• 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.
• If the number of characters in the device specified by (s2)+1 exceeds the last character of the character string data in the
device specified by (d), the data is stored up to the last character.
b15
∙∙∙
(s1)
31H (1)
(s1)+1
33H (3)
(s1)+2
35H (5)
(s1)+3
37H (7)
(s1)+4
00H
Position counted from the left of the string
(s2)
5
data specified in (d)
Number of characters counted from the left
(s2)+1
8
of the string data specified in (s1)
7 APPLICATION INSTRUCTIONS
696
7.8 String Processing Instructions
b8
b7
∙∙∙
b0
30H (0)
32H (2)
34H (4)
36H (6)
38H (8)
"012345678"
b8
b7
∙∙∙
b0
30H (0)
32H (2)
34H (4)
36H (6)
38H (8)
"012345678"
Before execution
b15
∙∙∙
b8
b7
(d)
42H (B)
(d)+1
44H (D)
(d)+2
46H (F)
(d)+3
48H (H)
(d)+4
00H
"ABCDEFGHI"
After execution
b15
∙∙∙
b8
b7
(d)
42H (B)
(d)+1
31H (1)
(d)+2
33H (3)
(d)+3
35H (5)
(d)+4
00H
"AB012345I"
Before execution
b15
∙∙∙
b8
b7
(d)
42H (B)
(d)+1
44H (D)
(d)+2
46H (F)
(d)+3
48H (H)
(d)+4
00H
"ABCDEFGHI"
After execution
b15
∙∙∙
b8
b7
(d)
42H (B)
(d)+1
44H (D)
(d)+2
31H (1)
(d)+3
33H (3)
(d)+4
00H
"ABCD01234"
Data in 35H (5) to 37H (7) are not stored.
∙∙∙
b0
41H (A)
43H (C)
45H (E)
47H (G)
49H (I)
∙∙∙
b0
41H (A)
30H (0)
32H (2)
34H (4)
49H (I)
∙∙∙
b0
41H (A)
43H (C)
45H (E)
47H (G)
49H (I)
∙∙∙
b0
41H (A)
43H (C)
30H (0)
32H (2)
34H (4)

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents