Mitsubishi Electronics QSERIES Smoker User Manual


  Open as PDF
of 1204
 
7-221
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))
(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 + 7)
(b) The number of digits of dicimal fraction part that can be designated by +2 is from 0 to
7.
However, the number of digits in the decimal fraction portion should be equal to or less
than the total number of digits minus 7.
(c) The converted character string data is stored at the area starting from the device
number as indicated below:
1) If the 32-bit floating decimal point type real number data is positive in value, the sign
before the integer will be stored as ASCII code "20
H" (space), and if it is a negative
value, the sign will be stored as "2D
H" ( ).
2) The integer portion is fixed to one digit.
20
H (space) will be stored between the integer and the sign.
3) If the decimal fraction part of the 32-bit floating point type real number is out of the
range of the digits of the decimal fraction part, the lower decimal values will be
rounded off.
4) If the number of digits of the decimal fraction part 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 of the number is "0", the ASCII
code "2E
H" (.) will not be stored.
S2
S2
D
12
4
+2
Filled with 20
H (space) codes
1
+1
+1
2
3
4
Fixed to 1 digit
6 E
+
0
11-
.
Total number of digits (12)
-1 2.
3
4
56
7
S2
S1
S2
S2
S1
12
4
+2
These are cut
1
+1
+1
2
3
4
Total number of digits (12)
66
7 E
+1
-
.
-1 2
.
3 4567
0
1
Number of digits
in decimal fraction (4)
S2
S1 S1
S2
S2
12
4
+2
Automatically added
1
+1
+1
2
3
4
Total number of digits (12)
6 E
+1
-
.
-1 2
.
3 4567
0
1
Number of digits
in decimal fraction (4)
S2
S1 S1
S2
S2