EasyManuals Logo

Mitsubishi MELSEC iQ-F FX5 series User Manual

Mitsubishi MELSEC iQ-F FX5 series
888 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 #388 background imageLoading...
Page #388 background image
386
7 APPLICATION INSTRUCTION
7.6 Character string operation instruction
• For example, when the total number of digits is "12", the number of digits of the decimal part is "4", and "-12.34567" is
specified, data is stored in (d) and later as shown below:
• The converted character string data are stored in the device areas specified by (d) and later as shown below.
• As sign data of the integral part, "20H" (space) is stored if the single-precision real number is positive, and "2DH" (-) is stored if the data is negative.
• The integer part is fixed to 1 digit. "20H (space)" is stored between the integer part and the sign.
• If the decimal part of the single-precision real number data cannot be accommodated in the number of digits of the decimal part, lower digits of the
decimal part are rounded.
• If the number of digits in the decimal part is set to other than 0, "2EH" (.) is automatically stored at the position before the specified number of digits. If
the number of digits in the decimal part is 0, "2EH" (.) is not stored.
• For the sign of the exponent part, "2BH (+)" is stored when the exponent is positive, and "2DH (-)" is stored when the exponent is negative.
• The exponent part is fixed to 2 digits. When the exponent part is 1 digit, "30H (0)" is stored after the sign of the exponent part.
• The value "00H" is automatically stored at the end of the converted character string.
b15 b8 b7 b0
0000H
(d)+4
(d)+3
(d)+6
(d)+5
(d)+2
(d)+1
(d)
E
45H (E)
(s2)+1
(s2)+2
(s2)
1
12
4
1-.23456
(s1)+1 (s1)
7
1-.2346
+ 10
2DH(-)
31H(1) 2EH(.)
33H(3) 32H(2)
34H(4) 36H(6)
2BH(+)
31H(1) 30H(0)
Total number of digits
"0000H" is automatically stored at the end of the character string.
Single-precision real number
Sign (integer part) Sign (exponent part)
20H (space)
Fixed to 2 digit
Number of digits
of decimal part
12
4
1
2
3
4
6 E
+
0
11-
.
1-2.
3
4
56
7
(s2)+1
(s2)+2
(s2)
(s1)+1 (s1)
Fixed to 1 digit
Total number of digits
"20H (space)" is stored.
12
4
1
1-2.
3
4
56
7
(s2)+1
(s2)+2
(s2)
(s1)+1 (s1)
2
3
4
667E
+1
.
0
1
-
Total number of digits
Number of digits of decimal part These values are rounded down.
12
4
1
1-2.
3
4
56
7
(s2)+1
(s2)+2
(s2)
(s1)+1 (s1)
2
3
4
6 E
+
0
11-
.
Total number of digits
Number of digits of decimal part
Added automatically
12
4
1
2
3
4
6 E
+
0
11-
.
1-2.
3
4
56
7
(s2)+1
(s2)+2
(s2)
(s1)+1 (s1)
Total number of digits
"30H (0)" is stored.
Fixed to 2 digit

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Mitsubishi MELSEC iQ-F FX5 series and is the answer not in the manual?

Mitsubishi MELSEC iQ-F FX5 series Specifications

General IconGeneral
BrandMitsubishi
ModelMELSEC iQ-F FX5 series
CategoryController
LanguageEnglish

Related product manuals