240
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]
[List Mode]
[Operation]
:
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)
:
Head number of the devices where the converted BIN value will be stored (BIN 16/32 bits)
Function
INTD
(1) Converts the 64-bit floating decimal point real number designated at into BIN 16-bit data and stores it at the device
number designated at .
(2) The range of 64-bit floating decimal point type real numbers that can be designated at +3, +2, +1 or is from
-32768 to 32767.
(3) Stores integer values stored at as BIN 16-bit values.
(4) The converted data is the value rounded 64-bit floating-point real number to the first digit after the decimal point.
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
Setting
Data
Internal Devices
R, ZR
J \
U \G
Zn
Constants
E
Other
Bit
Word
Bit
Word
––
––
––
––
––
––
––
––
Step
Instruction
Device
I
nteger
convers
i
on
I
nteger
convers
i
on
An
operat
i
on
error
occurs
s
i
nce
"
sett
i
ng
data
>
21
4
7
4
836
4
7
."
32
-
b
i
t
f
l
oat
i
ng
-
po
i
nt
rea
l
number
D21
21
4
7
4
836
4
9
.
22
D20
32
-
b
i
t
f
l
oat
i
ng
-
po
i
nt
rea
l
number
D21
-
57
4
968
.
321
D20
B
IN
va
l
ue
D1
-
57
4
968
D0
Universal
LCPU
Basic
High
performance
Process
Redundant
P
Command
Command
S
D
S
D
INTD, DINTD
INTDP, DINTDP
indicates an instruction s
y
mbol of
INTD/DINTD.
S
D
S
D
S
D
B
IN
16
b
i
t
D
+
3
6
4-
b
i
t
f
l
oat
i
ng
-
po
i
nt
rea
l
number
S
+
2
S
S
+
1
S
S
S
S
S
D