5
Categories and Use of Basic Application Instructions
DVP-PM Operation Instruction
5-124
API Mnemonic
Operands
Function
174
D MULR P
Floating point multiplication
Controllers
20PM
10PM
Bit Devices
Word devices
Program Steps
Type
OP
X Y M S F H KnX
KnY
KnM KnS T C D E F
S
1
*
S
2
*
D
*
DMULR, DMULRP: 13 steps
Operands:
S
1
:
Floating point multiplicand
S
2
:
Floating point multiplicator
D:
Product
Explanations:
1. DMULR instruction multiplies
S
1
with
S
2
and stores the operation result in
D
.
2. In DMULR instruction, floating point values can be directly entered into
S
1
and
S
2
.
3. In DMULR 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 DMULR instruction is the same as API 122 EMUL
instruction.
5.
S
1
and
S
2
can designate the same register. In this case, if the instruction is specified as “continuous execution
instruction” (generally DMULRP instruction) and the drive contact is ON, the register will be multiplied once in
every scan
6. Flags:
OX
O100
Zero flag
M1808
M1968
Borrow flag
M1809
M1969
Carry flag
M1810
M1970
If absolute value of the result exceeds max floating point value, carry flag will be ON.
If absolute value of the result is less than min. floating point value, borrow flag will be ON.
If the conversion result is 0, zero flag will be ON
Program Example 1:
When X0 = ON, multiply 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 F2.640E+0 in register D10 and D11
.
X0
DMULR F1.200E+0
D10
F2.200E+0
Program example 2:
When X1= ON, multiply the floating point value (D1, D0) with (D11, D10) and store the result in (D21, D20).
X1
D0
D10
D20
DMULR
Summary of Contents for DVP-10PM
Page 1: ......
Page 45: ...2 Hardware Specifications and Wiring DVP PM Application Manual 2 30 MEMO...
Page 125: ...3 Functions of Devices in DVP PM DVP PM Application Manual 3 80 MEMO...
Page 341: ...8 Application Examples DVP PM Application Manual 8 2 Trajectory 3 Trajectory 4...
Page 427: ...9 Electrical CAM DVP PM Application Manual 9 74...
Page 437: ...10 Encrypting User Program DVP PM Application Manual 10 10 MEMO...
Page 458: ...11 G code Application DVP PM Application Manual 11 21 B O100 main program...
Page 561: ...14 Appendix DVP PM Application Manual 14 4 MEMO...