Mitsubishi Electric MELSEC iQ-R Series Programming Manual page 690

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

Advertisement

Processing details
• These instructions detect the length of the character string in the device specified by (s) and store it in the device number
specified by (d) and later. The data stored in device numbers starting from the one specified by (s) to the one containing
00H is processed as a character string.
b15
∙∙∙
(s)
2nd character
(s)+1
4th character
(s)+2
6th character
00H
Null character (end of string)
Ex.
When "ABCDEFGHI" is stored in the device specified by (s) and later
b15
∙∙∙
(s)
42H (B)
(s)+1
44H (D)
(s)+2
46H (F)
(s)+3
48H (H)
(s)+4
00H
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 (s) and later.
3405H
The number of characters of the character string in the device specified by (s) exceeds 16383.
7 APPLICATION INSTRUCTIONS
688
7.8 String Processing Instructions
b8
b7
∙∙∙
1st character
3rd character
5th character
'n'th character
b8
b7
∙∙∙
b0
41H (A)
43H (C)
"ABCDEFGHI"
45H (E)
47H (G)
49H (I)
b0
b15
(d)
b15
∙∙∙
(d)
9
∙∙∙
b0
Character string length
b0

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents