468
8 APPLICATION INSTRUCTION
8.8 Character String Operation Instruction
Processing details
• These instructions extract the number of characters specified by (s2)+1 from the character string data stored in the device
specified by (s1) and later, and store the extracted data in the position specified by (s2) and later of the character string
data stored in the device specified by (d) and later.
• A character string stored in (s1) or (d) indicates data stored in devices from the specified device until "00H" is first detected
in units of 1 byte.
• A NULL code (00H), which indicates an end of a character string, is automatically added at the end of the character string
data.
• If the number of characters specified by (s2)+1 is 0, no processing is performed.
• When the number of characters specified by (s2)+1 exceeds the last character of the character string specified by (d), data
is stored up to the last character of (d).
30H (0)
31H (1)
32H (2)
33H (3)
34H (4)
35H (5)
36H (6)
37H (7)
38H (8)
00H
b15
b0
b7
b8
(s1)
(s1)+1
(s1)+2
(s1)+3
(s1)+4
(s2)
(s2)+1
"012345678"
"ABCDEFGHI"
"AB012345I"
3
6
41H (A)
42H (B)
43H (C)
44H (D)
45H (E)
46H (F)
47H (G)
48H (H)
49H (I)
00H
b15
b0
b7
b8
(d)
(d)+1
(d)+2
(d)+3
(d)+4
41H (A)
42H (B)
30H (0)
31H (1)
32H (2)
33H (3)
34H (4)
35H (5)
49H (I)
00H
b15
b0
b7
b8
(d)
(d)+1
(d)+2
(d)+3
(d)+4
Before execution
After execution
Position from the left end in the character string
stored in (d) and later
Number of characters from the left end in the
character string stored in (s1) and later
30H (0)
31H (1)
32H (2)
33H (3)
34H (4)
35H (5)
36H (6)
37H (7)
38H (8)
00H
b15
b0
b7
b8
(s1)
(s1)+1
(s1)+2
(s1)+3
(s1)+4
(s2)
(s2)+1
"012345678"
"ABCDEFGHI"
"ABCD01234"
5
8
41H (A)
42H (B)
43H (C)
44H (D)
45H (E)
46H (F)
47H (G)
48H (H)
49H (I)
00H
b15
b0
b7
b8
(d)
(d)+1
(d)+2
(d)+3
(d)+4
41H (A)
42H (B)
43H (C)
44H (D)
30H (0)
31H (1)
32H (2)
33H (3)
34H (4)
00H
b15
b0
b7
b8
(d)
(d)+1
(d)+2
(d)+3
(d)+4
Before execution
After execution
"35H (5)" to "37H (7)" are not stored.
Position from the left end in the character
string stored in (d) and later
Number of characters from the left end in the
character string stored in (s1) and later
Summary of Contents for MELSEC iQ-F FX5
Page 1: ...MELSEC iQ F FX5 Programming Manual Instructions Standard Functions Function Blocks ...
Page 2: ......
Page 17: ...15 CONTENTS ...
Page 24: ...22 MEMO ...
Page 1050: ...1048 26 TIME DATA FUNCTIONS 26 4 Division MEMO ...
Page 1068: ...1066 29 COUNTER FUNCTION BLOCKS 29 4 Counter Function Block Operation error There is no error ...
Page 1107: ...I 1105 MEMO ...
Page 1111: ......