EasyManuals Logo

Mitsubishi MELSEC-Q/L User Manual

Mitsubishi MELSEC-Q/L
850 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #475 background imageLoading...
Page #475 background image
473
ESTR, ESTRP
1
2
3
4
4
6
7
8
7.11 Character string processing instructions
7.11.11 ESTR, ESTRP
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 -1.23456, the operation result would be stored in the area starting from in the following manner:
(a) The total number of digits that can be designated by +1 is as shown below:
When the number of decimal fraction digits is "0"
.........................Number of digits (max.: 24) 2
When the number of decimal fraction digits is other than "0"
.........................Number of digits (max.: 24) (Number of decimal fraction digits + 3)
(b) The number of digits of decimal fraction part that can be designated by +2 is from 0 to 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 as indicated below:
1) The sign "20
H
" (space) will be stored if the 32-bit floating decimal point type real number is positive, and the sign
"2D
H
" (minus sign) will be stored if it is negative.
2) If the decimal fraction part of a 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.
When using decimal point format
ASCII code for the sign
b15 b8 b7 b0
Total number of digits
Number of digits in decimal fraction
+2
Sign
+1
00
H
Automatically stored at the
end of character sting
+2
+3
+4
Decimal point format
+1
32-bit floating-point real number
+1
ASCII code for the
(total number of digits -2)
th digit
ASCII code for
decimal point (.)
(2E
H
)
ASCII code for the
(total number of digits -6)
th digit
ASCII code for the
(total number of digits -1)
th digit
ASCII code for the
(total number of digits -3)
th digit
ASCII code for the
(total number of digits -5)
th digit
ASCII code for the
(total number of digits -7)
th digit
.
S2
D
S2
S2
S1S1
D
D
D
D
D
8
3
+2
1
-
Sign
Automatically stored at the end of character sting
0
+1
32-bit floating-point real number
+1
b15 b8
b7
b0
00H
+1
+2
+3
+4
.235
-1. 2
3
4
56
20
H (space)
31
H (1)
32
H (2)
35
H (5)
2D
H
(-)
20
H (space)
2E
H (.)
33
H (3)
S2
S1
D
S1
S2
S2
D
D
D
D
S2
S2
D
8 (Total number of digits)
2 (Number of digits in decimal fraction)
+2
Rounded off
Number of digits in
decimal fraction
0: Decimal point format
+1
+1
1-.23
-1. 2
3
4
56
Total number of digits
4 56
S2
S1
S2
S2
S1

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Mitsubishi MELSEC-Q/L and is the answer not in the manual?

Mitsubishi MELSEC-Q/L Specifications

General IconGeneral
BrandMitsubishi
ModelMELSEC-Q/L
CategoryController
LanguageEnglish

Related product manuals