Mitsubishi Electric MELSEC-Q/L Programming Manual page 567

Hide thumbs Also See for MELSEC-Q/L:
Table of Contents

Advertisement

• The converted character string data is stored at the area starting from the device number (D) as indicated below:
• 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 "20H" (space), and if it is
a negative value, the sign will be stored as "2DH" (-).
• The integer portion is fixed to one digit. 20H (space) will be stored between the integer and the sign.
1
S2
12
S2
+1
4
S2
+2
S1
+1
S1
-1 2. 3
4 5 6 7
• If the decimal fraction part of the 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.
S2
1
12
S2
+1
4
S2
+2
S1
+1
S1
-1 2. 3 4 5 6 7
• If the number of digits of the decimal fraction part has been set at any value other than "0", "2EH" (.) 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 "2EH" (.) will not be stored.
1
S2
12
+1
S2
4
S2
+2
+1
S1
S1
-1 2. 3 4 5 6 7
• The ASCII code "2CH" (+) will be stored as the sign for the exponent portion of the value if the exponent is positive in value, and the code "2DH" (-) will be
stored if the exponent is a negative value.
• The exponent portion is fixed at 2 digits. If the exponent portion is only 1 digit, the ASCII code "30H" (0) will be stored between the sign and the exponent
portion of the number.
S2
1
S2
12
+1
4
+2
S2
+1
S1
S1
-1 2 . 3
4 5 6 7
• The value "00H" is automatically stored at the end of the converted character string.
Total number of digits (12)
Fixed to 1 digit
.
-
1
2 3 4
6 E + 0 1
Filled with 20
(space) codes
H
Total number of digits (12)
-
1
.
2 3 4
6 6 7 E +
Number of digits
in decimal fraction (4)
Total number of digits (12)
-
1
.
2 3 4
6 E +
0 1
Number of digits
in decimal fraction (4)
Automatically added
Total number of digits (12)
Fixed to 2 digits
-
1
.
2 3 4
6 E + 0 1
Filled with
30
H
0 1
These are cut
(0) code
7.11 Character String Processing Instructions
7 APPLICATION INSTRUCTIONS
7
565

Advertisement

Table of Contents
loading

Table of Contents