Mitsubishi Electronics QSERIES Smoker User Manual


  Open as PDF
of 1204
 
7-219
ESTR(P)
1
2
3
4
6
6
7
8
7.11 Character string processing instructions
7.11.11 Conversion from floating decimal point to character string data (ESTR(P))
For example, in a case where there are 8 digits in total, with 3 digits in the decimal fraction
part, and the value designated is 1.23456, the operation result would be stored in the area
starting from in the following manner:
(a) The total number of digits that can be designated by +1 is as shown below:
When the number of decimal fraction digits is "0"
.................... Number of digits (max.: 24) 2
When the number of decimal fraction digits is other than "0"
.................... Number of digits (max.: 24) (Number of decimal fraction digits + 3)
(b) The number of digits of decimal fraction part that can be designated by +2 is from 0 to
7.
However, the number of digits following the decimal point must be smaller than or equal
to the total number of digits minus 3.
(c) The converted character string data is stored at the area starting from the device
number as indicated below:
1) The sign "20
H
" (space) will be stored if the 32-bit floating decimal point type real
number is positive, and the sign "2D
H
" (minus sign) will be stored if it is negative.
2) If the decimal fraction part of a 32-bit floating point real number data is out of the
range of the digits of decimal fraction part, the lower decimal values will be rounded
off.
3) If the number of digits following the decimal point has been set at any value other
than "0", "2E
H
" (.) will automatically be stored at the position before the first of the
specified number of digits.
If the number of digits in the decimal fraction part is "0", the ASCII code "2E
H
" (.) will
not be stored.
D
8
3
+2
1
-
Sign
Automatically stored at the end of character sting
0
+1
32-bit floating-point real number
+1
b15 b8
b7
b0
00H
+1
+2
+3
+4
.235
-1. 2
3
4
56
20
H (space)
31
H (1)
32
H (2)
35
H (5)
2D
H
(-)
20
H (space)
2E
H (.)
33
H (3)
S2
S1
D
S1
S2
S2
D
D
D
D
S2
S2
D
8 (Total number of digits)
2 (Number of digits in decimal fraction)
+2
Rounded off
Number of digits in
decimal fraction
0: Decimal point format
+1
+1
1-.23
-1. 2
3
4
56
Total number of digits
4 56
S2
S1
S2
S2
S1
8 (Total number of digits)
2 (Number of digits in dec imal fraction)
+2
Automatically added
Number of digits
in decimal fraction
0: Decimal point format
+1
+1
1-.23
-1 . 2
3
4
56
Total number of digits
S2
S1
S2
S2
S1