M800V/M80V Series PLC Programming Manual (1/2)
8 Function Instructions
8.3 Data Conversion Instructions
INT, INTP, DINT, DINTP: Conversion from floating-point data to BIN data (single precision)
Setting
Bit devices
data
X
Y
M
L
F
S
D
○
○
○
○
○
△ : This is not available with ST.
[Instruction symbol] [Execution condition]
INT, DINT
INTP, DINTP
Setting data
Setting data
32-bit floating-point data for converting to BIN value, or the first number of the de-
S
vice where floating-point data is stored.
D
The first number of the device to store the converted BIN value.
Functions
INT
Converts the 32-bit floating-point real number designated by (S) to BIN 16-bit data, and stores the result at the device num-
ber designated by (D).
S+1
S
32-bit floating-point real
number
32-bit floating-point real numbers between -32768 to 32767 can be designated by (S) and (S+1).
Stores integer values stored at (D) as BIN 16-bit values.
After conversion, the first digit after the decimal point of the real number is rounded off.
When setting input values from programming tools, rounding errors may occur.
For precautions when setting input values from programming tools, refer to "6.3.4 Single/Double-Precision Real Number
Data".
Usable devices
B SB
T SM V
T
C
○
○
○
○
○
○
○
Command
Command
Meaning
D
BIN 16 bits
Con-
Word devices
stant
D
R/ZR W SW SD
Z
○
○
○
○
○
△
○
○
○
○
○
○
223
Digit
Pointer
designa-
Index
tion
E
P
○
○
○
indicates the signs "INT"/"DINT".
S
D
P
S
D
Data type
Real number
BIN 16/32 bits
IB-1501667-B