Mitsubishi Electric M800VW Series Programming Manual page 247

Plc programming
Hide thumbs Also See for M800VW Series:
Table of Contents

Advertisement

M800V/M80V Series PLC Programming Manual (1/2)
8 Function Instructions
8.3 Data Conversion Instructions
INTD, INTDP, DINTD, DINTDP: Conversion from floating-point data to BIN data (double precision)
Setting
Bit devices
data
X
Y
M
L
F
S
D
[Instruction symbol] [Execution condition]
INTD, DINTD
INTDP, DINTDP
 Setting data
Setting data
64-bit floating-point real number data for converting to BIN value, or the first num-
S
ber of the device where floating-point real number data is stored.
D
The first number of the device to store the converted BIN value.
 Functions
INTD
 Converts the 64-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+3
S+2
S+1
S
64-bit floating-point real
number
 64-bit floating-point real numbers between -32768 to 32767 can be designated by (S+3), (S+2), (S+1), and (S).
 Stores integer values stored at (D) as BIN 16-bit values.
 After conversion, the first digit after the decimal point of the 64-bit floating-point 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".
IB-1501667-B
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
indicates the signs "INTD"/"DINTD".
226
Digit
Pointer
designa-
Index
tion
E
P
S
D
P
S
D
Data type
Real number
BIN 16/32 bits

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents