EasyManuals Logo

Mitsubishi MELSEC iQ-F FX5 series User Manual

Mitsubishi MELSEC iQ-F FX5 series
888 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #399 background imageLoading...
Page #399 background image
7 APPLICATION INSTRUCTION
7.6 Character string operation instruction
397
7
• If the number of characters specified by (s2)+1 is 0, no processing is performed.
• When the number of characters specified by (s2)+1 exceeds the last character of the character string specified by (d), data
is stored up to the last character of (d).
• When (s2)+1 (the number of characters to be extracted) is "-1", the entire character string stored in (s1) and later is stored
to (d) and later.
Precautions
When handling character codes other than ASCII codes, note the following points:
• The number of characters is handled in byte units (8 bits). Accordingly, in the case of character codes in which 2 bytes
express 1 character such as shift JIS codes, 1 character is detected as "2".
• When extracting characters from a character string including character codes in which 2 bytes express 1 character such as
shift JIS codes, consider the number of characters to be extracted in units of character codes for 1 character. Note that the
expected character code is not retrieved if only 1 byte is extracted out of a 2-byte character code.
Operation error
Error code
(SD0/SD8067)
Description
2820 In the corresponding device range of the device specified by (s1) and later, "00H" does not exist.
The device specified by (d) exceeds the corresponding device range.
3405 The value stored in a device specified in (s2)+1 is -2 or lower.
The value stored in a device specified in (s2) exceeds the number of characters of (d).
The value stored in a device specified in (s2)+1 exceeds the number of characters of (s1).
The character string specified by (s1) has more than 16383 characters.
The character string specified by (d) has more than 16383 characters.
30H (0)31H (1)
32H (2)33H (3)
34H (4)35H (5)
36H (6)37H (7)
38H (8)00H
b15 b0
b7b8
(s1)
(s1)+1
(s1)+2
(s1)+3
(s1)+4
(s2)
(s2)+1
"012345678"
"ABCDEFGHI"
"ABCD01234"
5
8
41H (A)42H (B)
43H (C)44H (D)
45H (E)46H (F)
47H (G)48H (H)
49H (I)00H
b15 b0
b7b8
(d)
(d)+1
(d)+2
(d)+3
(d)+4
41H (A)42H (B)
43H (C)44H (D)
30H (0)31H (1)
32H (2)33H (3)
34H (4)00H
b15 b0
b7b8
(d)
(d)+1
(d)+2
(d)+3
(d)+4
Before execution
After execution
"35H (5)" to "37H (7)" are not stored.
Position from the left end in the character
string stored in (d) and later
Number of characters from the left end in the
character string stored in (s1) and later
30H (0)31H (1)
32H (2)33H (3)
34H (4)35H (5)
0000H
b15 b0
b7b8
(s1)
(s1)+1
(s1)+2
(s1)+3
(s2)
(s2)+1
"012345"
"ABCDEFGHIJK"
"A012345HIJK"
2
-1
41H (A)42H (B)
43H (C)44H (D)
45H (E)46H (F)
47H (G)48H (H)
49H (I)4AH (J)
4BH (K)00H
b15 b0
b7b8
b15 b0
b7b8
(d)
(d)+1
(d)+2
(d)+3
(d)+4
(d)+5
41H (A)30H (0)
31H (1)32H (2)
33H (3)34H (4)
35H (5)48H (H)
49H (I)4AH (J)
4BH (K)00H
(d)
(d)+1
(d)+2
(d)+3
(d)+4
(d)+5
Before execution
After execution
Position from the left end in the character
string stored in (d) and later
Number of characters from the left end in the
character string stored in (s1) and later

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Mitsubishi MELSEC iQ-F FX5 series and is the answer not in the manual?

Mitsubishi MELSEC iQ-F FX5 series Specifications

General IconGeneral
BrandMitsubishi
ModelMELSEC iQ-F FX5 series
CategoryController
LanguageEnglish

Related product manuals