Real Number (E); Character String (" ") - Mitsubishi L02CPU User Manual

Melsec-l series
Hide thumbs Also See for L02CPU:
Table of Contents

Advertisement

6.3

Real Number (E)

he real number (E) is a device used to specify real numbers in programs. In programs, specify it as E
E1.234).(
Page 303, Appendix 1.3)
(1) Specification range
(a) Real number setting range
• For single-precision floating-point data
128
-2
< Device
• For double-precision floating-point data
1024
-2
< Device
*1
Up to 15 digits can be entered in a programming tool.
(b) When an overflow or underflow has occurred
OPERATION ERROR (error code: 4141)
(c) When a special value
If operation is performed with input data that contains a special value, "OPERATION ERROR" (error
code:4140) occurs.
*1
The special values are -0, unnormalized numbers, nonnumeric characters, and ±∞.
(2) Specification method
Real numbers can be specified in programs by the following expressions.
• Normal expression: A numeric value can be specified as it is.
10.2345 can be specified as E10.2345.
Ex.
Ex.
• Exponential expression: A numeric value is specified by (Value) × 10
1234 is specified as E1.234 + 3.
Ex.
Ex.
*1
+ 3 represents 10
6.4

Character String (" ")

The character string is a device used to specify a character string in program. Characters enclosed in quotation marks
are specified. Alphabets are case-sensitive. A string from the specified character to the NUL code (00
Note that, however, up to 32 characters can be specified for an instruction using a character string, such as $MOV.
276
-126
-126
-2
, 0, 2
Device < 2
*1
-1022
-1022
-2
, 0, 2
Device < 2
Overflow
*1
is input
*1
3
in E1.234 + 3.
128
1024
Turned to 0 without any error
n
.
(example:
Underflow
) is one unit.
H

Advertisement

Table of Contents
loading

This manual is also suitable for:

L26cpu-bt

Table of Contents