Mitsubishi Electric MELSEC iQ-R Series Programming Manual page 703

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

Advertisement

Processing details
• These instructions insert the character string data in the device specified by (s1) to the (s2)th character (insertion position)
from the start of the character string data in the device specified by (d).
b15
∙∙∙
b8
b7
∙∙∙
(s1)
31H (1)
30H (0)
(s1)+1
33H (3)
32H (2)
(s1)+2
00H
34H (4)
(s2)
3
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
00H
(d)+5
62H (b)
61H (a)
64H (d)
63H (c)
(d)+6
66H (f)
65H (e)
(d)+7
• If the character string after insertion in the device specified by (s1)+(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 insertion in the device specified by (s1)+(d) is odd, the NULL code (00H) is stored in the last
device (upper 8 bits) of the character string.
• When the number of characters in the device specified by (d) plus 1 is specified in (s2), the character string in the device
specified by (s1) is concatenated to the end of the character string in the device specified by (d).
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 (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.
2821H
The devices specified by (s1) and (d), both containing character strings, are overlapping even partly.
The device specified by (s1)+(d) containing the character string after insertion overlaps with the character string storage device specified
by (s1).
3405H
The number of characters of the character string in the device specified by (s1) exceeds 16383.
An out-of-range value is set to (s2).
• The specified value exceeds the number of characters plus 1 of the character string in the device specified by (d).
• The specified value is not within the following range.
1(s2)16383
The number of characters of the character string in the device specified by (d) exceeds 16383.
3406H
The character string after insertion stored in the device specified by (s1)+(d) becomes data outside the output enable range.
• The number of characters of the character string after insertion in the device specified by (d) exceeds 16383.
• The character string after insertion exceeds each setting area in the specified device/label memory.
b0
The string data of 5 characters
starting from the 3rd character
are shifted to the left, and the
data "01234" is inserted.
b0
Starting position specified by
(s2): 3rd character
b15
∙∙∙
b8
b7
∙∙∙
(d)
42H (B)
41H (A)
(d)+1
31H (1)
30H (0)
(d)+2
33H (3)
32H (2)
(d)+3
43H (C)
34H (4)
(d)+4
45H (E)
44H (D)
(d)+5
47H (G)
46H (F)
00H
48H (H)
(d)+6
66H (f)
65H (e)
(d)+7
The existing string data in (d)+5 and later are
overwritten with the data by an amount equal
to the number of characters to be inserted.
7 APPLICATION INSTRUCTIONS
7.8 String Processing Instructions
b0
Inserted
string data
(s1)
701
7

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents