Mitsubishi FX3G Series Programming Manual page 275

Programmable controllers
Hide thumbs Also See for FX3G Series:
Table of Contents

Advertisement

FX
/FX
/FX
/FX
3G
3U
3GC
3UC
Programming Manual - Basic & Applied Instruction Edition
2. 32-bit operation (DDIV and DDIVP)
[
S
+1,
S
1
1
[
D
+1,
D
]), and the remainder is transferred to [
Command
input
FNC 23
DDIV
Dividend
BIN
S
[
1
32 bits
• Four devices in total starting from
sure that these four devices are not used for another control.
• The most significant bit of each data indicates the sign (positive: 0 or negative: 1), and data is divided algebraically.
5500 ÷ (−540) = −10 (quotient) ... 100 (remainder)
• When a constant (K) is specified in [
format.
Related devices
1. Relationship between flag operation and numeric value
Device
*1
M8304
*1
M8306
*1.
Available in all FX
Cautions
1. Operation result
• The most significant bit of the quotient and remainder indicates the sign (positive: 0, negative: 1) respectively.
• The quotient is negative when either the dividend or divisor is negative.
The remainder is negative when the dividend is negative.
2. Device specified as
• The remainder is not obtained when a bit device is specified with digit specification.
• In a 32-bit operation (by DDIV or DDIVP), Z cannot be specified as
Error
• When the divisor
• A operation error results when the operation result is over 32,767 (16-bit operation) or 2,147,483,647 (32-bit
operation). (Turns the carry flag ON.)
Series
] indicates the dividend, [
S
S
S
D
1
2
Divisor
BIN
] ÷ [
S
S
S
+1,
+1,
1
2
2
32 bits
D
are occupied to store the operation result (quotient and remainder). Make
S
+1,
1
Name
ON : When the operation result is 0.
Zero
OFF : When the operation result is a number other than 0.
ON : Carry flag operates when the operation result is over 32,767 (16-bit operation) or
2,147,483,647 (32-bit operation).
Carry
OFF : When the operation result is less than 32,767 (16-bit operation) or 2,147,483,647
(32-bit operation).
/FX
PLCs and FX
3G
3GC
D
S
is "0", an operation error is caused and the instruction is not executed.
2
10 Arithmetic and Logical Operation (+, −, ×, ÷) – FNC 20 to FNC 29
+1,
S
] indicates the divisor, the quotient is transferred to
2
2
D
+3,
D
+2].
Quotient
Remainder
BIN
→ [
D
D
D
]
+1,
] ... [
32 bits
32 bits
S
] or [
S
+1,
S
1
2
2
Description
/FX
PLCs Ver. 2.30 or later.
3U
3UC
D
10.4 FNC 23 – DIV / Division
BIN
D
+3,
+2]
], it is automatically converted into binary
.
1
2
3
4
5
6
7
8
9
10
273

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fx3u seriesFx3gc seriesFx3uc series

Table of Contents