Mitsubishi MELSEC Q Series Programming Manual page 592

Common instruction 1/2
Hide thumbs Also See for MELSEC Q Series:
Table of Contents

Advertisement

ESTR(P)
For example, in a case where there are 8 digits in total, with 3 digits in the decimal fraction
part, and the value designated is
starting from
S2
S2
+1
S2
+2
S1
+1
-1. 2 3 4 5 6
32-bit floating-point real number
(a) The total number of digits that can be designated by
When the number of decimal fraction digits is "0"
When the number of decimal fraction digits is other than "0"
(b) The number of digits of decimal fraction part that can be designated by
7.
However, the number of digits following the decimal point must be smaller than or equal
to the total number of digits minus 3.
(c) The converted character string data is stored at the area starting from the device
number
1) The sign "20
2) If the decimal fraction part of a 32-bit floating point real number data is out of the
3) If the number of digits following the decimal point has been set at any value other
7-218
in the following manner:
D
0
8
3
-
1
. 2 3 5
Sign
S1
.................... Number of digits (max.: 24)
.................... Number of digits (max.: 24)
as indicated below:
D
" (space) will be stored if the 32-bit floating decimal point type real
H
number is positive, and the sign "2D
range of the digits of decimal fraction part, the lower decimal values will be rounded
off.
S2
0: Decimal point format
S2
8 (Total number of digits)
+1
S2
2 (Number of digits in decimal fraction)
+2
S1
S1
+1
-1. 2 3 4 5 6
than "0", "2E
" (.) will automatically be stored at the position before the first of the
H
specified number of digits.
S2
0: Decimal point format
S2
8 (Total number of digits)
+1
S2
2 (Number of digits in decimal fraction)
+2
S1
+1
-1 . 2 3 4 5 6
If the number of digits in the decimal fraction part is "0", the ASCII code "2E
not be stored.
1.23456, the operation result would be stored in the area
b15
20
(space)
D
H
D
31
(1)
+1
H
32
(2)
D
+2
H
35
(5)
D
+3
H
D
+4
Automatically stored at the end of character sting
S2
2
(Number of decimal fraction digits + 3)
" (minus sign) will be stored if it is negative.
H
Total number of digits
-
Number of digits in
decimal fraction
Total number of digits
-
S1
b8 b7
b0
2D
(-)
H
20
(space)
H
2E
(.)
H
33
(3)
H
00
H
+1 is as shown below:
+2 is from 0 to
S2
1
. 2 3
4 5 6
Rounded off
1
. 2 3
Number of digits
in decimal fraction
Automatically added
" (.) will
H

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents