EasyManua.ls Logo

Delta DVP-20PM

Delta DVP-20PM
580 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
5 Applied Instructions and Basic Usage
DVP-20PM Application Manual
5-109
API
Applicable model
20PM
129
D
D
INT
P
P
Converting a binary floating-point
value into a binary integer
Bit device Word device
X Y M S K H KnX KnY KnM KnS T C D V Z
S
D
Note: Please refer to specifications for more information about device
ranges.
Only the 32-bit instructions DINT and DINTP are valid.
16-bit instruction
32-bit instruction (5 steps)
DINT
Continuity
instruction
DINTP
Pulse
instruction
Flags
Ox O100
M1808 M1968 Zero flag
M1809 M1969 Borrow flag
M1810 M1970 Carry flag
Please refer to the explanation below.
Explanation
The binary floating-point value in S
is converted into a binary value. The
integer part of the binary value is stored in D, and the fractional part of the
binary value is dropped.
S: Source device; D: Conversion result
The instruction is the opposite of API 49 DFLT.
If a conversion result is 0, a zero flag will be ON.
If the fractional part of a conversion result is dropped, a borrow flag will be ON.
If a converesion result is not in the range of -2,147,483,648 to 2,147,483,647, a
carry flag will be ON.
Example
When X1 is ON, the binary floating-point value in (D21, D20) is converted into
a binary value. The integer part of the binary value is stored in (D31, D30), and
the fractional part of the binary value is dropped.
X1
DINT D20 D30

Table of Contents

Other manuals for Delta DVP-20PM

Related product manuals