Mitsubishi Electric M800VW Series Programming Manual page 356

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
[When using exponential format]
S2
Exponential
Total number of
S2+1
Number of digits in
S2+2
decimal fraction
Sign (for integer)
S1+1
S1
32-bit floating-point real number
For example, if the total number of digits is 12, and the number of digits in decimal fraction is 4, and "-12.34567" is
designated, the following will be stored in the area starting from (D).
S2
1
S2+1
12
S2+2
4
Sign (for integer)
S1+1
S1
-12.34567
32-bit floating-point real number
 The maximum number of digits that can be designated by (S2+1) is as follows:
- When the number of digits in decimal fraction is "0": Number of digits (max.: 24) ≥ 6
- When the number of digits in decimal fraction is other than "0": Number of digits (max.: 24) ≥ (number of digits in deci-
mal fraction + 7)
 The number of digits in decimal fraction that can be designated by (S2+2) is from 0 to 7 digits. However, the number of dig-
its in decimal fraction should be less than or equal to the total number of digits minus 7.
.
E
Sign (for exponent)
Automatically added
.
-
1
2 3 4 6
E
+
0
1
Sign (for exponent)
b15
ASCII code for the
D
(total number of digits
-1)th digit
ASCII code for decimal
D+1
point (.) (2EH)
ASCII code for the
(total number of digits
D+2
-5)th digit
(fraction)
ASCII code for the
(total number of digits
D+3
-7)th digit
(fraction)
ASCII code for the sign
(exponent)
D+4
ASCII code for the
(total number of digits
D+5
-11)th digit
(exponent)
D+6
Automatically stored at the end of
character string
b15
(space)
20H
D
2EH(.)
D+1
D+2
33H(3)
36H(6)
D+3
D+4
2CH(+)
D+5
31H(1)
D+6
Automatically stored at the end of character string
335
b8b7
b0
ASCII code for the sign
ASCII code for the
(total number of digits
-2)th digit
ASCII code for the
(total number of digits
-4)th digit
(fraction)
ASCII code for the
(total number of digits
-6)th digit
(fraction)
45H (E)
ASCII code for the
(total number of digits
-10)th digit
(exponent)
00H
b8b7
b0
2DH(-)
31H(1)
32H(2)
34H(4)
45H(E)
30H(0)
00H
IB-1501667-B

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents