7 APPLICATION INSTRUCTION
7.6 Character string operation instruction
395
7
• 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.
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.
Error code
(SD0/SD8067)
Description
2820 In the corresponding device range of the device specified by (s1) and later, "00H" does not exist.
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 (s1).
A negative value is specified in (s2).
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 total of the values stored in devices specified in (s2) and (s2)+1 exceeds the number of characters of (s1).
3406 The number of characters from the position specified by (d) to (s2)+1 exceeds the corresponding device range.
41H (A)42H (B)
43H (C)44H (D)
45H (E)46H (F)
47H (G)48H (H)
45H (E)46H (F)
47H (G)48H (H)
49H (I)4AH (J)
4BH (K)00H
49H (I)4AH (J)
4BH (K)00H
"ABCDEFGHIJK"
"EFGHIJK"
b15 b0b7b8
b15 b0
b7b8
(s1)
(s1)+1
(s1)+2
(s1)+3
(s1)+4
(s1)+5
(d)
(d)+1
(d)+2
(d)+3
5
-1
(s2)
(s2)+1
5th character position
(s2)