(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.