Mitsubishi Electric MELSEC iQ-R Series Programming Manual page 641

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

Advertisement

Processing details
• These instructions transfer the character string data in the device specified by (s) to the device number specified by (d) and
later. The character strings from the one enclosed by double quotes (") or the device number specified by (s) to the device
number containing 00H are transferred all at once.
b15
∙∙∙
b8
b7
(s)
2nd character
(s)+1
4th character
6th character
(s)+2
(s)+n
00H
Null character (end of string)
• Even when the device range ((s) to (s)+n) in which the character string data to be transferred and the device range ((d) to
(d)+n) for storing the transferred data are overlapping, the processing is performed normally. For example, the character
strings stored in the devices specified by D10 to D13 are transferred to the devices specified by D11 to D14 as shown
below.
b15
∙∙∙
b8
b7
∙∙∙
b0
D10
32H (2)
31H (1)
D11
34H (4)
33H (3)
D12
36H (6)
35H (5)
00H
D13
D14
A: Data remain the same.
• When 00H is stored in the lower byte of (s)+n, 00H will be stored in both upper and lower bytes of (d)+n.
b15
∙∙∙
b8 b7
∙∙∙
b0
(s)
42H (B)
41H (A)
(s)+1
44H (D)
43H (C)
(s)+2
45H (E)
00H
(1)
(2) Data (upper byte) is not transferred.
(2) Data remain the same.
(3) 00H is automatically stored in the upper byte.
Operation error
Error code
Description
(SD0)
2820H
There is no NULL code (00H) in the setting area specified by (s) and later in the device/label memory.
3405H
The number of characters in the string specified by (s) exceeds 16383.
3406H
The entire string cannot be stored in the setting area specified by (d) in the device/label memory. (The number of required points is
insufficient.)
∙∙∙
b0
1st character
3rd character
5th character
'2n+1'th character
b15
∙∙∙
b8
b7
∙∙∙
b0
D10
32H (2)
31H (1)
∙∙∙ A
D11
32H (2)
31H (1)
D12
34H (4)
33H (3)
D13
36H (6)
35H (5)
D14
00H
b15
∙∙∙
b8
b7
∙∙∙
b0
(d)
42H (B)
41H (A)
∙∙∙
(d)+1
44H (D)
43H (C)
(d)+2
00H
00H
(3)
b15
∙∙∙
b8
b7
(d)
2nd character
(d)+1
4th character
6th character
(d)+2
(d)+n
00H
(2)
7 APPLICATION INSTRUCTIONS
7.8 String Processing Instructions
∙∙∙
b0
1st character
3rd character
5th character
'2n+1'th character
7
639

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents