EasyManuals Logo

Mitsubishi MELSEC Q Series Programming Manual

Mitsubishi MELSEC Q Series
1296 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 #595 background imageLoading...
Page #595 background image
7-221
ESTR(P)
1
2
3
4
6
6
7
8
7.11 Character string processing instructions
7.11.11 Conversion from floating decimal point to character string data (ESTR(P))
5) The ASCII code "2CH" (+) will be stored as the sign for the exponent portion of the
value if the exponent is positive in value, and the code "2D
H" ( ) will be stored if the
exponent is a negative value.
6) The exponent portion is fixed at 2 digits.
If the exponent portion is only 1 digit, the ASCII code "30
H" (0) will be stored
between the sign and the exponent portion of the number.
7) The value "00
H" is automatically stored at the end of the converted character string.
Operation Error
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and
an error code is stored into SD0.
• The value is not within the range indicated below: (Error code: 4100)
0, 2
-126
| | 2
128
• The format designated by was neither 0 nor 1. (Error code: 4100)
• The total number of digits designated by + 1 is outside the ranges shown below.
(Error code: 4100)
When using decimal point format
When the number of decimal fraction digits is "0"
....................... Total number of digits 2
When the number of decimal fraction digits is other than "0"
....................... Total number of digits (Number of decimal fraction digits + 3)
When using exponent format
When the number of decimal fraction digits is "0"
....................... Total number of digits 6
When the number of decimal fraction digits is other than "0"
....................... Total number of digits (Number of decimal fraction digits + 7)
• The number of digits designated for the decimal fraction portion of the value by +2 was
outside the ranges indicated below: (Error code: 4100)
When using the decimal point format
....................... Number of decimal fraction digits (Total number of digits 3)
When using the exponent format
....................... Number of decimal fraction digits (Total number of digits 7)
• The value whose total digits exceeds "24" is specified. (Error code: 4100)
• The device range to store the character string designated by exceeds the relevant
device range. (Error code: 4101)
• The device specified by exceeds the range of the corresponding device.
(For the Universal model QCPU, LCPU.) (Error code: 4101)
• The value of the specified device is 0, unnormalized number, nonnumeric, and ± .
(For the Universal model QCPU, LCPU) (Error code: 4140)
12
4
+2
Filled with
30
H (0) code
1
+1
+1
2
3
4
Fixed to 2 digits
6
E
+
0
11-
.
Total number of digits (12)
-1 2
.
3
4
56
7
S2
S1
S2
S2
S1
S1
S1
S2
S2
S2
D
S2

Table of Contents

Other manuals for Mitsubishi MELSEC Q Series

Questions and Answers:

Question and Answer IconNeed help?

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

Mitsubishi MELSEC Q Series Specifications

General IconGeneral
BrandMitsubishi
ModelMELSEC Q Series
CategoryController
LanguageEnglish

Related product manuals