Panasonic FP Series Programming Manual page 397

Hide thumbs Also See for FP Series:
Table of Contents

Advertisement

Arithmetic instructions
F39_DMULD
The function multiplies the value specified at input s1 by the value specified at input s2. The result
Description
of the function is returned at output d. The result at output 'd' lies between -2147483648 and
2147483647 (i.e. between 16#0 and 16#FFFFFFFF). All 32-bit values are treated as double integer
values.
Example value 17
Bit
15 . . 12 10 . . 8 7 . . 4 3 . . 0
d
Result value 18 if trigger is ON
Bit
15 . . 12 10 . . 8 7 . . 4 3 . . 0
d
This instruction also exists as a P instruction (for FP2/2SH, FP3/5, FP10/10SH PLC types), which
is only executed at the rising edge of the EN trigger. Select [Insert P instruction] from the
"Instructions" pane if you require a P instruction. To facilitate reuse, the instruction then appears
under "Recently used" in the pop-up menu. Press <Ctrl>+<Shift>+<v> within the programming
area to open the list of recently used elements.
Availability of F39_DMULD (see page 1325)
PLC types
Data types
Variable
Data type
s1
s2
ANY32
d
Operands
For
DWX DWY DWR
s1, s2
d
Error flags
No.
IEC address
%MX0.900.7
R9007
%MX0.900.8
R9008
%MX0.900.11
R900B
396
32-bit data multiply (result in 32 bits)
0 0 0 0
0 0 0 0
0 0 0 1
0 0 0 1
0 0 0 0
0 0 0 0
0 0 0 1
0 0 1 0
Function
multiplicand
multiplier
result
Relay
DWL
DSV
-
DWY DWR
DWL
DSV
Set
permanently
for an instant
for an instant
T/C
Register
DEV
DDT
DLD
DFL
DEV
DDT
DLD
DFL
If
 the result calculated exceeds the 32-bit
area specified at output d.
 the result calculated is 0.
Constant
dec. or hex.
-

Advertisement

Table of Contents
loading

Table of Contents