Mitsubishi Electronics QSERIES Smoker User Manual


  Open as PDF
of 1204
 
7-213
VAL(P),DVAL(P)
1
2
3
4
6
6
7
8
7.11 Character string processing instructions
7.11.10 Conversion from character string to BIN 16-bit or 32-bit data (VAL(P),DVAL(P))
For example, if the character string " 123.45" is designated for the area starting from ,
the operation result would be stored at and in the following manner:
(2) The total number of characters that can be designated as a character string at is from 2
to 8.
(3) From 0 to 5 characters from the character string designated at can become the decimal
fraction part.
However, this number must not exceed the total number of digits minus 3.
(4) The range of the numerical character string that can be converted to BIN value is from
32768 to 32767, ignoring a decimal point.
Numerical value character strings, excluding the sign and the decimal point, can be
designated only within the range from "30
H
" to "39
H
".
The value ignoring a decimal point means:
: " 12345.6" " 123456"
(5) The sign "20
H
" will be stored if the numerical value is positive, and the sign "2D
H
" will be
stored if it is negative.
(6) "2E
H
" is set for the decimal point.
(7) The total number of digits stored at amounts to all characters expressing numerical
values (including signs and decimal points).
The characters following the decimal point stored at +1 include the number of characters
from "2E
H
" (.) onward.
The BIN data stored at is the character string ignoring the decimal point that has been
converted to BIN data.
(8) In cases where the character string designated by contains "20
H
" (space) or "30
H
" (0)
between the sign and the first numerical value other than "0", these "20
H
" and "30
H
" are
ignored in the conversion into a BIN value.
S
D1 D2
.
7
2
1 2 3 4 5
+1
2D
H
( )31
H
(1)
32
H
(2)33
H
(3)
b15 b8b7 b0
2E
H
(.)34
H
(4)
35
H
(5)00
H
+3
+2
+1
123 4 5
S
S
S
S
D2
D1
D1
S
S
Example
D1
D1
D2
S
8
2
Total number of digits
Number of digits
in decimal fraction
BIN data
12
Ignored
3
.4
5
12
3
4
5
7
4
Total number of digits
Number of digits
in decimal fraction
BIN data
0
.
Ignored
00
12
12
Sign