6-80
6.3 Data Conversion Instructions
6.3.6 Floating-point data to 16-bit/32-bit BIN data conversion (double precision)
INTD, DINTD
6.3.6
Floating-point data to 16-bit/32-bit BIN data conversion
(double precision)
INTD, DINTD
F
unct
i
on
INTD(P)
(1) Converts the 64-bit floating-point real number specified for
to 16-bit BIN data and stores
the result to the device specified for
.
(2) 64-bit floating-point real numbers between 32768.0 and 32767.0 can be specified for
+
3,
+ 2,
+ 1 or
.
(3) The integer value stored in
is stored as 16-bit BIN values.
(4) After conversion, the first digit from the decimal point of the 64-bit floating-point real number
is rounded off.
INTD(P)
DINTD(P)
P: Executing condition
:
indicates any of the following
instructions.
INTD
INTDP
DINTD
DINTDP
Input argument,
EN:
Executing condition
: Bit
s:
64-bit floating-point real number data to be converted to BIN
value
: Double-precision real
Output argument,
ENO:
Execution result
: Bit
d:
Converted BIN value
: ANY16/32
Setting
data
Internal device
R, ZR
J
\
U
\G
Zn
Constant
E
Others
Bit
Word
Bit
Word
−
−
−
−
−
−
−
−
U
n
i
versa
l
UD
Hi
g
h
Per
f
ormance
Structured ladder
ST
INTD
EN
ENO
s
d
INTD
(EN, s, d);
ENO:=
s
d
s
d
BIN
16
b
its
6
4-
b
it
f
loating-
p
oint
real num
b
er
d
s
s
s
s
s
d
Summary of Contents for MELSEC Q Series
Page 1: ...Structured Programming Manual Mitsubishi Programmable Controller QCPU Common Instructions ...
Page 2: ......
Page 14: ...A 12 MEMO ...
Page 340: ...6 178 MEMO MTR ...
Page 708: ...7 368 MEMO ...
Page 776: ...8 68 MEMO ...
Page 796: ...9 20 MEMO ...
Page 804: ...App 8 MEMO ...
Page 812: ...Index 8 MEMO ...
Page 815: ......