Mitsubishi Electric MELSEC FX3U Programming Manual page 292

Melsec fx series programmable logic controllers
Table of Contents

Advertisement

FX
/FX
/FX
Series Programmable Controllers
3G
3U
3UC
Programming Manual - Basic & Applied Instruction Edition
• When a digit (K1 to K8) is specified for [
A digit can be specified in the range from K1 to K8.
For example, when K2 is specified, only low-order 8 bits can be obtained out of the product (32 bits).
Command
input
S1
S2
Y027 Y026 Y025
D
0
2. 32-bit operation (DMUL and DMULP)
The contents of [
multiplication result is transferred to 64-bit [
Command
input
FNC 22
DMUL
BIN
[
S1
32 bits
• The most significant bit of each data indicates the sign (positive: 0 or negative: 1), and data are multiplied
algebraically.
5500 × (−8540) = −46,970,000
• When a constant (K) is specified in [
into the binary format.
• When a digit (K1 to K8) is specified for [
The result is obtained only for low-order 32 bits, and is not obtained for high-order 32 bits.
Transfer the data to word devices once, then execute the operation.
Command
input
290
S1
S2
FNC 22
K53
K15
MUL
Sign bit (0: Positive, 1: Negative)
...
Y013 Y012 Y011 Y010 Y007 Y006 Y005 Y004 Y003 Y002 Y001 Y000
...
0
0
0
Not output
+1,
] are multiplied by [
S
S
1
1
S1
S2
BIN
] × [
+1,
S1
S2
+1,
S2
32 bits
S1
S2
FNC 22
D50
K150
DMUL
FNC 12
D100
DMOV
FNC 12
D102
DMOV
10 Arithmetic and Logical Operation (+, −, ×, ÷) – FNC 20 to FNC 29
+1,
]
D
D
D
K2Y000
K53(H0035)
×
K15(H000F)
When command contact turns ON
K795(H031B)
0
1
1
0
0
Operation result is output to K2Y000.
+1,
S
2
+3,
+2,
D
D
D
D
BIN
→ [
]
D
+3,
D
+2,
64 bits
+1,
] or [
S
S
S
1
1
2
+3,
+2,
D
D
D
D
(D51,D50)
(D103,D102,D101,D100)
D100
K100 × K150 → K15000
D100 is output to Y017 to Y000
K8Y000
D101 is output to Y037 to Y020
D102 is output to Y057 to Y040
K8Y040
D103 is output to Y077 to Y060
10.3 FNC 22 – MUL / Multiplication
0
1
1
0
] in the binary format, and the
S
2
+1,
] (four word devices).
D
D
+1,
D
]
+1,
], it is automatically converted
S
2
+1,
]
D
1
1

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec fx3ucMelsec fx3g

Table of Contents