238
INT, INTP, DINT, DINTP
[Operation]
(2) The following program converts the BIN 32-bit data at D20 and D21 to a 64-bit floating decimal point type real number,
and stores the result at D0 to D3.
[Ladder Mode]
[List Mode]
[Operation]
:
32-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)
*1:
Available only in multiple Universal model QCPU and LCPU
Function
INT
(1) Converts the 32-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 32-bit floating decimal point type real numbers that can be designated at +1 or is from -32768 to
32767.
(3) Stores integer values stored at as BIN 16-bit values.
(4) After conversion, the first digit after the decimal point of the real number is rounded off.
INT, INTP
Conversion from floating-point data to BIN 16-bit data
(Single precision)
DINT, DINTP
Conversion from floating-point data to BIN 32-bit data
(Single precision)
6.3.5
INT, INTP, DINT, DINTP
• Basic model QCPU: The serial number (first five digits) is
"04122" or later.
Setting
Data
Internal Devices
R, ZR
J \
U \G
Zn
Constants
E
Other
Bit
Word
Bit
Word
––
––
*1
––
––
––
Conversion to real number
64-bit floating-point
real number
15923
D20
BIN value
D1
15923
D0
D3 D2
Step
Instruction
Device
Conversion to real number
64-bit floating-point
real number
BIN value
D1
16543521
D0
D3 D2
D21
16543521
D20
Basic
Process
High
performance
Redundant Universal
LCPU
Ver.
P
Command
Command
S
D
S
D
INT, DINT
INTP, DINTP
indicates an instruction s
y
mbol of
INT/DINT.
S
D
S
D
S
D
B
IN
16
-
b
i
t
32
-
b
i
t
f
l
oat
i
ng
-
po
i
nt
rea
l
number
+
1
S
S
D
S
S
D