![background image](http://html.mh-extra.com/html/mitsubishi-electric/melsec-iq-f-fx5/melsec-iq-f-fx5_programming-manual_239114477.webp)
8 APPLICATION INSTRUCTION
8.8 Character String Operation Instruction
475
8
Processing details
• These instructions delete (n) characters starting from the (s)th character (deletion start position) from the start of the
character string data specified by (d).
• When the number of characters after deletion, (d), is even, a NULL code (00H) is stored in the device after the last device
storing the character string.
• When the number of characters after deletion, (d), is odd, a NULL code (00H) is stored in the last device (upper 8 bits) of
the character string.
• The character string after the deleted character string is shifted by (n) characters, a NULL code (00H) is stored in vacant
devices.
Operation error
Error code
(SD0/SD8067)
Description
2820H
No NULL code (00H) exists in the corresponding device range of the device specified by (d) and later.
3405H
The character string specified by (d) has more than 16383 characters.
(s) is not within the range (1
(s)
16383)
The value specified by (s) exceeds the number of characters of the character string (d).
The value specified by (n) exceeds the number of characters from (s) to the last of the character string (d).
41H (A)
42H (B)
48H (H)
49H (I)
4AH (J)
4BH (K)
4CH (L)
00H
0000H
0000H
0000H
31H (1)
30H (0)
33H (3)
32H (2)
35H (5)
34H (4)
41H (A)
42H (B)
49H (I)
48H (H)
4AH (J)
4CH (L)
4BH (K)
0000H
31H (1)
30H (0)
33H (3)
32H (2)
35H (5)
34H (4)
41H (A)
42H (B)
43H (C)
44H (D)
45H (E)
46H (F)
48H (H)
47H (G)
4AH (J)
49H (I)
4CH (L)
4BH (K)
0000H
31H (1)
30H (0)
33H (3)
32H (2)
35H (5)
34H (4)
(d)
(d)+1
(d)+2
(d)+3
(d)+4
(d)+5
(d)+6
(d)+7
(d)+8
(d)+9
(d)
(d)+1
(d)+2
(d)+3
(d)+4
(d)+5
(d)+6
(d)+7
(d)+8
(d)+9
(d)
(d)+1
(d)+2
(d)+3
(d)+4
(d)+5
(d)+6
(d)+7
(d)+8
(d)+9
b15
b0
b7
b8
b15
b0
b7
b8
b15
b0
b7
b8
3
(s)
Number of
characters to be
deleted (n): 5
Deletion start
position (s):
3rd character
The character string data of the deleted character
and later is shifted rightward by 5 characters.
After shifting, "00H" is stored
in the vacant device.
The character string data of (d)+7
and later does not change.
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: ......