EasyManuals Logo

Mitsubishi MELSEC iQ-F FX5 series User Manual

Mitsubishi MELSEC iQ-F FX5 series
888 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #189 background imageLoading...
Page #189 background image
6 BASIC INSTRUCTIONS
6.2 Arithmetic Operation Instructions
187
6
Dividing 32-bit binary data
D/(P)(_U) instruction and DDIV(P)(_U) instruction can be used for division of 32-bit binary data.
D/(P)(_U)
These instructions divide 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 result in the device specified by (d).
Setting data
Descriptions, ranges, and data types
Applicable devices
Processing details
These instructions divide 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 division result in the device specified by (d).
For the division result of word device, 64-bit binary is used to store the quotient and remainder. For bit device, 32-bit binary
is used to store quotient only.
Operation error
Ladder diagram Structured text
Not supported
Operand Description Range Data type Data type (label)
(s1) D/(P) Dividend data or the head device where the
data to be divided by another is stored
-2147483648 to +2147483647 32-bit signed binary ANY32
D/(P)_U 0 to 4294967295 32-bit unsigned binary ANY32_U
(s2) D/(P) Divisor data or the head device where the data
by which another is to be divided is stored
-2147483648 to +2147483647 32-bit signed binary ANY32
D/(P)_U 0 to 4294967295 32-bit unsigned binary ANY32_U
(d) D/(P) Head device for storing the operation result 64-bit signed binary ANY32_ARRAY
(Number of elements:
2)
D/(P)_U 64-bit unsigned binary
Operand Bit Word Double word Indirect
specification
Constant Others
X, Y, M, L,
SM, F, B, SB
U\G T, ST,
C, LC
T, ST, C, D,
W, SD, SW, R
U\G Z LC LZ K, H E $
(s1) 
(s2) 
(d)  
Error code
(SD0/SD8067)
Description
2820 The range of the device specified by (d) exceeds the range of said device.
3400 0 is specified for (s2) value.
3403 Signed operation is performed and the operation result exceeds 2147483647.
(s1) (s2) (d)
567890 (BIN)
123456 (BIN) 4 (BIN)
÷
(d)
(d)+1
b0
··· ···
b31 b16 b15
(s2)
(s2)+1
b0
··· ···
b31 b16 b15
(s1)
(s1)+1
b0
··· ···
b31 b16 b15
74066 (BIN)
(d)+2
(d)+3
b0
··· ···
b31 b16 b15

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Mitsubishi MELSEC iQ-F FX5 series and is the answer not in the manual?

Mitsubishi MELSEC iQ-F FX5 series Specifications

General IconGeneral
BrandMitsubishi
ModelMELSEC iQ-F FX5 series
CategoryController
LanguageEnglish

Related product manuals