Mitsubishi Electric M800VW Series Programming Manual page 357

Plc programming
Hide thumbs Also See for M800VW Series:
Table of Contents

Advertisement

M800V/M80V Series PLC Programming Manual (1/2)
8 Function Instructions
8.10 Character String Processing Instructions
 The converted character string data is stored at the area starting from the device number (D) as indicated below:
- "20H" (space) will be stored in the sign for the integer if the 32-bit floating-point real number data is positive, and "2DH"
(-) will be stored in the sign for the integer if the 32-bit floating-point real number data is negative.
- The integer part is fixed to 1 digit. "20H" (space) will be stored between the integer and the sign.
S2
1
S2+1
12
S2+2
4
S1+1
S1
-12.34567
- If the decimal fraction part of the 32-bit floating-point real number data is outside the range of the number of digits in
decimal fraction, the lower decimal values will be rounded off.
S2
1
S2+1
12
4
S2+2
S1+1
S1
-12.34567
- If the number of digits in decimal fraction has been set to a value other than "0", "2EH" (.) will automatically be stored at
the position before the first of the designated number of digits in decimal fraction. If the number of digits in decimal frac-
tion is "0", the ASCII code "2EH" (.) will not be stored.
S2
1
S2+1
12
S2+2
4
S1+1
S1
-12.34567
- "2CH" (+) will be stored in the sign for the exponent if the exponent is a positive value, and "2DH" (-) will be stored if the
exponent is a negative value.
- The exponent part is fixed to 2 digits. If the exponent part is only 1 digit, "30H" (0) will be stored between the sign and
the exponent part of the number.
S2
1
S2+1
12
4
S2+2
S1+1
S1
-12.34567
IB-1501667-B
Total number of digits (12)
Fixed to 1 digit
.
-
1
2 3 4 6
E
+
0
1
Filled with 20H (space)codes
Total number of digits (12)
.
2 3 4 6
-
1
6 7
E
+
0
Number of digits in
decimal fraction (4)
These are cut
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 30H
(0)code
336
1

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents