Mitsubishi Electronics QSERIES Smoker User Manual


  Open as PDF
of 1204
 
7-233
RIGHT(P),LEFT(P)
1
2
3
4
6
6
7
8
7.11 Character string processing instructions
7.11.15 Extracting character string data from the right or left (RIGHT(P),LEFT(P))
(2) The NULL code (00H) indicating the end of the character string is automatically appended at
the end of the character string. Refer to 3.2.5 for the format of the character string data.
(3) If the number of characters designated by n is "0", the NULL code (00
H) will be stored at .
LEFT
(1) Stores n number of characters from the left side of the character string (the beginning of the
character string) being stored in devices starting from that whose number is designated by
, in devices starting from that whose number designated by .
When n 7
(2) The NULL code (00
H) indicating the end of the character string is automatically added to the
end of the character string.
Refer to 3.2.5 for the format of the character string data.
(3) If the number of characters designated by n is "0", the NULL code (00
H) will be stored at .
Operation Error
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and
an error code is stored into SD0.
The value of n exceeds the number of characters designated by . (Error code: 4101)
The range of n characters from exceeds the relevant device. (Error code: 4101)
D
S
D
+1
ASCII code for the 1st character
ASCII code for the 2nd character
ASCII code for the 3rd characterASCII code for the 4th character
ASCII code for the (n - 2)th character
ASCII code for the (n - 1)th character
ASCII code for the nth character
ASCII code for the (n + 1)th character
ASCII code for the last character
00
H
+1
ASCII code for the 1st characterASCII code for the 2nd character
ASCII code for the 3rd character
ASCII code for the 4th character
ASCII code for the (n - 2)th character
ASCII code for the (n - 1)th character
ASCII code for the nth character
00
H
S
S
D
b15 b8b7 b0
D
b15 b8
b7
b0
+1
41
H
(A)42
H
(B)
43
H
(C)44
H
(D)
+2
45
H
(E)46
H
(F)
ASCII code for the
7th character
"ABCDEF1"
+3
31
H
(1)00
H
+1
41
H
(A)42
H
(B)
43
H
(C)44
H
(D)
45
H
(E)46
H
(F)
31
H
(1)32
H
(2)
33
H
(3)34
H
(4)
35
H
(5)
00
H
+2
+3
+4
+5
"ABCDEF12345"
b15 b8b7 b0
S
S
S
S
S
S
D
D
D
b15 b8b7 b0
D
D
S
D