EasyManua.ls Logo

Mitsubishi Electric MELSEC iQ-R Series - Page 395

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...
6 BASIC INSTRUCTIONS
6.6 Data Conversion Instructions
393
6
Processing details
These instructions convert the single-precision real number in the device specified by (s) to 32-bit unsigned binary data,
and store the converted data in the device specified by (d).
After conversion, the first digit after the decimal point of the single-precision real number is rounded off.
When an input value is set using the engineering tool, a rounding error may occur. For the precautions on setting an input
value using the engineering tool, refer to the following.
Page 49 Precautions
The following program example converts, when M0 turns on, the single-precision real number stored in D0 and D1 to 32-bit
unsigned binary data, and stores the converted data in D100 and D101.
Operation error
Error code
(SD0)
Description
3401H The single-precision real number in the device specified by (s) is out of the range, 0 to 4294967295.
3402H An unusual number is set to (s).
The single-precision real number set to (s) is not within the following range:
0, 2
-126
|(s)|<2
128
The value set to a device or label is -0, a subnormal number, NaN (not a number), or .
(d)
(s)
b31 b16
(123456.7)
205AH
47F1H
b15 b0
D1, D0
b31 b16
(123457)
E241H
0001H
b15 b0
D101, D100
   
SM402
(s)
(d)
M0
EMOVP E123456.7 D0
FLT2UDINT D0 D100

Table of Contents

Other manuals for Mitsubishi Electric MELSEC iQ-R Series

Related product manuals