Mitsubishi Electric MELSEC iQ-R Series Programming Manual page 105

Motion module instructions, standard functions/ function blocks
Hide thumbs Also See for MELSEC iQ-R Series:
Table of Contents

Advertisement

Processing details
• This instruction transfers the character string data in the device specified by (s) to the device number specified by (d) and
later. The character strings specified by (s) or the character strings from 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)
• 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)
(1) 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
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
(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)
9.1 String Processing Instructions
∙∙∙
b0
1st character
3rd character
5th character
'2n+1'th character
9 STRING PROCESSING
9
103

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents