EasyManua.ls Logo

Mitsubishi Electric MELSEC-Q/L - Page 564

Mitsubishi Electric MELSEC-Q/L
1084 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
Loading...
562
7 APPLICATION INSTRUCTIONS
7.11 Character String Processing Instructions
When using decimal point format
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 (D) in the following manner:
The total number of digits that can be designated by (S2)+1 is as shown below:
The number of digits of decimal fraction part that can be designated by (S2)+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.
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)
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
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

Table of Contents

Related product manuals