EasyManuals Logo
Home>Delta>Controller>DVP-SS2

Delta DVP-SS2 User Manual

Delta DVP-SS2
1006 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
Page #557 background imageLoading...
Page #557 background image
DVP-ES2/EX2/EC5/SS2/SA2/SX2/SE&TP Operation Manual - Programming
3-436
API
Mnemonic Operands Function
Controllers
ES2/EX2/
EC5
SS2
SA2
SE
SX2
175 D
DIVR P
Floating point division
Type
OP
Bit Devices Word devices Program Steps
X Y M S K H KnX
KnY
KnM
KnS
T C D E F
DDIVR: 13 steps
S
1
*
S
2
*
D
*
PULSE
16-bit
32-bit
ES2/EX2/
EC5
SS2
SA2
SE
SX2
ES2/EX2/
EC5
SS2
SA2
SE
SX2
ES2/EX2/
EC5
SS2
SA2
SE
SX2
Operands:
S
1
: Floating point n dividend S
2
: Floating point divisor D: Quotient
Explanations:
1. DIVR instruction divides S
1
by S
2
and stores the operation result in D
2. In DIVR instruction, floating point values can be directly entered into S
1
and S
2.
3. In DDIVR instruction, floating point values (e.g. F1.2) can be either entered directly into S
1
and
S
2
or stored in data registers for operation.
4. When S
1
and S
2
is specified as data registers, the function of DDIVR instruction is the same as
API 123 EDIV instruction.
5. If S
2
= 0, operation error occurs and M1067 = ON, M1068 = ON. D1067 stores the error code
0E19 (HEX).
6. Flags: M1020 (Zero flag), M1021 (Borrow flag) and M1022 (Carry flag)
If absolute value of the result exceeds max floating point value, carry flag M1022 = ON.
If absolute value of the result is less than min. floating point value, borrow flag M1021 = ON.
If the conversion result is 0, zero flag M1020 = ON.
Program example 1:
When X0 = ON, divide floating point number F1.200E+0 (Input F1.2, and scientific notation
F1.200E+0 will be displayed on ladder diagram. Users can set monitoring data format as float on the
function View) with F2.200E+0 and store the obtained result F0.545E+0 in D10 and D11.
X0
DDIVR F1.200E+0
D10
F2.200E+0
Program example 2:
When X1= ON, divide the floating point number value (D1, D0) by (D11, D10) and store the obtained
quotient into registers (D21, D20).
X1
DDIVR
D0 D10 D20

Table of Contents

Other manuals for Delta DVP-SS2

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Delta DVP-SS2 and is the answer not in the manual?

Delta DVP-SS2 Specifications

General IconGeneral
BrandDelta
ModelDVP-SS2
CategoryController
LanguageEnglish

Related product manuals