E L C P r o g r a m m i n g M a n u a l
F or more info rmat io n vi sit: www.e a to n.c om M N 0 5 003 00 3 E
3-422
API Mnemonic
Operands
Function
174
D MULR P
S
1
, S
2
, D
Floating Point Number Multiplication
Bit Devices
Word devices
Program Steps
Type
OP
X Y M S K H KnX
KnY
KnM KnS T
C D E
F
S
1
*
S
2
*
D
*
DMULR: 13 steps
ELC ELCB
ELCM
PB PC/PA/PH
PV
PB PH/PA
32 16
P
32 16
P
32 16
P
32 16 P 32 16 P
Operands:
S
1
:
Floating point number
multiplicand
S
2
:
Floating point number multiplicator
D:
Product
Description:
1. S
1
and S
2
are Floating point numbers
2. ELC-PB, ELCB-PB series models do not support index register E and F.
3. The DMULR operands, S
1
and S
2
can each be 2 consecutive D-register addresses or actual
floating point values (e.g. F1.2).
4. When
S
1
and S
2
use D registers, the function will be the same as
API
122 EMUL.
5. If the absolute value of the operation result
> the
maximum floating point numbers, the carry flag
M1022=On.
6. If the absolute value of operation result < the minimum floating point numbers, the borrow flag
M1021=On.
7. If the operation result equals 0, the zero flag M1020=On.
Program Example 1:
When X0= ON, multiply floating point number F1.200E+0 (enter F1.2, scientific notation F1.200E+0
will be displayed in the instruction.) by F2.200E+0 and store the result F2.640E+0 in register D10
and D11.
X0
DMULR F1.200E+0
D10
F2.200E+0
Program example 2:
When X1=On, store the result of floating point number value (D1, D0)
×
(D11, D10) into (D21, D20).
X1
DMULR
D0
D10
D20
Summary of Contents for ELC-PB
Page 1: ......
Page 5: ...For more information visit www eaton com MN05003003E iv...
Page 29: ...ELC Programming Manual For more information visit www eaton com MN05003003E 1 24 MEMO...
Page 502: ...3 Instruction Set MN05003003E For more information visit www eaton com 3 333...
Page 601: ...ELC Programming Manual For more information visit www eaton com MN05003003E 3 432...
Page 625: ...ELC Programming Manual For more information visit www eaton com MN05003003E 3 456...