Download Print this page

Multiplying 32-Bit Binary Data - Mitsubishi Electric MELSEC iQ-F FX5 Programming Manual

Instructions, standard functions/function blocks
Hide thumbs Also See for MELSEC iQ-F FX5:

Advertisement

Multiplying 32-bit binary data

D*(P)(_U) instruction and DMUL(P)(_U) instruction can be used for multiplication of 32-bit binary data.
D*(P)(_U)
These instructions multiply the 32-bit binary data in the device specified by (s1) and the 32-bit binary data in the device
specified by (s2), and store the result in the device specified by (d).
Ladder diagram
(s1)
(s2)
(d)
FBD/LD
EN
ENO
s1
d
s2
("DMULTI", "DMULTIP", "DMULTI_U", "DMULTIP_U" enters .)
*1 Supported by engineering tool version "1.035M" and later.
Setting data
■Descriptions, ranges, and data types
Operand
Description
(s1)
D*(P)
Multiplicand data or the head device where the
data to be multiplied by another is stored
D*(P)_U
(s2)
D*(P)
Multiplier data or the head device where the
data by which another is to be multiplied is
D*(P)_U
stored
(d)
D*(P)
Head device for storing the operation result
D*(P)_U
EN
Execution condition
ENO
Execution result
■Applicable devices
Operand
Bit
X, Y, M, L, SM,
F, B, SB, S
(s1)
(s2)
(d)
Word
T, ST, C, D, W,
U\G
SD, SW, R
*1
Structured text
ENO:=DMULTI(EN,s1,s2,n,d);
ENO:=DMULTIP(EN,s1,s2,n,d);
Range
Data type
-2147483648 to +2147483647
32-bit signed binary
0 to 4294967295
32-bit unsigned binary
-2147483648 to +2147483647
32-bit signed binary
0 to 4294967295
32-bit unsigned binary
64-bit signed binary
64-bit unsigned binary
Bit
Bit
Double word Indirect
specification
Z
LC
LZ
7.2 Arithmetic Operation Instructions
ENO:=DMULTI_U(EN,s1,s2,n,d);
ENO:=DMULTIP_U(EN,s1,s2,n,d);
Data type (label)
ANY32_S
ANY32_U
ANY32_S
ANY32_U
ANY32_S_ARRAY
(Number of elements:
2)
ANY32_U_ARRAY
(Number of elements:
2)
BOOL
BOOL
Constant
Others
K, H
E
$
7 BASIC INSTRUCTIONS
213
7

Hide quick links:

Advertisement

loading