EasyManua.ls Logo

Mitsubishi Electric MELSEC iQ-R Series - Page 764

Mitsubishi Electric MELSEC iQ-R Series
2110 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...
762
7 APPLICATION INSTRUCTIONS
7.9 Real Number Instructions
Processing details
These instructions convert the character string stored in the device number specified by (s) and later to single-precision real
number data, and store the converted real number in the device specified by (d).
The specified character string can be converted to a single-precision real number in either decimal point or exponential
format.
"20H" (space) that exists in the middle of the data is ignored.
The character string can consist of up to 24 characters. "20H" (space) and "30H" (0) are counted as one character as well.
Decimal point format
When the character string in the device specified by (s) is in decimal point format, conversion is performed as shown below.
The character string in the device specified by (s) to be converted to a single-precision real number is converted by
assuming that the six digits excluding the sign, decimal point, and exponent are effective and the seventh and subsequent
digits are discarded.
(1) Single-precision real number
(1) Rounded down.
(2) Single-precision real number
(s)
(s)+1
(s)+2
(s)+3
(s)+4
b15 b0 b7b8
00H
(d)(d)+1
ASCII code (1st character)
ASCII code (3rd character)
ASCII code (5th character)
ASCII code (sign data)
ASCII code (2nd character)
ASCII code (4th character)
ASCII code (7th character)
ASCII code (6th character)
Null character (end of string)
Single-precision real number
(s)
(s)+1
(s)+2
(s)+3
(s)+4
b15 b0 b7b8
00H
(d)(d)+1
31H (1)
30H (0)
38H (8)
2DH (-)
2EH (.)
37H (7)
32H (2) 31H (1)
0
7
8
1 2.1-
71-.08 12
(1)
(d)(d)+1
31H (1)
33H (3)
31H (1)
2DH (-)
2EH (.)
36H (6)
31H (1)
30H (0)
35H (5)
38H (8)
32H (2)
-
01-.3 615
(s)
(s)+1
(s)+2
(s)+3
(s)+4
(s)+5
(s)+6
b15 b0 b7b8
00H
1 . 3 0 1 5 6 8 1 2
(2)
(1)
20H (space)
20H (space)

Table of Contents

Other manuals for Mitsubishi Electric MELSEC iQ-R Series

Related product manuals