Mitsubishi Electric M800VW Series Programming Manual page 355

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:
- The sign "20H" (space) will be stored if the 32-bit floating-point real number data is positive, and the sign "2DH" (-) will
be stored if the 32-bit floating-point real number data is negative.
- 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.
0: Decimal point format
S2
8 (Total number of digits)
S2+1
2 (Number of digits in
S2+2
decimal fraction)
S1+1
S1
-1.23456
- 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.
0: Decimal point format
S2
8 (Total number of digits)
S2+1
2 (Number of digits in
S2+2
decimal fraction)
S1+1
S1
-1.23456
- If the total number of digits, excluding the sign, the decimal point and the decimal fraction part, is greater than the inte-
ger part of the 32-bit floating-point real number data, "20H" (space) will be stored between the sign and the integer part.
S2
0
S2+1
8
S2+2
2
S1+1
S1
-1.23456
- If the total digits of the integer part and the decimal fraction part of the 32-bit floating-point real number data is 7 digits or
more, the 7th digit will be rounded off and "30H" (0) will be stored from the 7th digit and after.
S2
0
S2+1
9
S2+2
6
S1+1
S1
-1.555555
- The value "00H" is automatically stored at the end of the converted character string.
IB-1501667-B
Total number of digits
-
1
.
2 3 456
Number of digits in
decimal fraction
Rounded
Total number of digits
-
.
2 3
1
Number of digits in
decimal fraction
Automatically added
Total number of digits
-
.
2 3
1
Number of digits in
decimal fraction
Filled with 20H (space)codes
Total number of digits
-
1
.
5
5
5
5 6
0
The 7th digit is rounded.
334

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents