Mitsubishi Electric MELSEC iQ-R Series Programming Manual page 766

Hide thumbs Also See for MELSEC iQ-R Series:
Table of Contents

Advertisement

• If 2BH(+) is specified for the sign or the sign is omitted in exponential format, the converted single-precision real number is
treated as a positive value. If 2DH(-) is specified for the sign in the exponent, it is treated as a negative value.
• If 20H (space) or 30H (0) exists between digits excluding the first 0 in the character string in the device specified by (s), the
instruction performs conversion by ignoring 20H and 30H.
• If 30H (0) exists between "E" and a numerical value in the character string in exponential format, the instruction performs
conversion by ignoring 30H.
b15
∙∙∙
(s)
20H (space)
(s)+1
2EH (.)
(s)+2
34H (4)
(s)+3
33H (3)
(s)+4
2BH (+)
(s)+5
33H (3)
(s)+6
-
1 . 0 4 5 3 E + 0 3
(1) Ignored.
(2) Single-precision real number
Operation error
Error code
Description
(SD0)
2820H
00H does not exist within the range of the relevant device specified by (s).
3401H
An out-of-range value is set to (s).
• The integral part or decimal part contains a character other than 30H (0) to 39H (9).
• The specified string contains two or more 2EH (.)
• The exponent of the specified string contains a character other than 45H (E), 65H (e), 2BH (+), and 2DH (-).
• The specified string contains more than one exponent 45H (E) or 65H (e).
• The exponent in the specified string contains a numerical value consisting of three digits or more.
• The exponent of the specified string contains more than one sign 2BH (+) or 2DH (-).
• The specified string contains more than one sign 2BH (+) or 2DH (-) in the integral part of decimal point format or in the mantissa of
exponential format.
• The number of characters in the device specified by (s) and later is 0 or exceeds 24.
3403H
The data output from (d) exceeds the following range. (An overflow has occurred.)
|(d)|<2
7 APPLICATION INSTRUCTIONS
764
7.9 Real Number Instructions
b8
b7
∙∙∙
b0
2DH (-)
31H (1)
30H (0)
35H (5)
45H (E)
30H (0)
00H
(1)
128
(d)+1
(d)
-
1
.
0
4
5
3
E
+
3
(2)

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents