6-86
INTD(P),DINTD(P)
6.3.6 Conversion from floating decimal point data to BIN16- and
32-bit data (Double precision) (INTD(P),DINTD(P))
INTD(P),DINTD(P)
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.
DINTD
(1) Converts 64-bit floating decimal point type real number designated by to BIN 32-bit data,
and stores the result at the device number designated by .
: 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)
Setting
Data
Internal Devices
R, ZR
J\
U\G
Zn
Constants
E
Other
Bit Word Bit Word
–– –– –– ––
–– –– –– ––
Universal
Basic
Process
High
performance
Redundant
P
Command
Command
S D
S D
INTD, DINTD
INTDP, DINTDP
indicates an instruction symbol of INTD/DINTD.
S
D
S
D
S
D
BIN 16 bit
D
+3
64-bit floating-point
real number
S
+2
S S
+1
S
S S S S
D
S
D
BIN 32 bit
Lower 16 bitsUpper 16 bits
+1
D D
+3
64-bit floating-point
real number
S
+2
S S
+1
S