Mitsubishi Electronics QSERIES Smoker User Manual


  Open as PDF
of 1204
 
7-207
STR(P),DSTR(P)
1
2
3
4
6
6
7
8
7.11 Character string processing instructions
7.11.9 Conversion from BIN 16-bit or 32-bit to character string (STR(P),DSTR(P))
(2) The total number of digits that can be designated by is from 2 to 8.
(3) The number of digits that can be designated by +1 as a part of the decimal fraction is from
0 to 5.
However, the number of digits following the decimal point must be smaller than or equal to
the total number of digits minus 3.
(4) BIN data in the range between 32768 and 32767 can be designated at .
(5) After conversion, character string data is stored at the device number or later device
number as indicated below:
(a) The sign "20
H
" (space) will be stored if the BIN data is positive, and the sign "2D
H
"
(minus sign) will be stored if it is negative.
(b) If the setting for the number of digits after the decimal fraction is anything 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.
(c) If the total number of digits following the decimal fraction is greater than the number of
BIN data digits, a zero will be added automatically and the number converted by shifting
to the right, so that it would become "0. ".
(d) If the total number of digits excluding the sign and the decimal point is greater than the
number of BIN data digits, "20
H" (space) will be stored between the sign and the
numeric value.
If the number of BIN digits is greater, an error will be returned.
(e) The value "00
H" is automatically stored at the end of the converted character string.
S1
S1
S2
D
6
2
Total number of digits
Number of digits
in decimal fraction
BIN data
12 34
Number of digits in decimal fraction
1234
Automatically added
.
6
3
0
.1
2
Automatically added
12
0
Total number of digits
Number of digits
in decimal fraction
BIN data
8
1
1
2
Filled with 20H (space)
.
3
12
3
Total number of digits
Number of digits
in decimal fraction
BIN data