Mitsubishi Electric MELSEC iQ-R Series Programming Manual page 705

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

Advertisement

Processing details
• These instructions delete (n) characters starting from the position (deletion start position) specified by the (s)th character
from the start of the character string data in the device specified by (d).
b15
∙∙∙
b8
b7
∙∙∙
(d)
42H (B)
41H (A)
(d)+1
44H (D)
43H (C)
(d)+2
46H (F)
45H (E)
(d)+3
48H (H)
47H (G)
(d)+4
4AH (J)
49H (I)
(d)+5
4CH (L)
4BH (K)
(d)+6
00H
(d)+7
31H (1)
30H (0)
(d)+8
33H (3)
32H (2)
(d)+9
35H (5)
34H (4)
(s)
3
• If the character string after deletion in the device specified by (d) is even, the NULL code (00H) is stored in the device (1
word) next to the last one containing the character string.
• If the character string after deletion in the device specified by (d) is odd, the NULL code (00H) is stored in the last device
(upper 8 bits) of the character string.
• The character string following the deleted one is shifted by (n) characters to the right, and the NULL code (00H) is stored in
the device that has been emptied.
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 (d) and later.
3405H
The number of characters of the character string in the device specified by (d) exceeds 16383.
An out-of-range value is set to (s).
• The specified value is not within the following range.
1(s)16383
• The specified value exceeds the number of characters of the character string in the device specified by (d).
An out-of-range value is set to (n).
• The specified value exceeds the number of characters from the data in the device specified by (s) of the character string in the device
specified by (d) to the last character.
• The specified value is negative.
The string data after the deleted data are
shifted to the right.
b0
b15
∙∙∙
Number of
(d)
42H (B)
delete-target
(d)+1
characters (n): 5
(d)+2
(d)+3
48H (H)
(d)+4
4AH (J)
(d)+5
4CH (L)
(d)+6
(d)+7
31H (1)
(d)+8
33H (3)
Starting position
(d)+9
35H (5)
specified by (s):
3rd character
b8
b7
∙∙∙
b0
(d)
41H (A)
(d)+1
(d)+2
(d)+3
(d)+4
49H (I)
(d)+5
4BH (K)
(d)+6
00 H
(d)+7
30H (0)
32H (2)
(d)+8
(d)+9
34H (4)
7 APPLICATION INSTRUCTIONS
7.8 String Processing Instructions
After the string data are shifted, 00Hs are
stored in the empty device areas.
b15
∙∙∙
b8
b7
∙∙∙
b0
42H (B)
41H (A)
49H (I)
48H (H)
4BH (K)
4AH (J)
4CH (L)
00H
00H
00H
00H
31H (1)
30H (0)
33H (3)
32H (2)
35H (5)
34H (4)
The string data in (d)+7 and later
remain the same.
7
703

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents