216
7 BASIC INSTRUCTIONS
7.2 Arithmetic Operation Instructions
Processing details
• These instructions multiply the 32-bit binary data in the device specified by (s1) by the 32-bit binary data in the device
specified by (s2), and store the multiplication result in the device specified by (d).
• When nibble is specified ranging from K1 to K8 for (d), the result is obtained only for the lower-order 32 bits, and is not
obtained for the higher-order 32 bits. Transfer the data to word devices once, then execute the operation.
■
Related flag
Precautions
• Even if word devices are used, the operation result (64 bits binary data) cannot be monitored at one time. In such a case, a
floating point operation is recommended.
Operation error
Device
Name
Description
SM8304
Zero
When the operation result is 0, the zero flag is turned ON.
Error code
(SD0/SD8067)
Description
2820H
The range of the device specified by (d) exceeds the range of said device.
b0
567890 (BIN)
(s1)
123456 (BIN)
70109427840 (BIN)
×
···
···
(s1)+1
(s2)
(s2)+1
(d)+2
(d)+3
b31
b16 b15
b0
···
···
b31
b16 b15
b32
···
···
b63
b48 b47
(d)
(d)+1
b0
···
···
b31
b16 b15
DMUL
D50
K150
D100
(D51,D50) (D103,D102,D101,D100)
K100 × K150
→
K15000
DMOV
D100
K8Y0
D100
→
Y17 to Y0
DMOV
D102
K8Y40
D102
→
Y57 to Y40
(s2)
(d)
(s1)
X0
D101
→
Output to Y37 to Y20
D103
→
Output to Y77 to Y60
Summary of Contents for MELSEC iQ-F FX5
Page 1: ...MELSEC iQ F FX5 Programming Manual Instructions Standard Functions Function Blocks ...
Page 2: ......
Page 17: ...15 CONTENTS ...
Page 24: ...22 MEMO ...
Page 1050: ...1048 26 TIME DATA FUNCTIONS 26 4 Division MEMO ...
Page 1068: ...1066 29 COUNTER FUNCTION BLOCKS 29 4 Counter Function Block Operation error There is no error ...
Page 1107: ...I 1105 MEMO ...
Page 1111: ......