(Double Precision) - Mitsubishi MELSEC-Q/L Programming Manual

Table of Contents

Advertisement

INTD, INTDP, DINTD, DINTDP
(2) The following program converts the 32-bit floating decimal point type real number at D20 and D21 to BIN 32-bit data and
stores the result at D0 and D1.
[Ladder Mode]
[Operation]
Integer
D21
D20
conversion
-574968.321
32-bit floating-point
real number
Integer
D21
D20
conversion
2147483649.22
32-bit floating-point
real number
6.3.6
INTD, INTDP
Conversion from floating-point data to BIN 16-bit data

(Double precision)

DINTD, DINTDP
Conversion from floating-point data to BIN 32-bit data
(Double precision)
6.3.6
INTD, INTDP, DINTD, DINTDP
INTD, DINTD
INTDP, DINTDP
: 64-bit floating decimal point data to be converted to BIN value or head number of the devices where the floating decimal point data is stored (real number)
S
: Head number of the devices where the converted BIN value will be stored (BIN 16/32 bits)
D
Internal Devices
Setting
Data
Bit
Word
––
S
––
D
Function
INTD
(1) Converts the 64-bit floating decimal point real number designated at
number designated at
D
(2) The range of 64-bit floating decimal point type real numbers that can be designated at
-32768 to 32767.
(3) Stores integer values stored at
(4) The converted data is the value rounded 64-bit floating-point real number to the first digit after the decimal point.
240
[List Mode]
Step
D1
D0
-574968
BIN value
An operation error occurs
since "setting data > 2147483647."
Command
Command
J
\
R, ZR
Bit
.
S
+3
S
+2
S
+1
64-bit floating-point
real number
as BIN 16-bit values.
D
Device
Instruction
High
Basic
performance
indicates an instruction symbol of
P
U
\G
Word
––
––
into BIN 16-bit data and stores it at the device
S
D
S
BIN 16 bit
Process
Redundant
Universal
LCPU
INTD/DINTD.
S
D
S
D
Constants
Zn
Other
E
––
––
––
––
+3, +2, +1 or
is from
S
S
S
S

Advertisement

Table of Contents
loading

Table of Contents