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-103
API
Applicable model
20PM
123
D
D
EDIV
P
P
Binary floating-point division
Bit device Word device
X Y M S F H KnX KnY KnM KnS T C D V Z
S
1
S
2
D
Note: Please refer to specifications for more information about device
ranges.
F represents a floating-point value. There is a decimal point in a
floating-point value.
Only the 32-bit instructions DEDIV and DEDIVP are valid.
16-bit instruction
32-bit instruction (9 steps)
DEDIV
Continuity
instruction
DEDIVP
Pulse
instruction
Flags
Ox O100
M1808 M1968 Zero flag
M1809 M1969 Borrow flag
M1810 M1970 Carry flag
M1793 M1953 Operation error flag
Please refer to the additional remark below.
Explanation
The binary floating-point value in S
1
is divided by the binary floating-point value
in S
2
, and the quotient is stored in D.
S
1
: Dividend; S
2
: Divisor; D: Quotient and remainder
If S
1
is a floating-point value, the instruction will be used to divide S
1
by the
binary floating-point value in S
2
. If S
2
is a floating-point value, the instruction
will be used to divide the binary floating-point value in S
1
by S
2
.
If the value in S
2
is 0, an operation error will occur, the instruciton will not be
executed, an operation error flag will be ON, and the error code H0E19 will
appear.
If the absolute value of an oepration result is greater than the maximum
floating-point value available, a carry flag will be ON.
If the absolute value of an oepration reuslt is less than the minimum
floating-point value available, a borrow flag will be ON.
If an operation result is 0, a zero flag will be ON.
Example 1
When X1 is ON, the binary floating-point value in (D1, D0) is divided by the
binary floating-point value in (D11, D10), and the quotient is stored in (D21,
D20).
X1
DEDIV
D0 D10 D20
Example 2
When X2 is ON, the binary floating-point value in (D1, D0) is divided by
F1234.0, and the quotient is stored in (D11, D10).
X2
DEDIV
D0
F1234.0
D10
Additional
remark
Please refer to section 5.3 for more information about performing operations
on floating-point values.

Table of Contents

Other manuals for Delta DVP-20PM

Related product manuals